summaryrefslogtreecommitdiffstats
path: root/OS
diff options
context:
space:
mode:
Diffstat (limited to 'OS')
-rw-r--r--OS/Fedora/Dockerfile15
-rw-r--r--OS/Fedora/README.md22
2 files changed, 14 insertions, 23 deletions
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 <dev@startx.fr>
-# 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 <username>/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 <username>/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/)