hi, I'm doing a docker image build via the makefil...
# geodesic
s
hi, I'm doing a docker image build via the makefile. Using this https://github.com/cloudposse/atmos/blob/main/examples/quick-start-advanced/Dockerfile example, have anyone came across this error before ?
Copy code
Step 20/24 : RUN apt-get update && apt-get install -y -u --allow-downgrades   terraform-1="${TF_VERSION}-*" &&   update-alternatives --set terraform /usr/share/terraform/1/bin/terraform
 ---> Running in ce0ba58df71b
Hit:1 <http://deb.debian.org/debian> bookworm InRelease
Hit:2 <http://deb.debian.org/debian> bookworm-updates InRelease
Hit:3 <http://deb.debian.org/debian-security> bookworm-security InRelease
Get:4 <https://dl.cloudsmith.io/public/cloudposse/packages/deb/debian> bookworm InRelease [4979 B]
Hit:5 <https://packages.cloud.google.com/apt> cloud-sdk InRelease
Hit:6 <https://packages.opentofu.org/opentofu/tofu/any> any InRelease
Fetched 4979 B in 2s (3107 B/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Package terraform-1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Version '1.9.8-*' for 'terraform-1' was not found
The command '/bin/sh -c apt-get update && apt-get install -y -u --allow-downgrades   terraform-1="${TF_VERSION}-*" &&   update-alternatives --set terraform /usr/share/terraform/1/bin/terraform' returned a non-zero code: 100
make[1]: *** [docker/build] Error 100
make: *** [build] Error 2
j
Geodesic only supports Terraform up to version 1.5.7 due to licensing issues. Either change
Copy code
ARG TF_VERSION=1.9.8
to
Copy code
ARG TF_VERSION=1.5.7
or remove the Terraform installation and switch to OpenTofu
@Andriy Knysh (Cloud Posse) Please fix the Dockerfile ☝️ in the Atmos quickstart
👍 1
s
ok makes sense now. Was banging my head on this 😅
a
@Samuel Than please update your Dockerfile to use TF 1.5.7 (we'll update it in atmos as well)
👍 1
e
Or as @Jeremy G (Cloud Posse) said, use opentofu.
No need to stay pinned to a 1+ year old version of MPL terraform.
We should def update our examples to use opentofu latest.