Skip to content

Commit 996aedf

Browse files
authored
Dockerhub removal (#1117)
1 parent 2b6c7ae commit 996aedf

File tree

8 files changed

+39
-52
lines changed

8 files changed

+39
-52
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- Fix ds-streamlit uses old CI colors ([#978](https://github.com/opendevstack/ods-quickstarters/issues/978))
1212
- Remove unnecessary evidence printing in e2e-spock-geb ([#1106](https://github.com/opendevstack/ods-quickstarters/pull/1106))
1313
- Change base image of docker-plain QS to avoid dockerhub limits ([#1116](https://github.com/opendevstack/ods-quickstarters/pull/1116))
14+
- Dockerhub removal ([#1117](https://github.com/opendevstack/ods-quickstarters/pull/1117))
1415

1516
### Fixed
1617

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# add /overwrite FROM with your base image, and do whatever you like here :)
2-
FROM alpine:latest
2+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
33

4-
RUN echo "building simple backend container"
4+
RUN echo "Building simple container"
55

6-
RUN apk update && \
7-
apk -i upgrade && \
8-
apk cache clean
6+
USER root
7+
8+
RUN microdnf -y update && \
9+
microdnf clean all
10+
11+
USER 1001
912

1013
EXPOSE 8081
1114

12-
CMD ["/bin/sh", "-c", "/usr/bin/nc -lk -p 8081 -e echo -e \"HTTP/1.1 200 OK\n\nHello World!\n$(date)\""]
15+
CMD ["sh", "-c", "while true; do echo 'Container running on port 8081'; sleep 5; done"]
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# add /overwrite FROM with your base image, and do whatever you like here :)
2-
FROM alpine:latest
2+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
33

4-
RUN echo "building simple frontend container"
4+
RUN echo "Building simple container"
55

6-
RUN apk update && \
7-
apk -i upgrade && \
8-
apk cache clean
6+
USER root
7+
8+
RUN microdnf -y update && \
9+
microdnf clean all
10+
11+
USER 1001
912

1013
EXPOSE 8080
1114

12-
CMD ["/bin/sh", "-c", "/usr/bin/nc -lk -p 8080 -e echo -e \"HTTP/1.1 200 OK\n\nHello World!\n$(date)\""]
15+
CMD ["sh", "-c", "while true; do echo 'Container running on port 8080'; sleep 5; done"]

be-golang-plain/files/docker/Dockerfile

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,13 @@
1-
FROM alpine
2-
3-
# Uncomment this section if you need to use glibc in your container, f.e. when you enable CGO_ENABLED=1
4-
# Set locale
5-
#ENV LANG=C.UTF-8
6-
#
7-
# Install glibc so that CGO can be enabled when using dynamic linking
8-
#RUN apk add --no-cache --virtual .build-deps curl \
9-
# && GLIBC_VER="2.31-r0" \
10-
# && ALPINE_GLIBC_REPO="https://github.com/sgerrand/alpine-pkg-glibc/releases/download" \
11-
# && curl -LfsS https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -o /etc/apk/keys/sgerrand.rsa.pub \
12-
# && SGERRAND_RSA_SHA256="823b54589c93b02497f1ba4dc622eaef9c813e6b0f0ebbb2f771e32adf9f4ef2" \
13-
# && echo "${SGERRAND_RSA_SHA256} */etc/apk/keys/sgerrand.rsa.pub" | sha256sum -c - \
14-
# && curl -LfsS ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-${GLIBC_VER}.apk > /tmp/glibc-${GLIBC_VER}.apk \
15-
# && apk add --no-cache /tmp/glibc-${GLIBC_VER}.apk \
16-
# && curl -LfsS ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-bin-${GLIBC_VER}.apk > /tmp/glibc-bin-${GLIBC_VER}.apk \
17-
# && apk add --no-cache /tmp/glibc-bin-${GLIBC_VER}.apk \
18-
# && curl -Ls ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-i18n-${GLIBC_VER}.apk > /tmp/glibc-i18n-${GLIBC_VER}.apk \
19-
# && apk add --no-cache /tmp/glibc-i18n-${GLIBC_VER}.apk \
20-
# && /usr/glibc-compat/bin/localedef --force --inputfile POSIX --charmap UTF-8 "$LANG" || true \
21-
# && echo "export LANG=$LANG" > /etc/profile.d/locale.sh \
22-
# && apk del --purge .build-deps glibc-i18n \
23-
# && rm -rf /tmp/*.apk /var/cache/apk/*
1+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
242

253
COPY app_linux_amd64 app_linux_amd64
264

27-
RUN apk update && \
28-
apk -i upgrade && \
29-
apk cache clean
5+
USER root
6+
7+
RUN microdnf -y update && \
8+
microdnf clean all
9+
10+
USER 1001
3011

3112
EXPOSE 8080
3213

be-typescript-express/files/docker/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
FROM node:22-alpine
1+
FROM registry.access.redhat.com/ubi9/nodejs-22-minimal:latest
22

33
COPY dist /node
44

5-
RUN apk update && \
6-
apk -i upgrade && \
7-
apk cache clean
5+
USER root
86

9-
RUN chown -R node: /node
7+
RUN microdnf -y update && \
8+
microdnf clean all
109

1110
EXPOSE 8080
1211

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# add /overwrite FROM with your base image, and do whatever you like here :)
2-
FROM registry.redhat.io/ubi9/ubi
2+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
33

44
RUN echo "Building simple container"
55

66
USER root
7-
8-
RUN yum -y update && \
9-
yum install -y nc && \
10-
yum clean all
11-
7+
8+
RUN microdnf -y update && \
9+
microdnf clean all
10+
1211
USER 1001
1312

1413
EXPOSE 8080
1514

16-
CMD ["/bin/sh", "-c", "/usr/bin/nc -lk -p 8080 --sh-exec \"echo -e 'HTTP/1.1 200 OK\n\nHello World!\n$(date)'\""]
15+
CMD ["sh", "-c", "while true; do echo 'Container running on port 8080'; sleep 5; done"]
16+

fe-angular/files/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nginx:1.27.3-alpine
1+
FROM public.ecr.aws/nginx/nginx:1.27.4-alpine
22

33
RUN apk update && \
44
apk -i upgrade && \

fe-ionic/files/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nginx:1.27.3-alpine
1+
FROM public.ecr.aws/nginx/nginx:1.27.4-alpine
22

33
RUN apk update && \
44
apk -i upgrade && \

0 commit comments

Comments
 (0)