This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Dockerfile.test.rhel8
55 lines (43 loc) · 2.18 KB
/
Dockerfile.test.rhel8
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM registry.access.redhat.com/ubi8/ubi:8.8
ENV INSTALL_DIR=/opt/cyberark-conjur-cli
RUN yum --disableplugin=subscription-manager -y \
install -y bash \
binutils \
yum-utils \
gcc gcc-c++ make \
git \
jq \
libffi-devel \
openssl-devel \
python3-devel \
procps \
zlib-devel \
&& yum --disableplugin=subscription-manager clean all
# Copy public keys for repo GPG check
RUN curl -L https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official > /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS
# Import gpg key
RUN gpg --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS
# Copy below repo file to enable installation of gnome-keyring and dbus-x11
COPY ./test/CentOS-Linux-AppStream.repo \
/etc/yum.repos.d/
RUN yum --disableplugin=subscription-manager -y \
install -y dbus-x11 \
gnome-keyring \
&& yum --disableplugin=subscription-manager clean all
RUN mkdir -p $INSTALL_DIR
WORKDIR $INSTALL_DIR
# Generate unique machne-id file required by dbus-11
RUN dbus-uuidgen > /var/lib/dbus/machine-id
# Install Python 3.11 using pyenv, wheel and required libs
ENV PYENV_ROOT="/root/.pyenv"
ENV PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"
COPY ./requirements.txt $INSTALL_DIR/
RUN curl -L -s https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash \
&& eval "$(pyenv init --path)" \
&& env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.11 \
&& pyenv global 3.11 \
&& pip install wheel \
&& pip install -r requirements.txt
COPY ./bin/build_integrations_tests_runner ./test/configure_test_executor.sh /
COPY . $INSTALL_DIR
ENTRYPOINT ["./test/configure_test_executor.sh"]