Fix entrypoint
This commit is contained in:
parent
46a9ea08d7
commit
4d509bbfe7
2 changed files with 6 additions and 8 deletions
|
@ -3,7 +3,7 @@ FROM git.zontreck.com/ariascreations/buildenvironments:debianbuild
|
|||
ENV DOCKER_AGENT_SECRET NAN
|
||||
ENV DOCKER_USER NAN
|
||||
ENV DOCKER_PASSWORD NAN
|
||||
ENV HOME /home/builder
|
||||
ENV HOME /root
|
||||
|
||||
|
||||
RUN apt-get update && apt-get upgrade -y
|
||||
|
@ -17,10 +17,8 @@ WORKDIR /
|
|||
RUN curl -sO https://ci.zontreck.com/jnlpJars/agent.jar
|
||||
|
||||
|
||||
RUN useradd -m -s /bin/bash builder
|
||||
RUN mkdir /builder
|
||||
RUN chown builder:builder /builder
|
||||
USER builder
|
||||
USER root
|
||||
|
||||
|
||||
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
|
@ -3,10 +3,10 @@
|
|||
if [ -d /keys ]
|
||||
then
|
||||
echo "Installing SSH Keys..."
|
||||
mkdir -pv /home/builder/.ssh
|
||||
cp -v /keys/id_rsa ~/.ssh/
|
||||
cp -v /keys/id_rsa.pub ~/.ssh/
|
||||
chmod 0600 ~/.ssh/id_rsa
|
||||
mkdir -pv $HOME/.ssh
|
||||
cp -v /keys/id_rsa $HOME/.ssh/
|
||||
cp -v /keys/id_rsa.pub $HOME/.ssh/
|
||||
chmod 0600 $HOME/.ssh/id_rsa
|
||||
sleep 10
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue