added docker image and CI/CD (git action) to limbosolutions docker registry
This commit is contained in:
18
docker/Dockerfile
Normal file
18
docker/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
|
||||
RUN apt-get install -y \
|
||||
python3 \
|
||||
python3-pip \
|
||||
borgbackup \
|
||||
fuse \
|
||||
python3-pyfuse3 \
|
||||
openssh-client
|
||||
|
||||
COPY ./docker/app /app
|
||||
RUN chmod +x /app/scripts/ffenv
|
||||
RUN ln -s /app/scripts/ffenv /usr/local/lib/ffenv
|
||||
|
||||
19
docker/app/scripts/ffenv
Normal file
19
docker/app/scripts/ffenv
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
echo "checking SSH_ID..."
|
||||
if [[ "${SSH_ID}" ]]; then
|
||||
echo "found SSH_ID..."
|
||||
mkdir -p /root/.ssh
|
||||
echo "${SSH_ID}" > /root/.ssh/id_rsa
|
||||
chmod 700 /root/.ssh/id_rsa
|
||||
fi
|
||||
echo "checking BORG_KEY..."
|
||||
if [[ "${BORG_KEY}" ]]; then
|
||||
echo "found BORG_KEY..."
|
||||
mkdir -p /root/.config/borg/keys
|
||||
echo "${BORG_KEY}" > /root/.config/borg/keys/key
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user