Skip to content

Commit bd0a6af

Browse files
committed
Merge branch 'main' into davdhacs/ROX-14476-ubi9-update
2 parents a9b384f + c511241 commit bd0a6af

7 files changed

Lines changed: 31 additions & 12 deletions

File tree

.github/actions/build-and-push-image/build-and-push-image.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ set -euo pipefail
55
build_and_push_image() {
66
local image_flavor="$1"
77

8-
docker login -u "$QUAY_STACKROX_IO_RW_USERNAME" --password-stdin <<<"$QUAY_STACKROX_IO_RW_PASSWORD" quay.io
8+
# For retrieving private images from quay.io/rhacs-eng (roxie).
9+
docker login -u "$QUAY_RHACS_ENG_RW_USERNAME" --password-stdin <<<"$QUAY_RHACS_ENG_RW_PASSWORD" quay.io
910

1011
TAG="$(scripts/get_tag.sh "${image_flavor}")"
1112
IMAGE="quay.io/stackrox-io/apollo-ci:${TAG}"
1213

1314
make "${image_flavor}-image"
1415

16+
# For pushing to quay.io/stackrox-io/apollo-ci.
17+
docker login -u "$QUAY_STACKROX_IO_RW_USERNAME" --password-stdin <<<"$QUAY_STACKROX_IO_RW_PASSWORD" quay.io
18+
1519
retry 5 true docker push "${IMAGE}"
1620

1721
echo "image-tag=${IMAGE}" >> "${GITHUB_OUTPUT}"

.github/workflows/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
env:
1313
QUAY_STACKROX_IO_RW_USERNAME: ${{ secrets.QUAY_STACKROX_IO_RW_USERNAME }}
1414
QUAY_STACKROX_IO_RW_PASSWORD: ${{ secrets.QUAY_STACKROX_IO_RW_PASSWORD }}
15+
QUAY_RHACS_ENG_RW_USERNAME: ${{ secrets.QUAY_RHACS_ENG_RW_USERNAME }}
16+
QUAY_RHACS_ENG_RW_PASSWORD: ${{ secrets.QUAY_RHACS_ENG_RW_PASSWORD }}
1517

1618
jobs:
1719

images/scanner-build.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ RUN dnf update -y && \
3535
dnf clean all && \
3636
rm -rf /var/cache/dnf /var/cache/yum
3737

38-
ARG GOLANG_VERSION=1.25.3
39-
ARG GOLANG_SHA256=0335f314b6e7bfe08c3d0cfaa7c19db961b7b99fb20be62b0a826c992ad14e0f
38+
ARG GOLANG_VERSION=1.25.7
39+
ARG GOLANG_SHA256=12e6d6a191091ae27dc31f6efc630e3a3b8ba409baf3573d955b196fdf086005
4040
ENV GOPATH /go
4141
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
4242
RUN url="https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz" && \

images/scanner-test.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ RUN dnf update -y \
6363
ENV USE_GKE_GCLOUD_AUTH_PLUGIN=True
6464
RUN gke-gcloud-auth-plugin --version
6565

66-
# Install docker 25.0.3
67-
ARG DOCKER_VERSION=25.0.3
66+
# Install docker 29.2.1
67+
ARG DOCKER_VERSION=29.2.1
6868
RUN set -ex \
6969
&& DOCKER_URL="https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz" \
7070
&& echo Docker URL: $DOCKER_URL \

images/stackrox-build.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ RUN dnf update -y && \
5454
dnf clean all && \
5555
rm -rf /var/cache/dnf /var/cache/yum
5656

57-
ARG GOLANG_VERSION=1.25.3
58-
ARG GOLANG_SHA256=0335f314b6e7bfe08c3d0cfaa7c19db961b7b99fb20be62b0a826c992ad14e0f
57+
ARG GOLANG_VERSION=1.25.7
58+
ARG GOLANG_SHA256=12e6d6a191091ae27dc31f6efc630e3a3b8ba409baf3573d955b196fdf086005
5959
ENV GOPATH /go
6060
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
6161
RUN url="https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz" && \

images/stackrox-test.Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# binaries and images. Builds upon stackrox-build.Dockerfile.
33

44
ARG BASE_TAG
5+
ARG ROXIE_VERSION=0.1.2
6+
ARG ROXIE_CHECKSUM=sha256:808acf790369f3cb5744c5c03a4f97e2c57e8e752ae2bce952515bed3fdfd00d
7+
FROM quay.io/rhacs-eng/roxie:v${ROXIE_VERSION}@${ROXIE_CHECKSUM} AS roxie-installer
8+
59
FROM quay.io/stackrox-io/apollo-ci:${BASE_TAG} as base
610

711
# This line makes sure that piped commands in RUN instructions exit early.
@@ -45,7 +49,6 @@ RUN dnf update -y \
4549
xz \
4650
zip \
4751
&& dnf remove -y java-1.8.0-openjdk-headless \
48-
&& dnf --disablerepo="*" --enablerepo="pgdg13" install -y postgresql13 postgresql13-server postgresql13-contrib \
4952
&& dnf --disablerepo="*" --enablerepo="pgdg14" install -y postgresql14 postgresql14-server postgresql14-contrib \
5053
&& dnf --disablerepo="*" --enablerepo="pgdg15" install -y postgresql15 postgresql15-server postgresql15-contrib \
5154
&& dnf clean all \
@@ -61,7 +64,7 @@ RUN set -ex \
6164
&& bats -v
6265

6366
# Install docker binary
64-
ARG DOCKER_VERSION=20.10.6
67+
ARG DOCKER_VERSION=29.2.1
6568
RUN set -ex \
6669
&& DOCKER_URL="https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz" \
6770
&& echo Docker URL: $DOCKER_URL \
@@ -161,6 +164,9 @@ RUN set -ex \
161164
&& pip3 install pycodestyle=="${PYCODESTYLE_VERSION}" \
162165
pylint=="${PYLINT_VERSION}"
163166

167+
# Install roxie.
168+
COPY --from=roxie-installer /usr/local/bin/roxie /usr/bin/roxie
169+
164170
RUN \
165171
mv /bin/bash /bin/real-bash && \
166172
mv /bin/bash-wrapper /bin/bash

images/stackrox-ui-test.Dockerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Provides the tooling required run UI tests against the StackRox images.
22

3+
ARG ROXIE_VERSION=0.1.2
4+
ARG ROXIE_CHECKSUM=sha256:808acf790369f3cb5744c5c03a4f97e2c57e8e752ae2bce952515bed3fdfd00d
5+
FROM quay.io/rhacs-eng/roxie:v${ROXIE_VERSION}@${ROXIE_CHECKSUM} AS roxie-installer
6+
37
FROM quay.io/centos/centos:stream9
48

59
# This line makes sure that piped commands in RUN instructions exit early.
@@ -72,8 +76,8 @@ RUN dnf update -y \
7276
&& dnf clean all \
7377
&& rm -rf /var/cache/dnf /var/cache/yum
7478

75-
ARG GOLANG_VERSION=1.25.3
76-
ARG GOLANG_SHA256=0335f314b6e7bfe08c3d0cfaa7c19db961b7b99fb20be62b0a826c992ad14e0f
79+
ARG GOLANG_VERSION=1.25.7
80+
ARG GOLANG_SHA256=12e6d6a191091ae27dc31f6efc630e3a3b8ba409baf3573d955b196fdf086005
7781
ENV GOPATH /go
7882
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
7983
RUN url="https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz" && \
@@ -112,7 +116,7 @@ RUN set -ex \
112116
&& bats -v
113117

114118
# Install docker binary
115-
ARG DOCKER_VERSION=20.10.6
119+
ARG DOCKER_VERSION=29.2.1
116120
RUN set -ex \
117121
&& DOCKER_URL="https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz" \
118122
&& echo Docker URL: $DOCKER_URL \
@@ -212,6 +216,9 @@ RUN set -ex \
212216
&& pip3 install pycodestyle=="${PYCODESTYLE_VERSION}" \
213217
pylint=="${PYLINT_VERSION}"
214218

219+
# Install roxie.
220+
COPY --from=roxie-installer /usr/local/bin/roxie /usr/bin/roxie
221+
215222
RUN \
216223
mv /bin/bash /bin/real-bash && \
217224
mv /bin/bash-wrapper /bin/bash

0 commit comments

Comments
 (0)