Guest User

docker/buildfile

a guest
Apr 5th, 2017
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. naveen@ol4:>cat build1/Dockerfile
  2. #Naveen's customized centos7 image
  3. FROM centos:latest
  4. MAINTAINER naveen@gmail.com
  5. RUN /usr/sbin/useradd -d /home/oracle -ms /bin/bash oracle
  6. RUN /usr/bin/yum -y update
  7. USER oracle
  8. RUN chmod 755 /home/oracle
  9. USER root
  10. naveen@ol4:>cat build2/Dockerfile
  11. #From centos7:image i am creating a customized image
  12. FROM centos:latest
  13. MAINTAINER naveen@gmail.com
  14. RUN useradd -ms /bin/bash oracle
  15. USER oracle
  16. RUN yum -y update
  17. naveen@ol4:>cat build3/Dockerfile
  18. #EXPOSE ports for a Specific Docker instance
  19. FROM centos:latest
  20. MAINTAINER naveen@linux.com
  21. RUN yum -y update
  22. RUN yum install -y httpd net-tools
  23. RUN /bin/mkdir -p /var/www/html
  24. RUN /bin/echo "html code for presentation to Devops class, Hari,Krishna,Ramesh,Praveen " > /var/www/html/index.html
  25. EXPOSE 80
  26. CMD apachectl "-DFOREGROUND"
  27. naveen@ol4:>cat build4/Dockerfile
  28. FROM centos:latest
  29. MAINTAINER naveen@linux.com
  30. ADD testfile /root
  31. ADD mysql.tar.gz /root
  32. #ADD CURL http:///oracle.com/softwares/sofware1 /root
  33. EXPOSE 80
  34. CMD apachectl "-D FOREGROUND"
  35. naveen@ol4:>cat build5/Dockerfile
  36. FROM centos:latest
  37. MAINTAINER naveen@linux.com
  38. COPY testfile /root
  39. COPY mysql.tar.gz /root
  40. EXPOSE 80
  41. CMD apachectl "-D FOREGROUND"
  42. naveen@ol4:>cat build6/Dockerfile
  43. #Naveen's customized centos7 image
  44. FROM centos:latest
  45. MAINTAINER naveen@gmail.com
  46. ENV version 1.2.0_naveen
  47. naveen@ol4:>cat build7/Dockerfile
  48. #EXPOSE ports for a Specific Docker instance
  49. FROM centos:latest
  50. MAINTAINER naveen@linux.com
  51. RUN yum -y update
  52. RUN yum install -y httpd net-tools
  53. RUN /bin/mkdir -p /var/www/html
  54. RUN /bin/echo "html code for presentation to Devops class, Hari,Krishna,Ramesh,Praveen " > /var/www/html/index.html
  55. EXPOSE 80
  56. ENTRYPOINT apachectl "-DFOREGROUND"
  57. naveen@ol4:>
Add Comment
Please, Sign In to add comment