atomist / sdm-pack-docker

Extension Pack for an Atomist SDM to integrate Docker
Apache License 2.0
0 stars 2 forks source link

Kaniko apparently doesn't add ENV to resulting image #46

Closed cdupuis closed 5 years ago

cdupuis commented 5 years ago

In some customer tests, Kaniko isn't setting ENV variables in the resulting image.

cdupuis commented 5 years ago

I've tested this with the following Dockerfile:

https://github.com/sdm-org/cd-ms-20/blob/master/Dockerfile

When running this through latest Kaniko and run

$ docker run -it --entrypoint=env atomist/cd-ms-20:master-8290927
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=6a995b3d24d8
TERM=xterm
LANG=C.UTF-8
JAVA_HOME=/docker-java-home
JAVA_VERSION=8u212
JAVA_DEBIAN_VERSION=8u212-b01-1~deb9u1
DUMB_INIT_VERSION=1.2.2
BLUEBIRD_WARNINGS=0
NODE_ENV=development
ATOMIST_ENV=production
NPM_CONFIG_LOGLEVEL=warn
SUPPRESS_NO_CONFIG_WARNING=true
ATOMIST_CONFIG_PATH=/opt/sdm/sdm-config.json
DOCKER_BUILDER=kaniko
HOME=/root

it appears to have all ENV vars correctly set.

cdupuis commented 5 years ago

Can’t reproduce.