Add SSH support and change to using SSH instead of password authentication

This commit is contained in:
Manevolent 2021-09-21 10:20:09 -06:00
parent 22dc5eada0
commit 20b1290066
No known key found for this signature in database
GPG Key ID: 2E9B7592DFA4F344
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
FROM docker/compose:alpine-1.25.5
MAINTAINER Team Lixo <lixonet@team.lixo>
RUN apk add gnupg curl git py-pip && pip install netcalc
RUN apk add gnupg curl git py-pip openssh && pip install netcalc
RUN curl -L "https://github.com/gliderlabs/sigil/releases/download/v0.5.0/sigil_0.5.0_$(uname -sm|tr \ _).tgz" | tar -zxC /usr/local/bin
VOLUME /etc/lixonet
@ -10,4 +10,5 @@ WORKDIR /run
ADD . .
RUN chmod +x run.sh
USER lixonet
CMD ["./run.sh"]

View File

@ -1,3 +1,3 @@
#!/bin/ash
docker build -t lixonet-ee . && docker run --restart always -d -e GIT_URL=https://$1:$2@github.com/Manevolent/lixonet-ee.git -v /var/run/docker.sock:/var/run/docker.sock -v /etc/bird:/etc/bird/ -v /etc/tinc:/etc/tinc -v /etc/bind:/etc/bind -v /etc/lixonet:/etc/lixonet lixonet-ee
docker build -t lixonet-ee . && docker run --restart always -d -e GIT_URL=git@github.com:Manevolent/lixonet-ee.git -v /var/run/docker.sock:/var/run/docker.sock -v /etc/bird:/etc/bird/ -v /etc/tinc:/etc/tinc -v /etc/bind:/etc/bind -v /etc/lixonet:/etc/lixonet -v /root/.ssh/id_rsa:/home/lixonet/.ssh/id_rsa lixonet-ee