Closed brian-nguyen closed 6 years ago
yeah you'll want to remove this and add vendor
to your .dockerignore
, my bad: 😋
RUN if [ ! -d "vendor" ]; then \
go get -u github.com/golang/dep/cmd/dep; \
dep ensure; \
fi
Some history behind this decision - Docker caching for this layer seemed a bit finnicky, and since all Inertia builds are done either a) manually with dep ensure
beforehand or b) automatically via Travis but with a fresh dep ensure
, I added this condition so that if a vendor
directory is mounted then Docker would 100% skip the potentially lengthy dep
operations.
Didn't think too much of it when I added the configuration to Bumper, but in continuous deployment via Inertia, your vendor directory will never get updated if one exists already, since itll get mounted and the dep ensure
step will be skipped 😢
The production container should have a copy of the service account credentials in the final stage. Also investigate whether or not the
vendor/
directory is being updated properly.