summaryrefslogtreecommitdiffstats
path: root/Services/ssh
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2014-11-20 03:17:46 +0100
committerstartxfr <clarue@startx.fr>2014-11-20 03:17:46 +0100
commita699d0d06feeb1859efea16dd6b3df17901a1bc5 (patch)
tree3a2646acb64a4a9d2440549b2a895648b9289466 /Services/ssh
parent8829f895c890685cc25fe3022299b4275808dc06 (diff)
downloadphpmyadmin-a699d0d06feeb1859efea16dd6b3df17901a1bc5.tar.gz
phpmyadmin-a699d0d06feeb1859efea16dd6b3df17901a1bc5.tar.bz2
phpmyadmin-a699d0d06feeb1859efea16dd6b3df17901a1bc5.tar.xz
phpmyadmin-a699d0d06feeb1859efea16dd6b3df17901a1bc5.zip
modif des services et ajout de memcache, apache et nodejs
Diffstat (limited to 'Services/ssh')
-rw-r--r--Services/ssh/.ssh/authorized_keys1
-rw-r--r--Services/ssh/Dockerfile16
-rw-r--r--Services/ssh/README.md28
3 files changed, 45 insertions, 0 deletions
diff --git a/Services/ssh/.ssh/authorized_keys b/Services/ssh/.ssh/authorized_keys
new file mode 100644
index 0000000..0dbe4dc
--- /dev/null
+++ b/Services/ssh/.ssh/authorized_keys
@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7pCBSddCIi/lOH+z6KdkyS/JLGFCQTH8u+JyHoqUj8X9nVty6xBWNTdYDq5/0vUFLUtOxMlX9noV8JddA/XFAWpGmQU8KDq3dcqjWJXZ4NUiXwDrysP7JryVXBDidZC16ObAGw58a2/5BiXs+WGoSkkNUFZN3rbIaurrth1ODD67YZiL+Jzts2KyJednn8bM+rmmMvvhKFzV4QnmgbYF0OvdAucaMTWrdmkuY/VVse1l2LxxEx2IFz/q6dxH8uuQUGXjESXlHw5I0Fi0lhMDQ9M8xqI9AKeu87R+UPKxyOZjwGpz5Fui5yKuJOHsjY57Mze5wTOnu+YdVxJOwpJhN cl@startx.fr \ No newline at end of file
diff --git a/Services/ssh/Dockerfile b/Services/ssh/Dockerfile
new file mode 100644
index 0000000..ce02260
--- /dev/null
+++ b/Services/ssh/Dockerfile
@@ -0,0 +1,16 @@
+FROM startx/fedora
+MAINTAINER Chistophe LARUE <dev@startx.fr>
+
+# Install packages and set up sshd
+RUN yum -y update \
+ && yum -y install openssh-server \
+ && yum clean all
+RUN mkdir /var/run/sshd \
+ && ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
+
+# Add ssh keys
+COPY .ssh/authorized_keys /root/.ssh/authorized_keys
+
+EXPOSE 22
+CMD ["/usr/sbin/sshd", "-D"]
+ONBUILD CMD ["/usr/sbin/sshd", "-D"]
diff --git a/Services/ssh/README.md b/Services/ssh/README.md
new file mode 100644
index 0000000..3417d98
--- /dev/null
+++ b/Services/ssh/README.md
@@ -0,0 +1,28 @@
+# STARTX Services docker-images : SSH Server
+This container run sshd on fedora server. You can overwrite /root/.ssh/autorized_keys with your own list of autorized keys.
+
+## Running from docker registry
+
+ # docker run -d -p 22022:22 --name="ssh" startx/sv-ssh
+
+## Build and run from local Dockerfile
+### Building docker image
+Copy the sources to your docker host
+ # mkdir startx-docker-images;
+ # cd startx-docker-images;
+ # git clone https://github.com/startxfr/docker-images.git .
+
+and build the container
+ # docker build -t sv-ssh Services/ssh/
+
+### Running local image
+ # docker run -d -p 22022:22 --name="ssh" sv-ssh
+
+## Accessing server
+ # ssh -p 22022 root@<containerId>
+
+## 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/)