Add SSH support and change to using SSH instead of password authentication
This commit is contained in:
parent
22dc5eada0
commit
20b1290066
@ -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"]
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user