File tree 1 file changed +4
-15
lines changed
1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -37,33 +37,22 @@ RUN ssh-keygen -A
37
37
RUN sh -c "echo postgres ALL=NOPASSWD:/usr/sbin/service ssh start" >> /etc/sudoers
38
38
39
39
USER postgres
40
-
41
40
ENV LANG=C.UTF-8
42
41
42
+ RUN chmod 700 ~/
43
+ RUN mkdir -p ~/.ssh
44
+
43
45
#ENTRYPOINT PYTHON_VERSION=3.12 /run.sh
44
46
ENTRYPOINT sh -c " \
45
47
#set -eux; \
46
48
echo HELLO FROM ENTRYPOINT; \
47
49
echo HOME DIR IS [`realpath ~/`]; \
48
- echo POINT 1; \
49
- chmod go-w /var/lib/postgresql; \
50
- echo POINT 1.5; \
51
- mkdir -p ~/.ssh; \
52
- echo POINT 2; \
53
50
service ssh enable; \
54
- echo POINT 3; \
55
51
sudo service ssh start; \
56
- echo POINT 4; \
57
52
ssh-keyscan -H localhost >> ~/.ssh/known_hosts; \
58
- echo POINT 5; \
59
53
ssh-keyscan -H 127.0.0.1 >> ~/.ssh/known_hosts; \
60
- echo POINT 6; \
61
54
ssh-keygen -t rsa -f ~/.ssh/id_rsa -q -N ''; \
62
- echo ----; \
63
55
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys; \
64
- echo ----; \
65
56
chmod 600 ~/.ssh/authorized_keys; \
66
- echo ----; \
67
57
ls -la ~/.ssh/; \
68
- echo ----; \
69
- TEST_FILTER="" PYTHON_VERSION=${PYTHON_VERSION} bash run_tests.sh;"
58
+ TEST_FILTER=\"\" PYTHON_VERSION=${PYTHON_VERSION} bash run_tests.sh;"
You can’t perform that action at this time.
0 commit comments