sparse-intern-71089
04/06/2022, 9:33 PMlittle-cartoon-10569
04/06/2022, 10:01 PM-v=9
, and since you're running in CI, you'll want to add --logtostderr
(otherwise the logs go to files which disappear with your build container..).clever-glass-42863
04/06/2022, 10:06 PMpulumi/pulumi-dotnet
docker image that has .NET 6?little-cartoon-10569
04/06/2022, 10:08 PMlittle-cartoon-10569
04/06/2022, 10:12 PMlittle-cartoon-10569
04/06/2022, 10:13 PMclever-glass-42863
04/06/2022, 10:13 PMlittle-cartoon-10569
04/06/2022, 10:14 PMlittle-cartoon-10569
04/06/2022, 10:14 PMlittle-cartoon-10569
04/06/2022, 10:16 PMclever-glass-42863
04/06/2022, 10:16 PMlittle-cartoon-10569
04/06/2022, 10:16 PMclever-glass-42863
04/06/2022, 10:17 PMclever-glass-42863
04/06/2022, 10:17 PMclever-glass-42863
04/06/2022, 10:53 PMdocker info
via the pulumi/pulumi-dotnet container image (invoked from pulumi up), I get docker: command not found
. What I'm trying to track down is an apparent hang when pushing or building the image for the app. How does Pulumi handle the docker images from within the running container?little-cartoon-10569
04/06/2022, 11:14 PMdocker
inside the GitLab-CI container? docker
isn't installed by default iirc, you need to use the dind base image. Onesec, I'll get docs.little-cartoon-10569
04/06/2022, 11:16 PMlittle-cartoon-10569
04/06/2022, 11:17 PMlittle-cartoon-10569
04/06/2022, 11:17 PMclever-glass-42863
04/07/2022, 2:06 PMservices:
- name: docker:20-dind
alias: docker
command: ["--tls=false"]
deploy:
image:
name: pulumi/pulumi-dotnet
when: manual
tags:
- docker
variables:
# AWS_ACCESS_KEY_ID supplied via CiCd variables...
# AWS_SECRET_ACCESS_KEY supplied via CiCd variables...
AWS_REGION: us-west-1
PULUMI_PROJECT_DIR: ./Product.Pulumi
PULUMI_CONFIG_PASSPHRASE: $CI_COMMIT_REF_NAME
DOCKER_DRIVER: overlay2
DOCKER_HOST: <tcp://docker:2375>
DOCKER_TLS_CERTDIR: ""
script:
# Prepre docker cli...
- apt-get update && apt-get install -y ca-certificates && apt-get install -y curl && apt-get install -y gnupg && apt-get install -y lsb-release
- curl -fsSL <https://download.docker.com/linux/debian/gpg> | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
- echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] <https://download.docker.com/linux/debian> $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
- apt-get update && apt-get install -y docker-ce-cli
# Install dotnet 6, will eventually bake this in our own pulumi docker image...
- apt-get install -y wget
- wget <https://dot.net/v1/dotnet-install.sh>
- bash dotnet-install.sh -c Current
# Login to our S3 backend to store / restore state...
- pulumi login <s3://our-product-backend-bucket/$CI_COMMIT_REF_NAME>
# Deploy...
- cd $PULUMI_PROJECT_DIR
- pulumi stack select $CI_COMMIT_REF_NAME --create --verbose 9
- pulumi up --stack $CI_COMMIT_REF_NAME --non-interactive --yes --skip-preview --verbose 9
Hopefully someone finds this useful if they run into a similar issue.