-
Notifications
You must be signed in to change notification settings - Fork 26
/
Dockerfile
30 lines (23 loc) · 938 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
FROM registry.access.redhat.com/ubi9-minimal:9.4-1227.1726694542
LABEL \
io.k8s.description=hcc-cicd-tools \
io.openshift.tags="" \
summary=hcc-cicd-tools
COPY image_build_scripts/* /setup/
ENV WORKDIR=/tools
ENV TOOLS_DEP_LOCATION="$WORKDIR/bin"
ENV PYTHON_DEP_LOCATION="$WORKDIR/.local/bin"
ENV KONFLUX_SCRIPTS_LOCATION="$WORKDIR/konflux"
ENV PATH="$PYTHON_DEP_LOCATION:$TOOLS_DEP_LOCATION:$KONFLUX_SCRIPTS_LOCATION:$PATH"
# Run install_system_dependencies.sh and create user
RUN /setup/install_system_dependencies.sh && useradd -d "$WORKDIR" tools
USER tools
WORKDIR "$WORKDIR"
# Install python dependencies
RUN /setup/install_python_dependencies.sh "$PYTHON_DEP_LOCATION"
# Install third party dependencies
RUN /setup/install_third_party_tools.sh "$TOOLS_DEP_LOCATION"
# Copy konflux scripts
COPY konflux_scripts/* "$KONFLUX_SCRIPTS_LOCATION/"
# Copy local helper scripts
COPY bin/oc_wrapper "$TOOLS_DEP_LOCATION/"