File tree Expand file tree Collapse file tree 2 files changed +59
-0
lines changed
Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Original file line number Diff line number Diff line change 5555 python : " 3.13"
5656 - platform : " alpine"
5757 python : " 3.14"
58+ - platform : " ubuntu_24_04"
59+ python : " 3"
5860 - platform : " altlinux_10"
5961 python : " 3"
6062 - platform : " altlinux_11"
Original file line number Diff line number Diff line change 1+ ARG PYTHON_VERSION
2+
3+ # --------------------------------------------- base1
4+ FROM ubuntu:24.04 as base1
5+
6+ RUN apt update
7+ RUN apt install -y sudo curl ca-certificates
8+ RUN apt update
9+ RUN apt install -y openssh-server
10+ RUN apt install -y time
11+ RUN apt install -y netcat-traditional
12+
13+ RUN apt install -y git
14+
15+ # RUN apt install -y mc
16+
17+ # --------------------------------------------- base2_with_python-3
18+ FROM base1 as base2_with_python-3
19+ RUN apt install -y python3 python3-dev python3-venv
20+ ENV PYTHON_VERSION= 3
21+
22+ # --------------------------------------------- final
23+ FROM base2_with_python-$ {PYTHON_VERSION} as final
24+
25+ EXPOSE 22
26+
27+ RUN ssh-keygen -A
28+
29+ RUN useradd -m test
30+
31+ # It enables execution of " sudo service ssh start" without password
32+ RUN sh -c " echo test ALL=NOPASSWD:/usr/sbin/service ssh start" >> /etc/sudoers
33+
34+ ADD . /home/test/testgres
35+ RUN chown -R test /home/test/testgres
36+ WORKDIR /home/test/testgres
37+
38+ ENV LANG= C.UTF -8
39+
40+ USER test
41+
42+ RUN chmod 700 ~/
43+ RUN mkdir -p ~/.ssh
44+
45+ ENTRYPOINT sh -c " \
46+ #set -eux; \
47+ echo HELLO FROM ENTRYPOINT; \
48+ echo HOME DIR IS [`realpath ~/`]; \
49+ service ssh enable; \
50+ sudo service ssh start; \
51+ ssh-keyscan -H localhost >> ~/.ssh/known_hosts; \
52+ ssh-keyscan -H 127.0.0.1 >> ~/.ssh/known_hosts; \
53+ ssh-keygen -t rsa -f ~/.ssh/id_rsa -q -N ''; \
54+ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys; \
55+ chmod 600 ~/.ssh/authorized_keys; \
56+ ls -la ~/.ssh/; \
57+ TEST_FILTER=\"\" bash ./run_tests3.sh;"
You can’t perform that action at this time.
0 commit comments