Ultima attività 6 months ago

Jan Wagner ha revisionato questo gist 6 months ago. Vai alla revisione

1 file changed, 1 insertion, 1 deletion

autoupgrade_docker-ce_container.io.sh

@@ -1,7 +1,7 @@
1 1 #!/bin/bash
2 2 cat <<EOF > /etc/apt/preferences.d/docker_pinning
3 3 Package: docker-ce*
4 - Pin: version 5:27.5.*
4 + Pin: version 5:28.2.*
5 5 Pin-Priority: 1000
6 6
7 7 Package: containerd.io

Jan Wagner ha revisionato questo gist 8 months ago. Vai alla revisione

1 file changed, 1 insertion, 1 deletion

autoupgrade_docker-ce_container.io.sh

@@ -5,7 +5,7 @@ Pin: version 5:27.5.*
5 5 Pin-Priority: 1000
6 6
7 7 Package: containerd.io
8 - Pin: version 1.6*
8 + Pin: version 1.7*
9 9 Pin-Priority: 1000
10 10
11 11 Package: containerd.io

Jan Wagner ha revisionato questo gist 9 months ago. Vai alla revisione

1 file changed, 1 insertion, 1 deletion

docker_deploy.sh

@@ -49,7 +49,7 @@ cat > /etc/cron.weekly/docker-cleanup <<EOF
49 49 # DELETE DANGLING AND UNTAGGED IMAGES
50 50 # docker images -q -f dangling=true && docker image rm $(docker images -q -f dangling=true)
51 51 # DELETE ORPHANED AND DANGLING VOLUMES
52 - docker image prune -a -f
52 + docker image prune -f
53 53 DOCKER_VOLUMES=\$(docker volume ls -qf dangling=true)
54 54 if [ "\${DOCKER_VOLUMES}" != "" ]; then
55 55 docker volume rm \${DOCKER_VOLUMES}

Jan Wagner ha revisionato questo gist 9 months ago. Vai alla revisione

1 file changed, 1 insertion, 1 deletion

autoupgrade_docker-ce_container.io.sh

@@ -1,7 +1,7 @@
1 1 #!/bin/bash
2 2 cat <<EOF > /etc/apt/preferences.d/docker_pinning
3 3 Package: docker-ce*
4 - Pin: version 5:26.*
4 + Pin: version 5:27.5.*
5 5 Pin-Priority: 1000
6 6
7 7 Package: containerd.io

Jan Wagner ha revisionato questo gist 1 year ago. Vai alla revisione

1 file changed, 1 insertion, 1 deletion

autoupgrade_docker-ce_container.io.sh

@@ -1,7 +1,7 @@
1 1 #!/bin/bash
2 2 cat <<EOF > /etc/apt/preferences.d/docker_pinning
3 3 Package: docker-ce*
4 - Pin: version 5:26.1*
4 + Pin: version 5:26.*
5 5 Pin-Priority: 1000
6 6
7 7 Package: containerd.io

Jan Wagner ha revisionato questo gist 1 year ago. Vai alla revisione

1 file changed, 1 insertion, 1 deletion

autoupgrade_docker-ce_container.io.sh

@@ -1,7 +1,7 @@
1 1 #!/bin/bash
2 2 cat <<EOF > /etc/apt/preferences.d/docker_pinning
3 3 Package: docker-ce*
4 - Pin: version 5:25.0*
4 + Pin: version 5:26.1*
5 5 Pin-Priority: 1000
6 6
7 7 Package: containerd.io

Jan Wagner ha revisionato questo gist 2 years ago. Vai alla revisione

1 file changed, 1 insertion

docker_deploy.sh

@@ -49,6 +49,7 @@ cat > /etc/cron.weekly/docker-cleanup <<EOF
49 49 # DELETE DANGLING AND UNTAGGED IMAGES
50 50 # docker images -q -f dangling=true && docker image rm $(docker images -q -f dangling=true)
51 51 # DELETE ORPHANED AND DANGLING VOLUMES
52 + docker image prune -a -f
52 53 DOCKER_VOLUMES=\$(docker volume ls -qf dangling=true)
53 54 if [ "\${DOCKER_VOLUMES}" != "" ]; then
54 55 docker volume rm \${DOCKER_VOLUMES}

Jan Wagner ha revisionato questo gist 2 years ago. Vai alla revisione

1 file changed, 1 insertion, 1 deletion

autoupgrade_docker-ce_container.io.sh

@@ -1,7 +1,7 @@
1 1 #!/bin/bash
2 2 cat <<EOF > /etc/apt/preferences.d/docker_pinning
3 3 Package: docker-ce*
4 - Pin: version 5:24.0*
4 + Pin: version 5:25.0*
5 5 Pin-Priority: 1000
6 6
7 7 Package: containerd.io

