Get elastic beanstalk environment variables in a docker container

So, I try not to add sensitive information to the docker file. The logical approach is to include ebs (GUI) as an ENV variable in the configuration. However, the docker assembly does not seem to be able to access the ENV variable. Any thoughts?

enter image description here

FROM jupyter/scipy-notebook

USER root

ARG AWS_ACCESS_KEY_ID
RUN echo {$AWS_ACCESS_KEY_ID}
+4
source share
2 answers

( Docker) ( ), , .
, docker 1.13 ,

( ) http_proxy, --build-arg:

 docker build --build-arg HTTP_PROXY=http://...

, RUN Docker.
, , ENV.

ENV, ARG:

ARG <name>[=<default value>]

ARG , docker --build-arg <varname>=<value>

0

, Dockerrun.aws.json . , docker run EB. , .

0

Source: https://habr.com/ru/post/1670849/


All Articles