Closed obriensystems closed 1 month ago
testing in a GCP cloud shell (intel only - no arm64)
michael@cloudshell:~/tef-olapp/github/terraform-example-foundation (tef-olapp)$ docker run obrienlabs/terraform-example-foundation-ado
Unable to find image 'obrienlabs/terraform-example-foundation-ado:latest' locally
latest: Pulling from obrienlabs/terraform-example-foundation-ado
d2aa1518a716: Pull complete
76ff73118202: Pull complete
3c2cba919283: Pull complete
b32fb4fcf463: Pull complete
af8c1adcdaeb: Pull complete
f31ad5bb9a07: Pull complete
dcdc7d3a5d40: Pull complete
Digest: sha256:f79fc4937575f143ddc29ca8958f0bf0dd67153587fbc6d05b5379cc16cb2205
Status: Downloaded newer image for obrienlabs/terraform-example-foundation-ado:latest
Usage: terraform [global options] <subcommand> [args]
The available commands for execution are listed below.
The primary workflow commands are given first, followed by
less common or more advanced commands.
Main commands:
init Prepare your working directory for other commands
validate Check whether the configuration is valid
plan Show changes required by the current configuration
apply Create or update infrastructure
destroy Destroy previously-created infrastructure
get version
michael@cloudshell:~/tef-olapp/github/terraform-example-foundation (tef-olapp)$ docker run obrienlabs/terraform-example-foundation-ado --version
Terraform v1.3.0
on linux_amd64
Your version of Terraform is out of date! The latest version
is 1.8.2. You can update by downloading from https://www.terraform.io/downloads.html
not persistent as expected
michael@cloudshell:~/tef-olapp/github/terraform-example-foundation (tef-olapp)$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
michael@cloudshell:~/tef-olapp/github/terraform-example-foundation (tef-olapp)$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e5b9119e1b16 obrienlabs/terraform-example-foundation-ado "terraform --version" 24 seconds ago Exited (0) 23 seconds ago nervous_fermat
ea9792466a42 obrienlabs/terraform-example-foundation-ado "terraform" About a minute ago Exited (127) About a minute ago priceless_cartwright
retest on terraform 1.3.10
The push refers to repository [docker.io/obrienlabs/terraform-example-foundation-ado]
fe0fec718258: Layer already exists
600d3bb9c25f: Layer already exists
5a3af3daf7a4: Layer already exists
3a53c526edc7: Layer already exists
84ff92691f90: Layer already exists
32bfd004bf31: Layer already exists
404802fd10b7: Layer already exists
latest: digest: sha256:51f797316b959bf66785a183f4fa752d1157dfe3329336fe4bdde53f1be15672 size: 1786
test a terraform exe run on ia64 only - not arm64
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Terraform v1.3.10
on linux_amd64
Continue on #399
external test
michael@cloudshell:~ (tef-olxyz)$ docker image rm obrienlabs/terraform-example-foundation-ado:latest -f
Untagged: obrienlabs/terraform-example-foundation-ado:latest
Untagged: obrienlabs/terraform-example-foundation-ado@sha256:f79fc4937575f143ddc29ca8958f0bf0dd67153587fbc6d05b5379cc16cb2205
Deleted: sha256:075b31b3e45cc809a55d9a753483febb99565ac12ef5bc020279a31e3ee74587
ichael@cloudshell:~ (tef-olxyz)$ docker pull obrienlabs/terraform-example-foundation-ado
Using default tag: latest
latest: Pulling from obrienlabs/terraform-example-foundation-ado
d2aa1518a716: Already exists
76ff73118202: Already exists
3c2cba919283: Already exists
b32fb4fcf463: Already exists
af8c1adcdaeb: Already exists
f31ad5bb9a07: Already exists
dcdc7d3a5d40: Already exists
Digest: sha256:f79fc4937575f143ddc29ca8958f0bf0dd67153587fbc6d05b5379cc16cb2205
Status: Downloaded newer image for obrienlabs/terraform-example-foundation-ado:latest
docker.io/obrienlabs/terraform-example-foundation-ado:latest
michael@cloudshell:~ (tef-olxyz)$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
32d8cb25a27d obrienlabs/terraform-example-foundation-ado "terraform --version" 10 seconds ago Exited (0) 8 seconds ago gallant_lalande
bd6e090c0f86 obrienlabs/terraform-example-foundation-ado "terraform --version" 11 minutes ago Exited (0) 11 minutes ago frosty_margulis
9fe650daf14c obrienlabs/terraform-example-foundation-ado "terraform --version" 13 minutes ago Exited (0) 13 minutes ago bold_cartwright
michael@cloudshell:~ (tef-olxyz)$ docker rm gallant_lalande
gallant_lalande
michael@cloudshell:~ (tef-olxyz)$ docker rm frosty_margulis
frosty_margulis
michael@cloudshell:~ (tef-olxyz)$ docker rm bold_cartwright
bold_cartwright
michael@cloudshell:~ (tef-olxyz)$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
michael@cloudshell:~ (tef-olxyz)$ docker run --name tef-ado obrienlabs/terraform-example-foundation-ado --version
Terraform v1.3.0
on linux_amd64
Your version of Terraform is out of date! The latest version
is 1.8.2. You can update by downloading from https://www.terraform.io/downloads.html
michael@cloudshell:~ (tef-olxyz)$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5f074c573888 obrienlabs/terraform-example-foundation-ado "terraform --version" 12 seconds ago Exited (0) 12 seconds ago tef-ado
michael@cloudshell:~ (tef-olxyz)$ docker rm tef-sdo
Error response from daemon: No such container: tef-sdo
michael@cloudshell:~ (tef-olxyz)$ docker rm tef-ado
tef-ado
michael@cloudshell:~ (tef-olxyz)$ docker image rm obrienlabs/terraform-example-foundation-ado:latest -f
Untagged: obrienlabs/terraform-example-foundation-ado:latest
Untagged: obrienlabs/terraform-example-foundation-ado@sha256:f79fc4937575f143ddc29ca8958f0bf0dd67153587fbc6d05b5379cc16cb2205
Deleted: sha256:075b31b3e45cc809a55d9a753483febb99565ac12ef5bc020279a31e3ee74587
michael@cloudshell:~ (tef-olxyz)$ docker run --name tef-ado obrienlabs/terraform-example-foundation-ado:latest --version
Unable to find image 'obrienlabs/terraform-example-foundation-ado:latest' locally
latest: Pulling from obrienlabs/terraform-example-foundation-ado
d2aa1518a716: Already exists
76ff73118202: Already exists
3c2cba919283: Already exists
b32fb4fcf463: Already exists
af8c1adcdaeb: Already exists
f31ad5bb9a07: Already exists
9a6d62f9bf23: Pull complete
Digest: sha256:c8a2438c1c6729cf1cd0ab5777bd537757655c6f209137af33b105c17721f369
Status: Downloaded newer image for obrienlabs/terraform-example-foundation-ado:latest
docker: Error response from daemon: Conflict. The container name "/tef-ado" is already in use by container "460dfe4001dd00d33ae6ccd3272adaf7779478dc1ee5f57359bc5ab41eab9830". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.
michael@cloudshell:~ (tef-olxyz)$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
460dfe4001dd 075b31b3e45c "terraform --version" 15 minutes ago Exited (0) 15 minutes ago tef-ado
michael@cloudshell:~ (tef-olxyz)$ docker rm -v tef-ado
tef-ado
michael@cloudshell:~ (tef-olxyz)$ docker run --name tef-ado obrienlabs/terraform-example-foundation-ado:latest --version
Terraform v1.3.10
on linux_amd64
Your version of Terraform is out of date! The latest version
is 1.8.2. You can update by downloading from https://www.terraform.io/downloads.html
michael@cloudshell:~ (tef-olxyz)$
Test terraform 1.3.10 image in Azure Devops
via azure-pipeline.yml
trigger:
- main
pool:
vmImage: ubuntu-latest
- script: |
docker run obrienlabs/terraform-example-foundation-ado --version
replaces the artifact registry container build using tf-cloudbuilder
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
Create a public sharable development image for use while iterating #399
Dockerfile
branch gh399-ado repository
https://hub.docker.com/repository/docker/obrienlabs/terraform-example-foundation-ado/general