diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 35489b9..787eed0 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,5 @@ -FROM rockylinux:9.2-minimal +ARG BASE_IMAGE_VERSION=9.2-minimal +FROM rockylinux:${BASE_IMAGE_VERSION} ENV TIMEZONE=Europe/London RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime && \ @@ -15,7 +16,10 @@ RUN rm -rf /usr/share/doc RUN /usr/bin/fish -c "curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source; and fisher install jorgebucaran/{fisher,fishtape}" +ARG BASE_IMAGE_VERSION COPY motd /etc/motd +RUN sed -i "s/{{BASE_IMAGE_VERSION}}/$BASE_IMAGE_VERSION/" /etc/motd + COPY fish_greeting.fish /root/.config/fish/functions ENTRYPOINT ["/usr/bin/fish"] diff --git a/.devcontainer/motd b/.devcontainer/motd index 7419120..12086f3 100644 --- a/.devcontainer/motd +++ b/.devcontainer/motd @@ -1,7 +1,7 @@ ░▄▀▀▄░▄▀▀▄░█▀▀▄░█▀▄ ░█▄▄█░█░░█░█░▒█░█░█  dev container -░█░░░░░▀▀░░▀░░▀░▀▀░ rockylinux:9.1-minimal +░█░░░░░▀▀░░▀░░▀░▀▀░ rockylinux:{{BASE_IMAGE_VERSION}}  - See CONTRIBUTING.md and CODE_OF_CONDUCT.md before contributing changes to the project diff --git a/README.md b/README.md index b5e0302..34216cf 100644 --- a/README.md +++ b/README.md @@ -316,7 +316,7 @@ The project sources will be mounted at `/workspaces/pond`, and the container wil ``` ░▄▀▀▄░▄▀▀▄░█▀▀▄░█▀▄ ░█▄▄█░█░░█░█░▒█░█░█ dev container -░█░░░░░▀▀░░▀░░▀░▀▀░ rockylinux:9.0-minimal +░█░░░░░▀▀░░▀░░▀░▀▀░ rockylinux:9.2-minimal - See CONTRIBUTING.md and CODE_OF_CONDUCT.md before contributing changes to the project