# Use the base image built using the Dockerfile.base file FROM rcl11/rat:waterbase MAINTAINER Rebecca Lane "rebecca.lane@qmul.ac.uk" ### Run the following commands as super user (root): USER root # Make ssh dir RUN mkdir -p /root/.ssh/ ARG KEY ENV KEY $KEY # Copy over private key. Using deploykey with readonly access. RUN echo "${KEY}" >> /root/.ssh/id_rsa RUN chmod 700 /root/.ssh/id_rsa # Create known_hosts RUN touch /root/.ssh/known_hosts # Add github host key into known_hosts RUN ssh-keyscan github.com >> /root/.ssh/known_hosts #Update RAT from water_rat branch using git RUN cd /root \ && source ./env_rat-dev.sh \ && cd rat-dev \ && git pull origin water_rat \ && scons # Remove SSH keys RUN rm -rf /root/.ssh/ ### Open terminal CMD ["/bin/bash"]