Skip to content

Commit 1a4655c

Browse files
Dockerfile for Ubuntu 2024.04 is updated (#211)
* Dockerfile for Ubuntu 2024.04 updated - Using "chmod 700 ~/" instead "chmod go-w /var/lib/postgresql" - "~/.ssh" folder is prepared at image level - Entrypoint startup code is cleaned from trace messages * Dockerfile--ubuntu-24_04.tmpl is updated (double quotes)
1 parent 6005728 commit 1a4655c

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

Diff for: Dockerfile--ubuntu-24_04.tmpl

+4-15
Original file line numberDiff line numberDiff line change
@@ -37,33 +37,22 @@ RUN ssh-keygen -A
3737
RUN sh -c "echo postgres ALL=NOPASSWD:/usr/sbin/service ssh start" >> /etc/sudoers
3838

3939
USER postgres
40-
4140
ENV LANG=C.UTF-8
4241

42+
RUN chmod 700 ~/
43+
RUN mkdir -p ~/.ssh
44+
4345
#ENTRYPOINT PYTHON_VERSION=3.12 /run.sh
4446
ENTRYPOINT sh -c " \
4547
#set -eux; \
4648
echo HELLO FROM ENTRYPOINT; \
4749
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; \
5350
service ssh enable; \
54-
echo POINT 3; \
5551
sudo service ssh start; \
56-
echo POINT 4; \
5752
ssh-keyscan -H localhost >> ~/.ssh/known_hosts; \
58-
echo POINT 5; \
5953
ssh-keyscan -H 127.0.0.1 >> ~/.ssh/known_hosts; \
60-
echo POINT 6; \
6154
ssh-keygen -t rsa -f ~/.ssh/id_rsa -q -N ''; \
62-
echo ----; \
6355
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys; \
64-
echo ----; \
6556
chmod 600 ~/.ssh/authorized_keys; \
66-
echo ----; \
6757
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;"

0 commit comments

Comments
 (0)