Created
June 16, 2014 15:17
-
-
Save kongou-ae/94b668e7cb5b3b9ab61e to your computer and use it in GitHub Desktop.
Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# study | |
# VERSION 0.1 | |
# MAINTAINER kongou_ae | |
# use RHEL Atomic | |
FROM fedora | |
# import RPM key | |
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-20-x86_64 | |
#Install Packages | |
#RUN yum update -y systemd.x86_64 | |
#RUN yum update -y iputils.x86_64 | |
#RUN yum update -y | |
RUN yum install -y passwd openssh openssh-server openssh-clients sudo gcc | |
RUN yum install -y python-devel | |
RUN yum install -y make | |
# SSH setting | |
RUN mkdir /var/run/sshd | |
RUN echo 'root:password' |chpasswd | |
RUN /usr/bin/ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -C '' -N '' | |
RUN /usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -C '' -N '' | |
# sphinx setting | |
RUN curl -kL https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python | |
RUN pip install sphinx | |
RUN pip install graphviz | |
RUN pip install rst2pdf | |
EXPOSE 22 | |
CMD ["/usr/sbin/sshd", "-D"] | |
#CMD /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment