Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- naveen@ol4:>cat build1/Dockerfile
- #Naveen's customized centos7 image
- FROM centos:latest
- MAINTAINER naveen@gmail.com
- RUN /usr/sbin/useradd -d /home/oracle -ms /bin/bash oracle
- RUN /usr/bin/yum -y update
- USER oracle
- RUN chmod 755 /home/oracle
- USER root
- naveen@ol4:>cat build2/Dockerfile
- #From centos7:image i am creating a customized image
- FROM centos:latest
- MAINTAINER naveen@gmail.com
- RUN useradd -ms /bin/bash oracle
- USER oracle
- RUN yum -y update
- naveen@ol4:>cat build3/Dockerfile
- #EXPOSE ports for a Specific Docker instance
- FROM centos:latest
- MAINTAINER naveen@linux.com
- RUN yum -y update
- RUN yum install -y httpd net-tools
- RUN /bin/mkdir -p /var/www/html
- RUN /bin/echo "html code for presentation to Devops class, Hari,Krishna,Ramesh,Praveen " > /var/www/html/index.html
- EXPOSE 80
- CMD apachectl "-DFOREGROUND"
- naveen@ol4:>cat build4/Dockerfile
- FROM centos:latest
- MAINTAINER naveen@linux.com
- ADD testfile /root
- ADD mysql.tar.gz /root
- #ADD CURL http:///oracle.com/softwares/sofware1 /root
- EXPOSE 80
- CMD apachectl "-D FOREGROUND"
- naveen@ol4:>cat build5/Dockerfile
- FROM centos:latest
- MAINTAINER naveen@linux.com
- COPY testfile /root
- COPY mysql.tar.gz /root
- EXPOSE 80
- CMD apachectl "-D FOREGROUND"
- naveen@ol4:>cat build6/Dockerfile
- #Naveen's customized centos7 image
- FROM centos:latest
- MAINTAINER naveen@gmail.com
- ENV version 1.2.0_naveen
- naveen@ol4:>cat build7/Dockerfile
- #EXPOSE ports for a Specific Docker instance
- FROM centos:latest
- MAINTAINER naveen@linux.com
- RUN yum -y update
- RUN yum install -y httpd net-tools
- RUN /bin/mkdir -p /var/www/html
- RUN /bin/echo "html code for presentation to Devops class, Hari,Krishna,Ramesh,Praveen " > /var/www/html/index.html
- EXPOSE 80
- ENTRYPOINT apachectl "-DFOREGROUND"
- naveen@ol4:>
Add Comment
Please, Sign In to add comment