Jan Wagner ha revisionato questo gist 2 years ago. Vai alla revisione

1 file changed, 2 insertions, 2 deletions

deploy_addons.sh

@@ -3,7 +3,7 @@
3 3 apt-get install docker-compose-plugin
4 4 # Install docker compsoe switch
5 5 SWITCH_VER=$(curl -s -o /dev/null -I -w "%{redirect_url}\n" https://github.com/docker/compose-switch/releases/latest | grep -oP "[0-9]+(\.[0-9]+)+$") && \
6 - curl -sSL https://github.com/docker/compose-switch/releases/download/v$SWITCH_VER/docker-compose-linux-amd64 -o /usr/local/bin/compose-switch && chmod +x /usr/local/bin/compose-switch && \
6 + curl -sSL https://github.com/docker/compose-switch/releases/download/v$SWITCH_VER/docker-compose-linux-$(dpkg --print-architecture) -o /usr/local/bin/compose-switch && chmod +x /usr/local/bin/compose-switch && \
7 7 # Move old docker-compose v1 binary away
8 8 if [ -f /usr/local/bin/docker-compose ]; then
9 9 if [ $(/usr/local/bin/docker-compose version | head -1 | grep -oP "[0-9]+(\.[0-9]+)+" | grep -c "^1") == 1 ]; then
@@ -25,7 +25,7 @@ TMPDIR=$(mktemp -d /tmp/d.XXXXXX) && \
25 25 trap 'rm -rf "${TMPDIR}"' EXIT && \
26 26 # Install lazydocker
27 27 LAZYDOCKER_VERSION=$(curl -L -s -H 'Accept: application/json' https://github.com/jesseduffield/lazydocker/releases/latest | sed -e 's/.*"tag_name":"\([^"]*\)".*/\1/') && \
28 - GITHUB_FILE="lazydocker_${LAZYDOCKER_VERSION//v/}_$(uname -s)_$(uname -m).tar.gz" && \
28 + GITHUB_FILE="lazydocker_${LAZYDOCKER_VERSION//v/}_$(uname -s)_$(dpkg --print-architecture).tar.gz" && \
29 29 GITHUB_URL="https://github.com/jesseduffield/lazydocker/releases/download/${LAZYDOCKER_VERSION}/${GITHUB_FILE}" && \
30 30 curl -so ${TMPDIR}/lazydocker.tar.gz -L ${GITHUB_URL} && \
31 31 tar xzf ${TMPDIR}/lazydocker.tar.gz -C ${TMPDIR} && \

Jan Wagner ha revisionato questo gist 2 years ago. Vai alla revisione

2 files changed, 3 insertions, 3 deletions

deploy_addons.sh

@@ -16,7 +16,7 @@ if [ ! -L /usr/local/bin/docker-compose ]; then
16 16 [ -f /usr/local/bin/docker-compose-v1 ] && update-alternatives --install /usr/local/bin/docker-compose docker-compose /usr/local/bin/docker-compose-v1
17 17 fi;
18 18 # Install ctop
19 - echo "deb http://packages.azlux.fr/debian/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/azlux.list && \
19 + echo "deb http://packages.azlux.fr/debian/ $(. /etc/os-release && echo "$VERSION_CODENAME") main" | tee /etc/apt/sources.list.d/azlux.list && \
20 20 if [ -d /etc/apt/trusted.gpg.d/ ]; then curl -fsSL https://azlux.fr/repo.gpg.key | sudo gpg --batch --yes --dearmor -o /etc/apt/trusted.gpg.d/azlux.gpg; else curl -fsSL https://azlux.fr/repo.gpg.key | sudo apt-key add -; fi && \
21 21 apt update && \
22 22 apt install docker-ctop && \

docker_deploy.sh

@@ -1,8 +1,8 @@
1 1 #!/bin/bash
2 2 # detect release and add package sources
3 3 #[ "$(lsb_release -rs)" = "testing" ] || [ "$(cat /etc/debian_version | awk -F. {'print $1'})" -ne "8" ] && echo exit 1
4 - echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/debian $(lsb_release -cs) stable" > \
5 - /etc/apt/sources.list.d/$(lsb_release -cs)-docker.list && \
4 + echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(. /etc/os-release && echo "$ID") $(. /etc/os-release && echo "$VERSION_CODENAME") stable" > \
5 + /etc/apt/sources.list.d/$(. /etc/os-release && echo "$VERSION_CODENAME")-docker.list && \
6 6 # Install needed dependencies
7 7 apt-get install -y apt-transport-https ca-certificates bridge-utils curl sudo && \
8 8 if [ -d /etc/apt/trusted.gpg.d/ ]; then curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/docker-archive-keyring.gpg; else apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0EBFCD88; fi && \
Più nuovi Più vecchi