Skip to content

Commit

Permalink
Merge pull request #176 from pehala/dockerfile_cfssl
Browse files Browse the repository at this point in the history
Dockefile updates
  • Loading branch information
pehala authored Mar 1, 2023
2 parents 8c68e03 + 7bc44bb commit bea4908
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
FROM quay.io/centos/centos:stream
FROM quay.io/centos/centos:stream9
LABEL description="Run Kuadrant integration tests \
Default ENTRYPOINT: 'make' and CMD: 'test' \
Bind dynaconf settings to /opt/secrets.yaml \
Bind kubeconfig to /opt/kubeconfig \
Bind a dir to /test-run-results to get reports "

RUN useradd --no-log-init -u 1001 -r -U -m testsuite
RUN dnf install -y python3.9 make git && dnf clean all
RUN useradd --no-log-init -u 1001 -g root -m testsuite
RUN dnf install -y python3 pip make git && dnf clean all

RUN curl https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux.tar.gz >/tmp/oc.tgz && \
tar xzf /tmp/oc.tgz -C /usr/local/bin && \
rm /tmp/oc.tgz

RUN curl -L https://github.com/cloudflare/cfssl/releases/download/v1.6.3/cfssl_1.6.3_linux_amd64 >/usr/bin/cfssl && \
chmod +x /usr/bin/cfssl

RUN python3 -m pip --no-cache-dir install pipenv

WORKDIR /opt/workdir/kuadrant-testsuite
Expand All @@ -21,7 +24,7 @@ COPY . .
RUN mkdir -m 0700 /test-run-results && chown testsuite /test-run-results && \
chown testsuite -R /opt/workdir/*

USER 1001
USER testsuite


ENV KUBECONFIG=/run/kubeconfig \
Expand Down
Empty file.
Empty file.

0 comments on commit bea4908

Please sign in to comment.