Created
September 23, 2014 16:22
-
-
Save shadeslayer/f6c02d3e69fd298ba4fd to your computer and use it in GitHub Desktop.
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
| FROM debian:sid | |
| MAINTAINER Rohan Garg <rohan@kde.org> | |
| RUN apt update && apt -y dist-upgrade && apt -y install curl | |
| RUN echo "deb http://debile.anized.org/archive/ rc-buggy main" | tee /etc/apt/sources.list.d/debile.list | |
| RUN echo "deb http://cloudfront.debian.net/debian experimental main" | tee /etc/apt/sources.list.d/experimental.list | |
| RUN curl http://debile.anized.org/key.asc | apt-key add - | |
| RUN apt update && apt -y install debile-master | |
| COPY ./setup.sh /tmp/setup.sh | |
| RUN /tmp/setup.sh |
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
| #!/bin/bash -x | |
| mkdir -p /srv/debile/incoming/UploadQueue /srv/debile/files/default /srv/debile/repo/default | |
| chown -R Debian-debile:Debian-debile /srv/debile/ | |
| chmod 0773 /srv/debile/incoming/UploadQueue | |
| umask 0077 | |
| cat << EOF > /etc/cron.daily/debile | |
| SHELL=/bin/sh | |
| PATH=/usr/local/bin:/usr/bin:/bin | |
| */5 * * * * Debian-debile debile-incoming /srv/debile/incoming/UploadQueue | |
| EOF | |
| openssl req -utf8 -nodes -newkey rsa:4096 -sha256 -x509 -days 7300 -subj "/C=NT/O=Debian/CN=debile.debian.net" -keyout /srv/debile/master.key -out /srv/debile/master.crt | |
| chmod go-rwx /srv/debile/*.key && sudo chown Debian-debile:Debian-debile /srv/debile/master.* | |
| openssl x509 -noout -inform pem -sha1 -fingerprint -subject -dates -in /srv/debile/master.crt | |
| gpg -q --gen-key --batch <<EOF | |
| Key-Type: RSA | |
| Key-Length: 2048 | |
| Name-Real: Debile Master | |
| Name-Comment: Debile Master Key | |
| Name-Email: debile@localhost | |
| EOF | |
| openssl req -utf8 -nodes -newkey rsa:3072 -sha256 -x509 -days 7300 -subj "/C=NT/O=Debian/CN=Sylvestre Ledru/emailAddress=rohan@kde.org" -keyout /srv/debile/shadeslayer.key -out /srv/debile/shadeslayer.crt | |
| chmod go-rwx /srv/debile/*.key | |
| cat << EOF > /etc/debile/user.yaml | |
| --- | |
| xmlrpc: | |
| host: localhost | |
| port: 22017 | |
| keyfile: /srv/debile/shadeslayer.key | |
| certfile: /srv/debile/shadeslayer.crt | |
| # ca_certs: /etc/ssl/certs/ca-certificates.crt | |
| EOF | |
| sudo apt -y install sudo | |
| sudo -u Debian-debile -i /usr/bin/debile-master-init --config /etc/debile/master.yaml /etc/debile/debile.yaml | |
| sudo service debile-master start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment