From eab286b22f9565ffb4b2ebf7c41da721fcf942d7 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 13 Jun 2022 14:37:16 +0300 Subject: [PATCH] Use docker.io prefix for images on Docker hub Docker assumes docker.io by default, but there are other container runtimes (for example Podman) where this should be explicit. It is better to use fully-qualified image names to support other runtime environments in the future. --- Dockerfile | 2 +- docker/cli.yml | 2 +- docker/db.entities.yml | 2 +- docker/docker-compose-ci.yml | 6 +++--- docker/docker-compose-rest.yml | 6 +++--- docker/docker-compose.yml | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8eb3582ba31..8944e96b758 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # This image will be published as dspace/dspace-angular # See https://github.com/DSpace/dspace-angular/tree/main/docker for usage details -FROM node:18-alpine +FROM docker.io/node:18-alpine WORKDIR /app ADD . /app/ EXPOSE 4000 diff --git a/docker/cli.yml b/docker/cli.yml index 54b83d45036..6b648d95376 100644 --- a/docker/cli.yml +++ b/docker/cli.yml @@ -16,7 +16,7 @@ version: "3.7" services: dspace-cli: - image: "${DOCKER_OWNER:-dspace}/dspace-cli:${DSPACE_VER:-dspace-7_x}" + image: "docker.io/${DOCKER_OWNER:-dspace}/dspace-cli:${DSPACE_VER:-dspace-7_x}" container_name: dspace-cli environment: # Below syntax may look odd, but it is how to override dspace.cfg settings via env variables. diff --git a/docker/db.entities.yml b/docker/db.entities.yml index 6473bf2e385..9a13fc4347a 100644 --- a/docker/db.entities.yml +++ b/docker/db.entities.yml @@ -16,7 +16,7 @@ version: "3.7" services: dspacedb: - image: dspace/dspace-postgres-pgcrypto:loadsql + image: docker.io/dspace/dspace-postgres-pgcrypto:loadsql environment: # This LOADSQL should be kept in sync with the URL in DSpace/DSpace # This SQL is available from https://github.com/DSpace-Labs/AIP-Files/releases/tag/demo-entities-data diff --git a/docker/docker-compose-ci.yml b/docker/docker-compose-ci.yml index ef84c14f43f..625f3c2b2b2 100644 --- a/docker/docker-compose-ci.yml +++ b/docker/docker-compose-ci.yml @@ -32,7 +32,7 @@ services: solr__P__server: http://dspacesolr:8983/solr depends_on: - dspacedb - image: dspace/dspace:dspace-7_x-test + image: docker.io/dspace/dspace:dspace-7_x-test networks: dspacenet: ports: @@ -65,7 +65,7 @@ services: # This SQL is available from https://github.com/DSpace-Labs/AIP-Files/releases/tag/demo-entities-data LOADSQL: https://github.com/DSpace-Labs/AIP-Files/releases/download/demo-entities-data/dspace7-entities-data.sql PGDATA: /pgdata - image: dspace/dspace-postgres-pgcrypto:loadsql + image: docker.io/dspace/dspace-postgres-pgcrypto:loadsql networks: dspacenet: stdin_open: true @@ -76,7 +76,7 @@ services: dspacesolr: container_name: dspacesolr # Uses official Solr image at https://hub.docker.com/_/solr/ - image: solr:8.11-slim + image: docker.io/solr:8.11-slim # Needs main 'dspace' container to start first to guarantee access to solr_configs depends_on: - dspace diff --git a/docker/docker-compose-rest.yml b/docker/docker-compose-rest.yml index b73f1b7a390..02e7d68b326 100644 --- a/docker/docker-compose-rest.yml +++ b/docker/docker-compose-rest.yml @@ -39,7 +39,7 @@ services: # proxies.trusted.ipranges: This setting is required for a REST API running in Docker to trust requests # from the host machine. This IP range MUST correspond to the 'dspacenet' subnet defined above. proxies__P__trusted__P__ipranges: '172.23.0' - image: dspace/dspace:dspace-7_x-test + image: docker.io/dspace/dspace:dspace-7_x-test depends_on: - dspacedb networks: @@ -69,7 +69,7 @@ services: container_name: dspacedb environment: PGDATA: /pgdata - image: dspace/dspace-postgres-pgcrypto + image: docker.io/dspace/dspace-postgres-pgcrypto networks: dspacenet: ports: @@ -83,7 +83,7 @@ services: dspacesolr: container_name: dspacesolr # Uses official Solr image at https://hub.docker.com/_/solr/ - image: solr:8.11-slim + image: docker.io/solr:8.11-slim # Needs main 'dspace' container to start first to guarantee access to solr_configs depends_on: - dspace diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 1387b1de396..24a701b30b9 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -24,7 +24,7 @@ services: DSPACE_REST_HOST: localhost DSPACE_REST_PORT: 8080 DSPACE_REST_NAMESPACE: /server - image: dspace/dspace-angular:dspace-7_x + image: docker.io/dspace/dspace-angular:dspace-7_x build: context: .. dockerfile: Dockerfile