Skip to content

Commit

Permalink
Change: Disable upgrade by default
Browse files Browse the repository at this point in the history
  • Loading branch information
n-thumann committed Nov 12, 2024
1 parent 337aa17 commit a18691b
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ To build e.g. the image for Mageia 8 use:
docker build operating_systems/mageia --build-arg=TAG=8 -t mageia:8
```

If not specified otherwise, the image will be built with its packages explicitly updated. This is available for most images. To build the image for Oracle Linux 5 (non-updated) use:
If not specified otherwise, the image will be built with its packages explicitly not updated. This is available for most images. To build the image for Oracle Linux 5 (updated) use:

```
docker build operating_systems/oraclelinux --build-arg=TAG=5 --build-arg=UPDATED=false -t oraclelinux:5
docker build operating_systems/oraclelinux --build-arg=TAG=5 --build-arg=UPDATED=true -t oraclelinux:5
```
2 changes: 1 addition & 1 deletion applications/generic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASEIMAGE
ARG TAG

FROM ghcr.io/greenbone/vt-test-environments/${BASEIMAGE}:${TAG}
ARG UPDATED=true
ARG UPDATED=false
ARG TAG

# Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion applications/oracle-weblogic/10.3.6.0-2017/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASEIMAGE=vulhub/weblogic
ARG TAG=10.3.6.0-2017

FROM ${BASEIMAGE}:${TAG}
ARG UPDATED=true
ARG UPDATED=false

ENV DEBIAN_FRONTEND=noninteractive
RUN ( \
Expand Down
2 changes: 1 addition & 1 deletion applications/oracle-weblogic/12.2.1.3-2018/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASEIMAGE=vulhub/weblogic
ARG TAG=12.2.1.3-2018

FROM ${BASEIMAGE}:${TAG}
ARG UPDATED=true
ARG UPDATED=false

USER root

Expand Down
2 changes: 1 addition & 1 deletion operating_systems/almalinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASEIMAGE=almalinux
ARG TAG

FROM ${BASEIMAGE}:${TAG}
ARG UPDATED=true
ARG UPDATED=false
ARG TAG

# Lock releasever to the tag to pin the minor release
Expand Down
2 changes: 1 addition & 1 deletion operating_systems/amazonlinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASEIMAGE=amazonlinux
ARG TAG

FROM ${BASEIMAGE}:${TAG}
ARG UPDATED=true
ARG UPDATED=false

RUN if [ "$UPDATED" = true ]; then yum upgrade -y; fi \
&& yum install -y openssh-server passwd \
Expand Down
2 changes: 1 addition & 1 deletion operating_systems/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASEIMAGE=debian
ARG TAG

FROM ${BASEIMAGE}:${TAG}
ARG UPDATED=true
ARG UPDATED=false

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
Expand Down
2 changes: 1 addition & 1 deletion operating_systems/fedora/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASEIMAGE=fedora
ARG TAG

FROM ${BASEIMAGE}:${TAG}
ARG UPDATED=true
ARG UPDATED=false

RUN if [ "$UPDATED" = true ]; then dnf upgrade -y; fi \
&& dnf install -y openssh-server \
Expand Down
2 changes: 1 addition & 1 deletion operating_systems/mageia/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASEIMAGE=mageia
ARG TAG

FROM ${BASEIMAGE}:${TAG}
ARG UPDATED=true
ARG UPDATED=false

RUN if [ "$UPDATED" = true ]; then dnf upgrade -y; fi \
&& dnf install -y openssh-server \
Expand Down
2 changes: 1 addition & 1 deletion operating_systems/openeuler/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASEIMAGE=openeuler/openeuler
ARG TAG

FROM ${BASEIMAGE}:${TAG}
ARG UPDATED=true
ARG UPDATED=false

RUN if [ "$UPDATED" = true ]; then dnf upgrade -y; fi \
&& dnf install -y openssh-server passwd \
Expand Down
2 changes: 1 addition & 1 deletion operating_systems/oraclelinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASEIMAGE=oraclelinux
ARG TAG

FROM ${BASEIMAGE}:${TAG}
ARG UPDATED=true
ARG UPDATED=false

RUN if [ "$UPDATED" = true ]; then yum upgrade -y && yum clean all; fi \
&& useradd demo \
Expand Down
2 changes: 1 addition & 1 deletion operating_systems/rockylinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASEIMAGE=rockylinux
ARG TAG

FROM ${BASEIMAGE}:${TAG}
ARG UPDATED=true
ARG UPDATED=false
ARG TAG

# Lock releasever to the tag to pin the minor release
Expand Down
2 changes: 1 addition & 1 deletion operating_systems/slackware/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASEIMAGE=vbatts/slackware
ARG TAG

FROM ${BASEIMAGE}:${TAG}
ARG UPDATED=true
ARG UPDATED=false

RUN slackpkg update \
# When updating, we need to upgrade slackpkg itself first. Otherwise upgrade-all will abort.
Expand Down
2 changes: 1 addition & 1 deletion operating_systems/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASEIMAGE=ubuntu
ARG TAG

FROM ${BASEIMAGE}:${TAG}
ARG UPDATED=true
ARG UPDATED=false

ENV DEBIAN_FRONTEND=noninteractive
RUN ( \
Expand Down

0 comments on commit a18691b

Please sign in to comment.