From 21aa6b097bae1292196503bc3c3e3fd658dbd2d0 Mon Sep 17 00:00:00 2001 From: naskya Date: Thu, 4 Jan 2024 12:23:05 +0900 Subject: [PATCH] docker: migrate image registry to registry.code.naskya.net --- docker-compose.example.yml | 2 +- neko/messages/20240104_docker_registry_migration | 15 +++++++++++++++ neko/update/docker.sh | 4 ++-- 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 neko/messages/20240104_docker_registry_migration diff --git a/docker-compose.example.yml b/docker-compose.example.yml index 7f27d9ba..0281046f 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -2,7 +2,7 @@ version: "3" services: web: - image: docker.io/naskya/firefish + image: registry.code.naskya.net/naskya/firefish container_name: firefish_web restart: unless-stopped depends_on: diff --git a/neko/messages/20240104_docker_registry_migration b/neko/messages/20240104_docker_registry_migration new file mode 100644 index 00000000..2e9acbbf --- /dev/null +++ b/neko/messages/20240104_docker_registry_migration @@ -0,0 +1,15 @@ + --------------------------------------------------- +| For Docker users: | +| The Docker image will be migrated from docker.io | +| to registry.code.naskya.net, so please edit your | +| docker-compose.yml to use the following tag: | +| | +| registry.code.naskya.net/naskya/firefish:latest | +| | +| The image will be pushed to both registries until | +| 2024-01-31, after which docker.io/naskya/firefish | +| will be removed. | +| | +| For the detailed explanation, see: | +| https://post.naskya.net/notes/9o27gac4dj8p483c | + --------------------------------------------------- diff --git a/neko/update/docker.sh b/neko/update/docker.sh index cfa5c3be..2abda049 100755 --- a/neko/update/docker.sh +++ b/neko/update/docker.sh @@ -5,7 +5,7 @@ set -eu pull() { say 'Pulling the image...' - run 'docker pull docker.io/naskya/firefish' + run 'docker pull registry.code.naskya.net/naskya/firefish' } if ! pull; then @@ -14,7 +14,7 @@ if ! pull; then say 'It takes some time! Why not brew a cup of cofe?' run "$(cat - << EOC -docker build --tag docker.io/naskya/firefish --build-arg VERSION="$(version)" . +docker build --tag registry.code.naskya.net/naskya/firefish --build-arg VERSION="$(version)" . EOC )" fi