millions-furniture-75402
06/03/2020, 9:24 PMDOCKER_BUILDKIT=1
via the env
property on a DockerBuild
using awsx.ecs.Image.fromDockerBuild
. My env
is the same as the test example ( https://github.com/pulumi/pulumi-docker/pull/95/files#diff-737a6e76d84c40fbbd438671aaf1a8c3R43 ), but I receive an error, and I don’t see the env options in there (not sure if I would though);
error: Error: ' docker build --ssh default ./app -t d2314cb1-container' failed with exit code 1
Any tips for using Docker buildkit to install private packages in a docker build? https://docs.docker.com/develop/develop-images/build_enhancements/#using-ssh-to-access-private-data-in-builds--ssh
flag~/.npmrc
I was able to resolve:
always-auth=true
registry=<https://registry.npmjs.org/>
@my-org:registry=<https://npm.pkg.github.com>
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
args: { NODE_AUTH_TOKEN: config.getSecret("nodeAuthToken");
const nodeAuthToken: pulumi.Output<string> = process.env.NODE_AUTH_TOKEN || pulumi.output(config.getSecret("nodeAuthToken")!.apply(v => v));