purge
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 13m29s

This commit is contained in:
2024-10-28 12:54:38 +00:00
parent 57b82e55db
commit cff45d361a
3 changed files with 0 additions and 83 deletions
-25
View File
@@ -1,25 +0,0 @@
FROM vaultwarden/server:latest
RUN apt update && apt install -y curl unzip libsecret-1-0 jq
RUN export VER=$(curl -H "Accept: application/vnd.github+json" https://api.github.com/repos/bitwarden/clients/releases | jq -r .[4].name | sed 's:.*v::') && \
curl -LO "https://github.com/bitwarden/clients/releases/download/cli-v{$VER}/bw-linux-{$VER}.zip" \
&& unzip bw-linux-*.zip && chmod +x ./bw
RUN rm bw-linux-*.zip
RUN mv /bw /usr/local/bin
RUN bw --version
https://www.reddit.com/r/Bitwarden/comments/xhir0q/how_to_install_bw_cli_in_docker/
$sessionkey = bw login valvankart@orange.fr Impreza555 --raw
/bin/sh: 37: =: not found
# export BW_key=$(bw login valvankart@orange.fr Impreza555 --raw)
# echo $BW_key
Q8lQlXFuQKxxYz5UXr+JcU1oM7F53S6AkmTnPFEh5+I2khV1w77hBaDUGvsHcbdqH+tIUEE+r5FZboVNyHMgNg==
# bw list items --session $BW_key
-57
View File
@@ -1,57 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: bwbackup
---
apiVersion: v1
kind: Pod
metadata:
name: node
namespace: bwbackup
spec:
containers:
- image: node:22-alpine
command:
# - "npm install -g @bitwarden/cli@1.0.1"
- "/bin/sh"
- "-c"
- "sleep 60m"
imagePullPolicy: IfNotPresent
name: alpine
restartPolicy: Always
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: node
namespace: bwbackup
spec:
replicas: 1
selector:
matchLabels:
app: node
template:
metadata:
labels:
app: node
spec:
hostNetwork: false
containers:
- name: node-d
image: node:22-alpine
imagePullPolicy: Always
command:
# - "npm install -g @bitwarden/cli@1.0.1"
- "/bin/sh"
- "-c"
- "sleep 60m"
securityContext:
# sysctls:
# - name: net.ipv4.conf.all.src_valid_mark
# value: "1"
# - name: net.ipv6.conf.all.disable_ipv6
# value: "1"
privileged: true
capabilities:
add: ["NET_ADMIN", "NET_RAW"]
File diff suppressed because one or more lines are too long