OpenTofu 1.10: Disable usage of ghcr.io image as a base image (#1994)

Signed-off-by: Janos <179820029+abstractionfactory@users.noreply.github.com>
Signed-off-by: abstractionfactory <179820029+abstractionfactory@users.noreply.github.com>
Signed-off-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com>
This commit is contained in:
AbstractionFactory 2025-01-07 16:08:23 +01:00 committed by GitHub
parent 7ba6e61c69
commit 3033dba76a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 23 deletions

View File

@ -2,6 +2,8 @@
UPGRADE NOTES:
* Using the `ghcr.io/opentofu/opentofu` image as a base image for custom images is no longer supported. Please see https://opentofu.org/docs/intro/install/docker/ for instructions on building your own image.
NEW FEATURES:
- New builtin provider functions added ([#2306](https://github.com/opentofu/opentofu/pull/2306)) :

View File

@ -13,32 +13,12 @@ COPY tofu /usr/local/bin/tofu
ONBUILD RUN echo -e "\033[1;33mWARNING! PLEASE READ!\033[0m" >&2 \
&& echo -e "\033[1;33mPlease read carefully: you are using the OpenTofu image as a base image\033[0m" >&2 \
&& echo -e "\033[1;33mfor your own builds. This image is only intended as a command line tool\033[0m" >&2 \
&& echo -e "\033[1;33mand not as general-purpose base image. It is not safe to use to build\033[0m" >&2 \
&& echo -e "\033[1;33mservices on top of because we don't regularly ship updates to all\033[0m" >&2 \
&& echo -e "\033[1;33mpackages in this image, which would be required for a secure base\033[0m" >&2 \
&& echo -e "\033[1;33mimage.\033[0m" >&2 \
&& echo -e "\033[1;33m\033[0m" >&2 \
&& echo -e "\033[1;33mStarting with OpenTofu 1.10, this image will refuse to build if used\033[0m" >&2 \
&& echo -e "\033[1;33mas a base image. Please follow the instructions at\033[0m" >&2 \
&& echo -e "\033[1;33mfor your own builds. This is no longer supported as of OpenTofu 1.10.\033[0m" >&2 \
&& echo -e "\033[1;33mPlease follow the instructions at\033[0m" >&2 \
&& echo -e "\033[1;33m https://opentofu.org/docs/intro/install/docker/ to build your own\033[0m" >&2 \
&& echo -e "\033[1;33mimage. See https://github.com/opentofu/opentofu/issues/1931 for details\033[0m" >&2 \
&& echo -e "\033[1;33mon this decision.\033[0m" >&2
ONBUILD RUN # WARNING! PLEASE READ!
ONBUILD RUN # Please read carefully: you are using the OpenTofu image as a base image
ONBUILD RUN # for your own builds. This image is only intended as a command line tool
ONBUILD RUN # and not as general-purpose base image. It is not safe to use to build
ONBUILD RUN # services on top of because we don't regularly ship updates to all
ONBUILD RUN # packages in this image, which would be required for a secure base
ONBUILD RUN # image.
ONBUILD RUN # Starting with OpenTofu 1.10, this image will refuse to build if used
ONBUILD RUN # as a base image. Please follow the instructions at
ONBUILD RUN # https://opentofu.org/docs/intro/install/docker/ to build your own
ONBUILD RUN # image. See https://github.com/opentofu/opentofu/issues/1931 for details
ONBUILD RUN # on this decision.
# This sleep is here to hopefully catch people's attention due to increased build times.
ONBUILD RUN sleep 120
ONBUILD RUN exit 1
ENTRYPOINT ["/usr/local/bin/tofu"]