https://pulumi.com logo
#general
Title
# general
b

busy-umbrella-36067

11/15/2018, 11:18 PM
Im getting slightly confused with Pulumi’s Docker
--cache-from
implementation. Is each image build explicitly tagged with the
stages
when doing the push?
Copy code
let multistageCachedNginx = new cloud.Service("examples-multistage-cached-nginx", {
    containers: {
        nginx: {
            build: {
                context: "./app",
                dockerfile: "./app/Dockerfile-multistage",
                cacheFrom: {stages: ["build"]},
            },
            memory: 128,
            ports: [{ port: 80 }],
        },
    },
    replicas: 2,
});
Copy code
[ lumi-cloud/examples/containers ]  +  cloud:service:Service examples-multistage-cached-nginx creating Executing 'docker pull <http://086028354146.dkr.ecr.us-east-2.amazonaws.com/pulum-b3285f40-container-f879faf:build|086028354146.dkr.ecr.us-east-2.amazonaws.com/pulum-b3285f40-container-f879faf:build>'
m

microscopic-florist-22719

11/15/2018, 11:25 PM
That was certainly the case originally. @lemon-spoon-91807 is this still the case?
l

lemon-spoon-91807

11/15/2018, 11:25 PM
checking
It's supposed to be. That's what i thought this code was for:
b

busy-umbrella-36067

11/16/2018, 1:43 AM
ok so thats fine
if they don’t exist the docker pull comes up as a warning, I thought that was throwing the tests off
3 Views