Skip to content

Instantly share code, notes, and snippets.

@eljojo
Created May 4, 2015 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eljojo/883518d6608507c10758 to your computer and use it in GitHub Desktop.
Save eljojo/883518d6608507c10758 to your computer and use it in GitHub Desktop.
dokku_on_debian
root@dokku:~# wget -qO- https://raw.github.com/progrium/dokku/master/bootstrap.sh|DOKKU_BRANCH=master bash
Hit http://security.debian.org jessie/updates InRelease
Hit http://ftp.de.debian.org jessie InRelease
Hit http://security.debian.org jessie/updates/main Sources
Hit http://ftp.de.debian.org jessie-updates InRelease
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://ftp.de.debian.org jessie/main Sources
Hit http://ftp.de.debian.org jessie/main amd64 Packages
Hit http://ftp.de.debian.org jessie/main Translation-en
Hit http://ftp.de.debian.org jessie-updates/main Sources
Get:1 http://ftp.de.debian.org jessie-updates/main amd64 Packages/DiffIndex [229 B]
Get:2 http://ftp.de.debian.org jessie-updates/main Translation-en/DiffIndex [229 B]
Fetched 458 B in 1s (344 B/s)
Reading package lists... Done
Preconfiguring packages ...
Selecting previously unselected package libdbus-glib-1-2:amd64.
(Reading database ... 32753 files and directories currently installed.)
Preparing to unpack .../libdbus-glib-1-2_0.102-1_amd64.deb ...
Unpacking libdbus-glib-1-2:amd64 (0.102-1) ...
Selecting previously unselected package libgirepository-1.0-1:amd64.
Preparing to unpack .../libgirepository-1.0-1_1.42.0-2.2_amd64.deb ...
Unpacking libgirepository-1.0-1:amd64 (1.42.0-2.2) ...
Selecting previously unselected package gir1.2-glib-2.0:amd64.
Preparing to unpack .../gir1.2-glib-2.0_1.42.0-2.2_amd64.deb ...
Unpacking gir1.2-glib-2.0:amd64 (1.42.0-2.2) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...
Unpacking liberror-perl (0.17-1.1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.1.4-2.1_all.deb ...
Unpacking git-man (1:2.1.4-2.1) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.1.4-2.1_amd64.deb ...
Unpacking git (1:2.1.4-2.1) ...
Selecting previously unselected package make.
Preparing to unpack .../make_4.0-8.1_amd64.deb ...
Unpacking make (4.0-8.1) ...
Selecting previously unselected package python3-apt.
Preparing to unpack .../python3-apt_0.9.3.11_amd64.deb ...
Unpacking python3-apt (0.9.3.11) ...
Selecting previously unselected package python3-dbus.
Preparing to unpack .../python3-dbus_1.2.0-2+b3_amd64.deb ...
Unpacking python3-dbus (1.2.0-2+b3) ...
Selecting previously unselected package python3-gi.
Preparing to unpack .../python3-gi_3.14.0-1_amd64.deb ...
Unpacking python3-gi (3.14.0-1) ...
Selecting previously unselected package unattended-upgrades.
Preparing to unpack .../unattended-upgrades_0.83.3_all.deb ...
Unpacking unattended-upgrades (0.83.3) ...
Selecting previously unselected package python3-software-properties.
Preparing to unpack .../python3-software-properties_0.92.25debian1_all.deb ...
Unpacking python3-software-properties (0.92.25debian1) ...
Selecting previously unselected package rsync.
Preparing to unpack .../rsync_3.1.1-3_amd64.deb ...
Unpacking rsync (3.1.1-3) ...
Selecting previously unselected package software-properties-common.
Preparing to unpack .../software-properties-common_0.92.25debian1_all.deb ...
Unpacking software-properties-common (0.92.25debian1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17) ...
Processing triggers for dbus (1.8.16-1) ...
Setting up libdbus-glib-1-2:amd64 (0.102-1) ...
Setting up libgirepository-1.0-1:amd64 (1.42.0-2.2) ...
Setting up gir1.2-glib-2.0:amd64 (1.42.0-2.2) ...
Setting up liberror-perl (0.17-1.1) ...
Setting up git-man (1:2.1.4-2.1) ...
Setting up git (1:2.1.4-2.1) ...
Setting up make (4.0-8.1) ...
Setting up python3-apt (0.9.3.11) ...
Setting up python3-dbus (1.2.0-2+b3) ...
Setting up python3-gi (3.14.0-1) ...
Setting up unattended-upgrades (0.83.3) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up python3-software-properties (0.92.25debian1) ...
Setting up rsync (3.1.1-3) ...
Setting up software-properties-common (0.92.25debian1) ...
Processing triggers for libc-bin (2.19-18) ...
Processing triggers for systemd (215-17) ...
Processing triggers for dbus (1.8.16-1) ...
Cloning into '/root/dokku'...
remote: Counting objects: 5745, done.
remote: Compressing objects: 100% (40/40), done.
remote: Total 5745 (delta 18), reused 0 (delta 0), pack-reused 5705
Receiving objects: 100% (5745/5745), 1.06 MiB | 0 bytes/s, done.
Resolving deltas: 100% (3233/3233), done.
Checking connectivity... done.
Note: checking out 'origin/master'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 02277cc... Merge pull request #1150 from cjblomqvist/patch-1
apt-get update
Hit http://security.debian.org jessie/updates InRelease
Hit http://ftp.de.debian.org jessie InRelease
Hit http://security.debian.org jessie/updates/main Sources
Hit http://ftp.de.debian.org jessie-updates InRelease
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://ftp.de.debian.org jessie/main Sources
Hit http://ftp.de.debian.org jessie/main amd64 Packages
Hit http://ftp.de.debian.org jessie/main Translation-en
Hit http://ftp.de.debian.org jessie-updates/main Sources
Get:1 http://ftp.de.debian.org jessie-updates/main amd64 Packages/DiffIndex [229 B]
Get:2 http://ftp.de.debian.org jessie-updates/main Translation-en/DiffIndex [229 B]
Fetched 458 B in 1s (356 B/s)
Reading package lists... Done
wget -qO /usr/local/bin/sshcommand https://raw.github.com/progrium/sshcommand/master/sshcommand
chmod +x /usr/local/bin/sshcommand
sshcommand create dokku /usr/local/bin/dokku
Adding user `dokku' ...
Adding new group `dokku' (1001) ...
Adding new user `dokku' (1001) with group `dokku' ...
Creating home directory `/home/dokku' ...
Copying files from `/etc/skel' ...
wget -qO /tmp/pluginhook_0.1.0_amd64.deb https://s3.amazonaws.com/progrium-pluginhook/pluginhook_0.1.0_amd64.deb
dpkg -i /tmp/pluginhook_0.1.0_amd64.deb
Selecting previously unselected package pluginhook.
(Reading database ... 33864 files and directories currently installed.)
Preparing to unpack .../tmp/pluginhook_0.1.0_amd64.deb ...
Unpacking pluginhook (0.1.0) ...
Setting up pluginhook (0.1.0) ...
lsmod | grep aufs || modprobe aufs || apt-get install -qq -y linux-image-extra-`uname -r` > /dev/null
apt-get install -qq -y curl
egrep -i "^docker" /etc/group || groupadd docker
usermod -aG docker dokku
curl --silent https://get.docker.com/gpg | apt-key add -
OK
echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
apt-get update
Hit http://security.debian.org jessie/updates InRelease
Hit http://ftp.de.debian.org jessie InRelease
Hit http://security.debian.org jessie/updates/main Sources
Hit http://ftp.de.debian.org jessie-updates InRelease
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://ftp.de.debian.org jessie/main Sources
Hit http://ftp.de.debian.org jessie/main amd64 Packages
Hit http://ftp.de.debian.org jessie/main Translation-en
Hit http://ftp.de.debian.org jessie-updates/main Sources
Get:1 http://ftp.de.debian.org jessie-updates/main amd64 Packages/DiffIndex [229 B]
Get:2 http://ftp.de.debian.org jessie-updates/main Translation-en/DiffIndex [229 B]
Ign http://get.docker.io docker InRelease
Get:3 http://get.docker.io docker Release.gpg [473 B]
Get:4 http://get.docker.io docker Release [1,525 B]
Get:5 http://get.docker.io docker/main amd64 Packages [5,722 B]
Ign http://get.docker.io docker/main Translation-en_US
Ign http://get.docker.io docker/main Translation-en
Fetched 8,178 B in 6s (1,181 B/s)
Reading package lists... Done
apt-get install -qq -y lxc-docker
Selecting previously unselected package libdrm2:amd64.
(Reading database ... 33867 files and directories currently installed.)
Preparing to unpack .../libdrm2_2.4.58-2_amd64.deb ...
Unpacking libdrm2:amd64 (2.4.58-2) ...
Selecting previously unselected package makedev.
Preparing to unpack .../makedev_2.3.1-93_all.deb ...
Unpacking makedev (2.3.1-93) ...
Selecting previously unselected package plymouth.
Preparing to unpack .../plymouth_0.9.0-9_amd64.deb ...
Unpacking plymouth (0.9.0-9) ...
Selecting previously unselected package libnih1.
Preparing to unpack .../libnih1_1.0.3-4.3_amd64.deb ...
Unpacking libnih1 (1.0.3-4.3) ...
Selecting previously unselected package libnih-dbus1.
Preparing to unpack .../libnih-dbus1_1.0.3-4.3_amd64.deb ...
Unpacking libnih-dbus1 (1.0.3-4.3) ...
Selecting previously unselected package mountall.
Preparing to unpack .../mountall_2.54_amd64.deb ...
Unpacking mountall (2.54) ...
Selecting previously unselected package aufs-tools.
Preparing to unpack .../aufs-tools_1%3a3.2+20130722-1.1_amd64.deb ...
Unpacking aufs-tools (1:3.2+20130722-1.1) ...
Selecting previously unselected package cgroupfs-mount.
Preparing to unpack .../cgroupfs-mount_1.1_all.deb ...
Unpacking cgroupfs-mount (1.1) ...
Selecting previously unselected package lxc-docker-1.6.0.
Preparing to unpack .../lxc-docker-1.6.0_1.6.0_amd64.deb ...
Unpacking lxc-docker-1.6.0 (1.6.0) ...
Selecting previously unselected package lxc-docker.
Preparing to unpack .../lxc-docker_1.6.0_amd64.deb ...
Unpacking lxc-docker (1.6.0) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17) ...
Processing triggers for dbus (1.8.16-1) ...
Setting up libdrm2:amd64 (2.4.58-2) ...
Setting up makedev (2.3.1-93) ...
/run/udev or .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation.
/run/udev or .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation.
/run/udev or .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation.
Setting up plymouth (0.9.0-9) ...
update-initramfs: deferring update (trigger activated)
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up libnih1 (1.0.3-4.3) ...
Setting up libnih-dbus1 (1.0.3-4.3) ...
Setting up mountall (2.54) ...
Setting up aufs-tools (1:3.2+20130722-1.1) ...
Setting up cgroupfs-mount (1.1) ...
Setting up lxc-docker-1.6.0 (1.6.0) ...
Setting up lxc-docker (1.6.0) ...
Processing triggers for libc-bin (2.19-18) ...
Processing triggers for systemd (215-17) ...
Processing triggers for initramfs-tools (0.120) ...
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
Processing triggers for dbus (1.8.16-1) ...
sleep 2 # give docker a moment i guess
apt-get install -qq -y help2man
Selecting previously unselected package help2man.
(Reading database ... 34137 files and directories currently installed.)
Preparing to unpack .../help2man_1.46.4_amd64.deb ...
Unpacking help2man (1.46.4) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for install-info (5.2.0.dfsg.1-6) ...
Setting up help2man (1.46.4) ...
apt-get install -qq -y man-db
make -e stack
make[1]: Entering directory '/root/dokku'
Start building buildstep
df01a20bc26a716d9032fd1225664aa7d30355b6d512b6f7418b09f48efaf7c2
make[1]: Leaving directory '/root/dokku'
cp dokku /usr/local/bin/dokku
mkdir -p /var/lib/dokku/plugins
find /var/lib/dokku/plugins -mindepth 2 -maxdepth 2 -name '.core' -printf '%h\0' | xargs -0 rm -Rf
find plugins/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | while read plugin; do \
rm -Rf /var/lib/dokku/plugins/$plugin && \
cp -R plugins/$plugin /var/lib/dokku/plugins && \
touch /var/lib/dokku/plugins/$plugin/.core; \
done
make addman
make[1]: Entering directory '/root/dokku'
mkdir -p /usr/local/share/man/man1
help2man -Nh help -v version -n "configure and get information from your dokku installation" -o /usr/local/share/man/man1/dokku.1 dokku
mandb
Purging old database entries in /usr/share/man...
Processing manual pages under /usr/share/man...
Purging old database entries in /usr/share/man/ru...
Processing manual pages under /usr/share/man/ru...
Purging old database entries in /usr/share/man/fi...
Processing manual pages under /usr/share/man/fi...
Purging old database entries in /usr/share/man/id...
Processing manual pages under /usr/share/man/id...
Purging old database entries in /usr/share/man/fr...
Processing manual pages under /usr/share/man/fr...
Purging old database entries in /usr/share/man/sr...
Processing manual pages under /usr/share/man/sr...
Purging old database entries in /usr/share/man/it...
Processing manual pages under /usr/share/man/it...
Purging old database entries in /usr/share/man/el...
Processing manual pages under /usr/share/man/el...
Purging old database entries in /usr/share/man/pt_BR...
Processing manual pages under /usr/share/man/pt_BR...
Purging old database entries in /usr/share/man/da...
Processing manual pages under /usr/share/man/da...
Purging old database entries in /usr/share/man/nl...
Processing manual pages under /usr/share/man/nl...
Purging old database entries in /usr/share/man/sv...
Processing manual pages under /usr/share/man/sv...
Purging old database entries in /usr/share/man/pl...
Processing manual pages under /usr/share/man/pl...
Purging old database entries in /usr/share/man/nb...
Processing manual pages under /usr/share/man/nb...
Purging old database entries in /usr/share/man/hu...
Processing manual pages under /usr/share/man/hu...
Purging old database entries in /usr/share/man/de...
Processing manual pages under /usr/share/man/de...
Purging old database entries in /usr/share/man/vi...
Processing manual pages under /usr/share/man/vi...
Purging old database entries in /usr/share/man/zh_CN...
Processing manual pages under /usr/share/man/zh_CN...
Purging old database entries in /usr/share/man/uk...
Processing manual pages under /usr/share/man/uk...
Purging old database entries in /usr/share/man/ko...
Processing manual pages under /usr/share/man/ko...
Purging old database entries in /usr/share/man/gl...
Processing manual pages under /usr/share/man/gl...
Purging old database entries in /usr/share/man/eo...
Processing manual pages under /usr/share/man/eo...
Purging old database entries in /usr/share/man/es...
Processing manual pages under /usr/share/man/es...
Purging old database entries in /usr/share/man/cs...
Processing manual pages under /usr/share/man/cs...
Purging old database entries in /usr/share/man/zh_TW...
Processing manual pages under /usr/share/man/zh_TW...
Purging old database entries in /usr/share/man/tr...
Processing manual pages under /usr/share/man/tr...
Purging old database entries in /usr/share/man/hr...
Processing manual pages under /usr/share/man/hr...
Purging old database entries in /usr/share/man/pt...
Processing manual pages under /usr/share/man/pt...
Purging old database entries in /usr/share/man/sl...
Processing manual pages under /usr/share/man/sl...
Purging old database entries in /usr/share/man/ja...
Processing manual pages under /usr/share/man/ja...
Processing manual pages under /usr/local/man...
Updating index cache for path `/usr/local/man/man1'. Wait...done.
Checking for stray cats under /usr/local/man...
Checking for stray cats under /var/cache/man/oldlocal...
1 man subdirectory contained newer manual pages.
1 manual page was added.
0 stray cats were added.
11 old database entries were purged.
make[1]: Leaving directory '/root/dokku'
dokku plugins-install-dependencies
Selecting previously unselected package python-software-properties.
(Reading database ... 34205 files and directories currently installed.)
Preparing to unpack .../python-software-properties_0.92.25debian1_all.deb ...
Unpacking python-software-properties (0.92.25debian1) ...
Setting up python-software-properties (0.92.25debian1) ...
gpg: keyring `/tmp/tmp0u87ihrz/secring.gpg' created
gpg: keyring `/tmp/tmp0u87ihrz/pubring.gpg' created
gpg: requesting key C300EE8C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp0u87ihrz/trustdb.gpg: trustdb created
gpg: key C300EE8C: public key "Launchpad Stable" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
Hit http://security.debian.org jessie/updates InRelease
Hit http://ftp.de.debian.org jessie InRelease
Hit http://security.debian.org jessie/updates/main Sources
Hit http://ftp.de.debian.org jessie-updates InRelease
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://ftp.de.debian.org jessie/main Sources
Hit http://ftp.de.debian.org jessie/main amd64 Packages
Hit http://ftp.de.debian.org jessie/main Translation-en
Hit http://ftp.de.debian.org jessie-updates/main Sources
Get:1 http://ftp.de.debian.org jessie-updates/main amd64 Packages/DiffIndex [229 B]
Get:2 http://ftp.de.debian.org jessie-updates/main Translation-en/DiffIndex [229 B]
Ign http://ppa.launchpad.net jessie InRelease
Ign http://ppa.launchpad.net jessie Release.gpg
Ign http://ppa.launchpad.net jessie Release
Ign http://get.docker.io docker InRelease
Err http://ppa.launchpad.net jessie/main amd64 Packages
404 Not Found
Ign http://ppa.launchpad.net jessie/main Translation-en_US
Ign http://ppa.launchpad.net jessie/main Translation-en
Hit http://get.docker.io docker Release.gpg
Hit http://get.docker.io docker Release
Hit http://get.docker.io docker/main amd64 Packages
Ign http://get.docker.io docker/main Translation-en_US
Ign http://get.docker.io docker/main Translation-en
Fetched 458 B in 6s (67 B/s)
W: Failed to fetch http://ppa.launchpad.net/nginx/stable/ubuntu/dists/jessie/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Makefile:59: recipe for target 'plugin-dependencies' failed
make: *** [plugin-dependencies] Error 100
root@dokku:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment