From a699d0d06feeb1859efea16dd6b3df17901a1bc5 Mon Sep 17 00:00:00 2001 From: startxfr Date: Thu, 20 Nov 2014 03:17:46 +0100 Subject: modif des services et ajout de memcache, apache et nodejs --- OS/Fedora/Dockerfile | 15 ++++----------- OS/Fedora/README.md | 22 ++++++++++------------ 2 files changed, 14 insertions(+), 23 deletions(-) (limited to 'OS/Fedora') diff --git a/OS/Fedora/Dockerfile b/OS/Fedora/Dockerfile index 00dcbc6..f574d5b 100644 --- a/OS/Fedora/Dockerfile +++ b/OS/Fedora/Dockerfile @@ -1,14 +1,7 @@ FROM fedora:latest MAINTAINER Chistophe LARUE -# Install packages and set up sshd -RUN yum -y update && yum clean all -RUN yum -y install openssh-server && yum clean all -RUN mkdir /var/run/sshd -RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N '' - -# Add ssh keys -ADD .ssh/authorized_keys /root/.ssh/authorized_keys - -EXPOSE 22 -ENTRYPOINT ["/usr/sbin/sshd", "-D"] \ No newline at end of file +# Install minimal packages +RUN yum -y install deltarpm pwgen \ + && yum -y update \ + && yum clean all diff --git a/OS/Fedora/README.md b/OS/Fedora/README.md index 03b2797..ead1eae 100644 --- a/OS/Fedora/README.md +++ b/OS/Fedora/README.md @@ -1,33 +1,31 @@ # STARTX OS docker-images : Fedora +Fedora + ## Running from docker registry - # docker run -d -p 22022:22 --name="test-fedora" -e VIRTUAL_HOST=fedora.project.startx.fr startx/fedora + # docker run -it startx/fedora bash -## Running from local Dockerfile +## Build and run from local Dockerfile ### Building docker image Copy the sources to your docker host - # mkdir startx-docker-images; - # git clone https://github.com/startxfr/docker-images.git startx-docker-images/ - # cd startx-docker-images/OS/Fedora/ + # mkdir startx-docker-images; + # cd startx-docker-images; + # git clone https://github.com/startxfr/docker-images.git . and build the container - # docker build --rm -t /fedora . + # docker build --rm -t yourname/fedora OS/Fedora/ ### Running local image - # docker run -d -p 22022:22 --name="test-fedora" -e VIRTUAL_HOST=fedora.project.startx.fr /ssh - -## Accessing server - - # ssh root@localhost + # docker run -it yourname/fedora bash ## Related Resources * [Sources files](https://github.com/startxfr/docker-images/tree/master/OS/Fedora) * [Github STARTX profile](https://github.com/startxfr/docker-images) * [Docker registry for this container](https://registry.hub.docker.com/u/startx/fedora/) -* [Docker registry for Fedora](https://registry.hub.docker.com/u/fedora/ssh/) +* [Docker registry for Fedora](https://registry.hub.docker.com/u/fedora/) -- cgit v1.2.3