This message was deleted.
# general
b
This message was deleted.
l
Hey! Does it work if you set a different $HOME env var?
Also, do you have an example Dockerfile?
a
Hey! Does it work if you set a different $HOME env var?
Yes, it does! I'm essentially doing this with a Golang base image.
Copy code
RUN set -ex \
 && curl --fail --silent --show-error --location --remote-name "<https://github.com/infracost/infracost/releases/download/v${INFRACOST_VERSION}/infracost-linux-amd64.tar.gz>" \
 && echo "${INFRACOST_SHA256SUM} infracost-linux-amd64.tar.gz" | sha256sum -c - \
 && tar xf infracost-linux-amd64.tar.gz && mv infracost-linux-amd64 /tf-bin/infracost \
 && chmod +x /tf-bin/infracost \
 && rm -f infracost-linux-amd64.tar.gz
l
Great! Yeah I think setting that env var is probably the best option
👍 1
w
@average-balloon-47336 curious if this is for a CI/CD integration? if so, which CI system do you use?
a
It is, we're using Buildkite.
w
Great! let us know how it goes, I’m working on the Azure DevOps integration just now so happy to help…Someone else added this issue, they were using AWS with STS tokens so needed to pass those envs and mount their code to the container.
a
We sort of have a homebrewed setup that is a bit of a mess to work with. 😅 Otherwise I can't see the use of Infracost in Buildkite being particular hard.
👍 1