Kuldeeparya.files.wordpress.com



FROM centos:centos7MAINTAINER KDENV HOSTNAME dockeroracleRUN yum -y update && yum -y install wgetRUN wget -O /etc/yum.repos.d/public-yum-ol7.repoRUN wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracleRUN yum -y install oracle-rdbms-server-11gR2-preinstallRUN yum -y update && yum install -y initscripts openssh openssh-server openssh-clients sudo passwd sed screen tmux byobu which vim-enhancedRUN sshd-keygenRUN sed -i "s/#UsePrivilegeSeparation.*/UsePrivilegeSeparation no/g" /etc/ssh/sshd_config && sed -i "s/UsePAM.*/UsePAM no/g" /etc/ssh/sshd_config# setup default userRUN useradd admin -G wheel -s /bin/bash -mRUN echo 'admin:welcome' | chpasswdRUN echo '%wheel ALL=(ALL) ALL' >> /etc/sudoers# expose ports for sshEXPOSE 22CMD ["/usr/sbin/sshd", "-D"] ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download