Closed pezhore closed 3 years ago
Even successful runs print no output? My guess would be there's something wrong with the harbor.example.local:443/custom-certs/tf-docker
image. How are you building that image? Would it be possible to try a dummy run with the normal ljfranklin/terraform-resource:latest
image?
Yup, even successful runs produce no output. All I'm doing for the custom-certs/tf-docker
container is injecting our internal ca certs to ljfranklin/terraform-resource:latest
. Otherwise, the terraform init
freaks out with our internally signed Minio cluster S3 backend.
FROM ljfranklin/terraform-resource
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
COPY ./certs/internal-ca.crt /usr/local/share/ca-certificates/internal-ca.crt
COPY ./certs/internal-int-ca.crt /usr/local/share/ca-certificates/internal-int-ca.crt
RUN update-ca-certificates
Otherwise, the terraform init freaks out with our internally signed Minio cluster S3 backend.
So if you use the ljfranklin/terraform-resource:latest
image then you at least get output showing terraform init
failing? If so still seems like an issue with the custom image although your Dockerfile looks right to me.
Afraid I'm a bit at a loss here. Maybe try fly watch
to see if you get output that way, could be an issue with streaming your build logs to the web UI. You could also try manually adding some fmt.Fprintf(os.Stderr, "TESTING")
to the resource and manually building an image: https://github.com/ljfranklin/terraform-resource/blob/master/DEVELOPMENT.md#testing-your-changes-in-concourse.
I'll take a look at building the image from scratch - thanks @ljfranklin
@ljfranklin update: there's something funky with our concourse version because on a more recent version in stage the pipeline works just fine - output and all.
I'm trying to figure out what I'm missing - no matter what I try, I can't seem to get reasonable output from the terraform resource in concourse. Success or failures don't seem to provide much output in the UI/console:
This makes troubleshooting particularly difficult and I'm open to suggestions on how to fix this.
Pipeline: