-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathDockerfile.scheduler
More file actions
39 lines (31 loc) · 794 Bytes
/
Dockerfile.scheduler
File metadata and controls
39 lines (31 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM almalinux/9-base:latest as alts-scheduler
RUN <<EOT
set -ex
dnf upgrade -y
dnf install -y epel-release
dnf install -y ansible bats bc
EOT
RUN <<EOT
set -ex
dnf install -y openssh openssh-server
ssh-keygen -A
ssh-keygen -t ed25519 -f /root/.ssh/id_rsa -N ''
cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys
EOT
RUN dnf clean all
WORKDIR /code
COPY requirements .
RUN <<EOT
set -ex
python3 -m ensurepip
pip3 install -r scheduler.txt
rm -rf *.txt ~/.cache/pip
EOT
ADD --chmod=755 https://github.com/vishnubob/wait-for-it/master/wait-for-it.sh /
FROM alts-scheduler as alts-tests
COPY requirements/tests.txt requirements-tests.txt
RUN <<EOT
set -ex
pip3 install -r requirements-tests.txt
rm -rf requirements-tests.txt ~/.cache/pip
EOT