File tree Expand file tree Collapse file tree 8 files changed +39
-52
lines changed
be-fe-mono-repo-plain/files
be-golang-plain/files/docker
be-typescript-express/files/docker
docker-plain/files/docker Expand file tree Collapse file tree 8 files changed +39
-52
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
1013EXPOSE 8081
1114
12- CMD ["/bin/ sh" , "-c" , "/usr/bin/nc -lk -p 8081 -e echo -e \" HTTP/1.1 200 OK \n\n Hello World! \n $(date) \" " ]
15+ CMD ["sh" , "-c" , "while true; do echo 'Container running on port 8081'; sleep 5; done " ]
Original file line number Diff line number Diff line change 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
1013EXPOSE 8080
1114
12- CMD ["/bin/ sh" , "-c" , "/usr/bin/nc -lk -p 8080 -e echo -e \" HTTP/1.1 200 OK \n\n Hello World! \n $(date) \" " ]
15+ CMD ["sh" , "-c" , "while true; do echo 'Container running on port 8080'; sleep 5; done " ]
Original file line number Diff line number Diff line change 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
253COPY 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
3112EXPOSE 8080
3213
Original file line number Diff line number Diff line change 1- FROM node: 22-alpine
1+ FROM registry.access.redhat.com/ubi9/nodejs- 22-minimal:latest
22
33COPY 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
1110EXPOSE 8080
1211
Original file line number Diff line number Diff line change 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
44RUN echo "Building simple container"
55
66USER 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+
1211USER 1001
1312
1413EXPOSE 8080
1514
16- CMD ["/bin/sh" , "-c" , "/usr/bin/nc -lk -p 8080 --sh-exec \" echo -e 'HTTP/1.1 200 OK\n\n Hello World!\n $(date)'\" " ]
15+ CMD ["sh" , "-c" , "while true; do echo 'Container running on port 8080'; sleep 5; done" ]
16+
Original file line number Diff line number Diff line change 1- FROM nginx:1.27.3 -alpine
1+ FROM public.ecr.aws/ nginx/nginx :1.27.4 -alpine
22
33RUN apk update && \
44 apk -i upgrade && \
Original file line number Diff line number Diff line change 1- FROM nginx:1.27.3 -alpine
1+ FROM public.ecr.aws/ nginx/nginx :1.27.4 -alpine
22
33RUN apk update && \
44 apk -i upgrade && \
You can’t perform that action at this time.
0 commit comments