Commit 5b0a01eaa0908c0bb7fe7b0fc91736feb535a0dd
1 parent
743f2de3
Exists in
master
get rid of ssh keys
Showing
5 changed files
with
7 additions
and
29 deletions
Show diff stats
.env.example deleted
... | ... | @@ -1,7 +0,0 @@ |
1 | -# enter here all key = value you need to path in docker-compose.yaml file - example for voparis-tap-planeto | |
2 | -VERSION=11 | |
3 | -#SERVER=voparis-tap-planeto | |
4 | -# depot sans l'extension .git | |
5 | -#GIT=voparis-tap-planeto | |
6 | -#GITURL=https://voparis-gitlab.obspm.fr/dachs | |
7 | -PUBKEY="your local public key" |
.gitignore deleted
... | ... | @@ -1 +0,0 @@ |
1 | -.env |
dachs-dockerfile
1 | 1 | ARG VERSION |
2 | 2 | FROM debian:$VERSION |
3 | 3 | |
4 | -ARG GITURL | |
4 | +ARG GITURL=https://voparis-gitlab.obspm.fr | |
5 | 5 | ARG SERVER |
6 | 6 | ARG INSTITUTION |
7 | 7 | |
8 | 8 | ARG HOMEPATH=/home/dachsroot |
9 | -ARG PUBKEY | |
10 | 9 | |
11 | 10 | |
12 | 11 | ### |
... | ... | @@ -36,23 +35,6 @@ RUN apt-get install -y openssh-server openssh-client apache2 w3m |
36 | 35 | |
37 | 36 | |
38 | 37 | ### |
39 | -# Ajout des clés ssh | |
40 | -# port utilisé par defaut 2222 | |
41 | -### | |
42 | - | |
43 | -RUN mkdir -p /root/.ssh | |
44 | -RUN echo PUBKEY >> /root/.ssh/authorized_keys | |
45 | -RUN chmod 700 /root/.ssh | |
46 | -RUN chmod 600 /root/.ssh/authorized_keys | |
47 | - | |
48 | -RUN mkdir -p /home/dachsroot/.ssh | |
49 | -RUN echo PUBKEY >> /home/dachsroot/.ssh/authorized_keys | |
50 | -RUN chmod 700 /home/dachsroot/.ssh | |
51 | -RUN chmod 600 /home/dachsroot/.ssh/authorized_keys | |
52 | -RUN chown dachsroot:gavo -R /home/dachsroot/.ssh | |
53 | - | |
54 | - | |
55 | -### | |
56 | 38 | # Installation des sources |
57 | 39 | ### |
58 | 40 | ... | ... |