-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile
40 lines (33 loc) · 1001 Bytes
/
Dockerfile
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
40
FROM almalinux:9 as albs-node
COPY buildnode.repo /etc/yum.repos.d/buildnode.repo
RUN <<EOT
set -ex
dnf install -y epel-release
dnf upgrade -y
dnf install -y \
gcc gcc-c++ make cmake git mock mock-rpmautospec keyrings-filesystem sudo \
libicu libicu-devel kernel-rpm-macros createrepo_c cpio \
python3-devel python3-lxml python3-createrepo_c python3-libmodulemd \
centpkg
dnf clean all
EOT
RUN mkdir -p \
/srv/alternatives/castor/build_node/mock_configs \
/root/.config/castor/build_node \
/root/.config/cl-alternatives/
WORKDIR /build-node
COPY requirements.txt .
RUN <<EOT
set -ex
python3 -m ensurepip
pip3 install -r requirements.txt
rm -rf requirements.txt ~/.cache/pip
EOT
ADD --chmod=755 https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /
FROM albs-node as albs-node-tests
COPY requirements-tests.txt .
RUN <<EOT
set -ex
pip3 install -r requirements-tests.txt
rm -rf requirements-tests.txt ~/.cache/pip
EOT