Docker Community Forums

Share and learn in the Docker community.

Use AutomatedBuilds environment vars from the configuration set in the web tool

automatedbuilds

(Juaxix) #1

Hello, I’m trying to pass this variables


to the Dockerfile ,but I don’t understand how to read them.
This is the Dockerfile:

FROM ubuntu:16.04
MAINTAINER juaxix 
ENV git_username juaxix
ENV git_token none
RUN mkdir ~/${git_username}
WORKDIR ~/${git_username}
CMD echo "${git_token}" > ~/{git_username}/gittoken
CMD ls -lha ~/${git_username}
CMD cat ~/${git_username}.${git_token}
#Add display driver
#ADD NVIDIA-Linux-x86_64-340.76.run /tmp/NVIDIA-DRIVER.run
#RUN apt-get update 
#RUN apt-get -yq install mono-complete build-essential \
#  mono-reference-assemblies-4.0 mono-devel mono-xbuild mono-mcs mono-devel \
#  cmake dos2unix clang-3.5 libfreetype6-dev \
#  libgtk-3-dev xdg-user-dirs pulseaudio alsa-utils \
#  x11-apps libclang-common-3.5-dev libclang1-3.5 libllvm3.5v5 llvm-3.5 \
#  llvm-3.5-dev llvm-3.5-runtime libgtk-3-0 git 

#RUN git clone --depth=1 -b 4.18 https://${git_username}:${git_token}@github.com/EpicGames/UnrealEngine.git ~/UnrealEngine_4.18}:${git_token}@`Preformatted text`github.com/EpicGames/UnrealEngine.git ~/UnrealEngine_4.18

what am I doing wrong?
thanks