Initial import.

This commit is contained in:
Glenn Y. Rolland 2014-08-12 23:04:26 +02:00
commit f46d75fcb0
4 changed files with 51 additions and 0 deletions

18
Dockerfile Normal file
View file

@ -0,0 +1,18 @@
FROM debian:testing
MAINTAINER Glenn Y. Rolland <glenux@glenux.net>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -q -y supervisor
RUN apt-get install -q -y reprepro
ENV DEBIAN_FRONTEND newt
VOLUME /data
ADD scripts/start.sh /start.sh
EXPOSE 80
EXPOSE 22
CMD ["/bin/bash", "/start.sh"]

4
Makefile Normal file
View file

@ -0,0 +1,4 @@
build:
docker build -t glenux/debian-repo .

14
README.md Normal file
View file

@ -0,0 +1,14 @@
docker-debian-repository
========================
References
----------
### Tutorials
* https://www.isalo.org/wiki.debian-fr/Reprepro
* http://www.howtoforge.com/setting-up-an-apt-repository-with-reprepro-and-nginx-on-debian-wheezy
* http://doc.ubuntu-fr.org/tutoriel/comment_creer_depot
* http://mirrorer.alioth.debian.org/
* https://wiki.debian.org/SettingUpSignedAptRepositoryWithReprepro
* https://www.isalo.org/wiki.debian-fr/Reprepro

15
scripts/start.sh Normal file
View file

@ -0,0 +1,15 @@
#!/bin/sh
# Many thanks to John Fink <john.fink@gmail.com> for the
# inspiration and to his great work on docker-wordpress'
# let's create a user to ssh into
SSH_USERPASS=`pwgen -c -n -1 8`
mkdir /home/user
useradd -G sudo -d /home/user user
chown user /home/user
echo user:$SSH_USERPASS | chpasswd
echo ssh user password: $SSH_USERPASS
supervisord -n