Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker_image build { suppress_output = false } does not work #661

Open
FlorinAndrei opened this issue Dec 12, 2024 · 0 comments
Open

docker_image build { suppress_output = false } does not work #661

FlorinAndrei opened this issue Dec 12, 2024 · 0 comments

Comments

@FlorinAndrei
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and docker Provider) Version

OpenTofu v1.8.7
on darwin_arm64
+ provider registry.opentofu.org/hashicorp/aws v5.80.0
+ provider registry.opentofu.org/hashicorp/null v3.2.3
+ provider registry.opentofu.org/kreuzwerker/docker v3.0.2

Affected Resource(s)

  • docker_image

Terraform Configuration Files

resource "docker_image" "this" {
  name = "foobar1"

  build {
    context    = "code"
    dockerfile = "Dockerfile"
    build_args = {}
    platform   = "linux/amd64"
    pull_parent = true
    suppress_output = false
  }

  force_remove = false
  keep_locally = false
  triggers     = {}
}

terraform {
  required_version = ">= 1.0"

  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = ">= 4.22"
    }
    docker = {
      source  = "kreuzwerker/docker"
      version = ">= 3.0"
    }
    null = {
      source  = "hashicorp/null"
      version = ">= 2.0"
    }
  }
}

In the code/ subfolder I have this repo: https://gitlab.com/tmaczukin-test-projects/fargate-driver-debian

macOS 15.1.1

% docker version                                                                                                                                                                                                                    
Client:
 Version:           27.3.1
 API version:       1.47
 Go version:        go1.22.7
 Git commit:        ce12230
 Built:             Fri Sep 20 11:38:18 2024
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

Server: Docker Desktop 4.36.0 (175267)
 Engine:
  Version:          27.3.1
  API version:      1.47 (minimum version 1.24)
  Go version:       go1.22.7
  Git commit:       41ca978
  Built:            Fri Sep 20 11:41:19 2024
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.7.21
  GitCommit:        472731909fa34bd7bc9c087e4c27943f9835f111
 runc:
  Version:          1.1.13
  GitCommit:        v1.1.13-0-g58aa920
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Debug Output

https://gist.github.com/FlorinAndrei/d8c5bf6e03d042c61258c16bfbd597a5

Expected Behaviour

I want to see the usual docker build output.

Actual Behaviour

I only see the TF apply messages.

Steps to Reproduce

  1. tofu apply

Important Factoids

Pretty standard setup, see above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant