Guest User

Untitled

a guest
Jun 21st, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. FROM ubuntu
  2.  
  3. MAINTAINER Luke Crooks "luke@pumalo.org"
  4.  
  5. # Update aptitude with new repo
  6. RUN apt-get update
  7.  
  8. # Install software
  9. RUN apt-get install -y git
  10. # Make ssh dir
  11. RUN mkdir /root/.ssh/
  12.  
  13. # Copy over private key, and set permissions
  14. ADD id_rsa /root/.ssh/id_rsa
  15.  
  16. # Create known_hosts
  17. RUN touch /root/.ssh/known_hosts
  18. # Add bitbuckets key
  19. RUN ssh-keyscan bitbucket.org >> /root/.ssh/known_hosts
  20.  
  21. # Clone the conf files into the docker container
  22. RUN git clone git@bitbucket.org:User/repo.git
Add Comment
Please, Sign In to add comment