-
-
Save coldnew/f8fde1fe25880a49d3a9eb28a5fae754 to your computer and use it in GitHub Desktop.
Revisions
-
DaveMDS revised this gist
May 22, 2022 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -35,6 +35,7 @@ DAEMON_ARGS="--config-file=/usr/local/etc/docker/docker.json --pidfile=$PIDFILE" case "$1" in start) echo "Starting docker daemon" # ulimit -n 4096 # needed for influxdb (uncomment if your limit is lower) /usr/local/bin/dockerd $DAEMON_ARGS & ;; stop) -
DaveMDS revised this gist
May 21, 2022 . 1 changed file with 8 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,8 @@ set -e ARCH=aarch64 DOCKER_VERSION=20.10.9 COMPOSE_VERSION=2.5.1 DOCKER_DIR=/volume1/@docker echo "Downloading docker $DOCKER_VERSION-$ARCH" @@ -50,11 +51,13 @@ EOT chmod 755 /usr/local/etc/rc.d/docker.sh echo "Creating docker group" egrep -q docker /etc/group || synogroup --add docker root echo "Installing docker compose $COMPOSE_VERSION" curl -SL "https://github.com/docker/compose/releases/download/v$COMPOSE_VERSION/docker-compose-linux-$ARCH" \ --create-dirs -o /usr/local/lib/docker/cli-plugins/docker-compose chmod +x /usr/local/lib/docker/cli-plugins/docker-compose chgrp -R docker /usr/local/lib/docker echo "Starting docker" /usr/local/etc/rc.d/docker.sh start -
ta264 revised this gist
Dec 15, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set -e ARCH=aarch64 DOCKER_VERSION=20.10.0 DOCKER_DIR=/volume1/@docker echo "Downloading docker $DOCKER_VERSION-$ARCH" curl "https://download.docker.com/linux/static/stable/$ARCH/docker-$DOCKER_VERSION.tgz" | tar -xz -C /usr/local/bin --strip-components=1 -
ta264 revised this gist
Dec 11, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -59,4 +59,4 @@ chmod +x /usr/local/bin/docker-compose echo "Starting docker" /usr/local/etc/rc.d/docker.sh start echo "Done. Please add your user to the docker group in the Synology GUI and reboot your NAS." -
ta264 revised this gist
Dec 11, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -59,4 +59,4 @@ chmod +x /usr/local/bin/docker-compose echo "Starting docker" /usr/local/etc/rc.d/docker.sh start echo "Done. Please add your user to the docker group in the Synology GUI and reboot your NAS. -
ta264 revised this gist
Dec 11, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -59,4 +59,4 @@ chmod +x /usr/local/bin/docker-compose echo "Starting docker" /usr/local/etc/rc.d/docker.sh start echo "Done. Please add your user to the docker group and reboot your NAS. -
ta264 renamed this gist
Dec 11, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
ta264 created this gist
Dec 11, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,62 @@ #!/bin/bash set -e ARCH=aarch64 DOCKER_VERSION=20.10.0 DOCKER_DIR=/volume1/docker/var echo "Downloading docker $DOCKER_VERSION-$ARCH" curl "https://download.docker.com/linux/static/stable/$ARCH/docker-$DOCKER_VERSION.tgz" | tar -xz -C /usr/local/bin --strip-components=1 echo "Creating docker working directory $DOCKER_DIR" mkdir -p "$DOCKER_DIR" echo "Creating docker.json config file" mkdir -p /usr/local/etc/docker cat <<EOT > /usr/local/etc/docker/docker.json { "storage-driver": "vfs", "iptables": false, "bridge": "none", "data-root": "$DOCKER_DIR" } EOT echo "Creating docker startup script" cat <<'EOT' > /usr/local/etc/rc.d/docker.sh #!/bin/sh # Start docker daemon NAME=dockerd PIDFILE=/var/run/$NAME.pid DAEMON_ARGS="--config-file=/usr/local/etc/docker/docker.json --pidfile=$PIDFILE" case "$1" in start) echo "Starting docker daemon" /usr/local/bin/dockerd $DAEMON_ARGS & ;; stop) echo "Stopping docker daemon" kill $(cat $PIDFILE) ;; *) echo "Usage: "$1" {start|stop}" exit 1 esac exit 0 EOT chmod 755 /usr/local/etc/rc.d/docker.sh echo "Creating docker group" synogroup --add docker root echo "Installing docker compose" curl -L --fail https://gist.github.com/ta264/af20c367aafa63795c3104d4b0c8b148/raw/4f6d257c026596cfce1c9052d9ac426a50e9f205/run.sh -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose echo "Starting docker" /usr/local/etc/rc.d/docker.sh start echo "Done. Please reboot your NAS.