File tree 4 files changed +8
-22
lines changed
4 files changed +8
-22
lines changed Original file line number Diff line number Diff line change @@ -809,9 +809,7 @@ workflows:
809
809
- upload-dumps-for-embedding-into-image
810
810
- build-rhel :
811
811
<< : *runOnAllTags
812
- context :
813
- - docker-io-and-stackrox-io-push
814
- - redhat-developer-account-login
812
+ context : docker-io-and-stackrox-io-push
815
813
requires :
816
814
- create-postgres-dump-from-genesis-dump
817
815
- upload-dumps-for-embedding-into-image
@@ -871,9 +869,7 @@ workflows:
871
869
- upload-dumps-for-embedding-into-image
872
870
- build-rhel :
873
871
<< : *runOnAllTags
874
- context :
875
- - docker-io-and-stackrox-io-push
876
- - redhat-developer-account-login
872
+ context : docker-io-and-stackrox-io-push
877
873
requires :
878
874
- create-postgres-dump-from-genesis-dump
879
875
- upload-dumps-for-embedding-into-image
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ $(CURDIR)/image/db/rhel/bundle.tar.gz:
177
177
.PHONY : scanner-image-rhel
178
178
scanner-image-rhel : scanner-rhel-build-dockerized $(CURDIR ) /image/scanner/rhel/bundle.tar.gz
179
179
@echo " + $@ "
180
- @docker build --build-arg REDHAT_USERNAME= " ${REDHAT_USERNAME} " --build-arg REDHAT_PASSWORD= " ${REDHAT_PASSWORD} " - t us.gcr.io/stackrox-ci/scanner-rhel:$(TAG ) -f image/scanner/rhel/Dockerfile image/scanner/rhel
180
+ @docker build -t us.gcr.io/stackrox-ci/scanner-rhel:$(TAG ) -f image/scanner/rhel/Dockerfile image/scanner/rhel
181
181
182
182
.PHONY : db-image
183
183
db-image :
@@ -191,7 +191,7 @@ db-image:
191
191
db-image-rhel : $(CURDIR ) /image/db/rhel/bundle.tar.gz
192
192
@echo " + $@ "
193
193
@test -f image/db/dump/definitions.sql.gz || { echo " FATAL: No definitions dump found in image/dump/definitions.sql.gz. Exiting..." ; exit 1; }
194
- @docker build --build-arg REDHAT_USERNAME= " ${REDHAT_USERNAME} " --build-arg REDHAT_PASSWORD= " ${REDHAT_PASSWORD} " - t us.gcr.io/stackrox-ci/scanner-db-rhel:$(TAG ) -f image/db/rhel/Dockerfile image/db/rhel
194
+ @docker build -t us.gcr.io/stackrox-ci/scanner-db-rhel:$(TAG ) -f image/db/rhel/Dockerfile image/db/rhel
195
195
196
196
.PHONY : deploy
197
197
deploy : clean-helm-rendered
Original file line number Diff line number Diff line change 1
1
ARG BASE_REGISTRY=registry.access.redhat.com
2
2
ARG BASE_IMAGE=ubi8/ubi
3
- ARG BASE_TAG=8.4
3
+ ARG BASE_TAG=8.3
4
4
5
5
FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} AS extracted_bundle
6
6
COPY bundle.tar.gz /
@@ -10,9 +10,6 @@ RUN tar -xzf /bundle.tar.gz
10
10
11
11
FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
12
12
13
- ARG REDHAT_USERNAME
14
- ARG REDHAT_PASSWORD
15
-
16
13
LABEL name="scanner-db-rhel" \
17
14
vendor="StackRox" \
18
15
@@ -30,9 +27,7 @@ COPY --from=extracted_bundle /bundle/postgres.rpm /bundle/postgres-libs.rpm /bun
30
27
COPY --from=extracted_bundle /bundle/etc/postgresql.conf /bundle/etc/pg_hba.conf /etc/
31
28
COPY --from=extracted_bundle /bundle/docker-entrypoint-initdb.d/definitions.sql.gz /docker-entrypoint-initdb.d/
32
29
33
- RUN subscription-manager register --username "${REDHAT_USERNAME}" --password "${REDHAT_PASSWORD}" && \
34
- subscription-manager attach && \
35
- groupadd -g 70 postgres && \
30
+ RUN groupadd -g 70 postgres && \
36
31
adduser postgres -u 70 -g 70 -d /var/lib/postgresql -s /bin/sh && \
37
32
rpm --import RPM-GPG-KEY-PGDG-12 && \
38
33
dnf upgrade -y && \
Original file line number Diff line number Diff line change 1
1
ARG BASE_REGISTRY=registry.access.redhat.com
2
2
ARG BASE_IMAGE=ubi8/ubi
3
- ARG BASE_TAG=8.4
3
+ ARG BASE_TAG=8.3
4
4
5
5
FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} AS extracted_bundle
6
6
@@ -10,9 +10,6 @@ RUN tar -xzf /bundle.tar.gz
10
10
11
11
FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
12
12
13
- ARG REDHAT_USERNAME
14
- ARG REDHAT_PASSWORD
15
-
16
13
LABEL name="scanner-rhel" \
17
14
vendor="StackRox" \
18
15
@@ -32,9 +29,7 @@ COPY --from=extracted_bundle "/bundle${NVD_DEFINITIONS_DIR}/" ".${NVD_DEFINITION
32
29
COPY --from=extracted_bundle "/bundle${K8S_DEFINITIONS_DIR}/" ".${K8S_DEFINITIONS_DIR}/"
33
30
COPY --from=extracted_bundle "/bundle${REPO_TO_CPE_DIR}/" ".${REPO_TO_CPE_DIR}/"
34
31
35
- RUN subscription-manager register --username "${REDHAT_USERNAME}" --password "${REDHAT_PASSWORD}" && \
36
- subscription-manager attach && \
37
- dnf upgrade -y && \
32
+ RUN dnf upgrade -y && \
38
33
dnf install -y ca-certificates xz && \
39
34
dnf clean all && \
40
35
rm -rf /var/cache/dnf && \
You can’t perform that action at this time.
0 commit comments