diff --git a/.env.dist b/.env.dist index ccec3e0..2314822 100644 --- a/.env.dist +++ b/.env.dist @@ -17,5 +17,5 @@ REDIS_PASSWORD=redis REDIS_PORT=6379 # OPA -OPA_IMAGE=openpolicyagent/opa:0.58.0 +OPA_IMAGE=docker.io/openpolicyagent/opa:0.58.0 OPA_URL=http://v3-auth-opa:8181/v1/data/ diff --git a/.env.test b/.env.test index 05e99ba..4c40d92 100644 --- a/.env.test +++ b/.env.test @@ -10,5 +10,5 @@ MESSAGE_BROKER_URI=amqp://mobicoop:mobicoop@v3-broker:5672 MESSAGE_BROKER_EXCHANGE=mobicoop # OPA -OPA_IMAGE=openpolicyagent/opa:0.54.0 +OPA_IMAGE=docker.io/openpolicyagent/opa:0.54.0 OPA_URL=http://v3-auth-opa:8181/v1/data/ diff --git a/Dockerfile b/Dockerfile index db77849..7711d16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ ARG NODE_VERSION=20.9.0 # BUILD FOR LOCAL DEVELOPMENT ################### -FROM node:${NODE_VERSION} As development +FROM docker.io/node:${NODE_VERSION} As development # Create app directory WORKDIR /usr/src/app @@ -31,7 +31,7 @@ USER node # BUILD FOR PRODUCTION ################### -FROM node:${NODE_VERSION} As build +FROM docker.io/node:${NODE_VERSION} As build WORKDIR /usr/src/app @@ -68,7 +68,7 @@ USER node # PRODUCTION ################### -FROM node:${NODE_VERSION} As production +FROM docker.io/node:${NODE_VERSION} As production # Copy package.json to be able to execute migration command COPY --chown=node:node package*.json ./ @@ -80,4 +80,4 @@ COPY --chown=node:node --from=build /usr/src/app/opa ./opa COPY --chown=node:node --from=build /usr/src/app/dist ./dist # Start the server using the production build -CMD [ "node", "dist/main.js" ] +CMD [ "node", "--trace-warnings", "dist/main.js" ] diff --git a/ci/.env.ci b/ci/.env.ci index 8f8986e..fee4dc2 100644 --- a/ci/.env.ci +++ b/ci/.env.ci @@ -6,7 +6,7 @@ SERVICE_PORT=5002 DATABASE_URL="postgresql://mobicoop:mobicoop@v3-db:5432/mobicoop?schema=public" # MESSAGE BROKER -MESSAGE_BROKER_IMAGE=rabbitmq:3-alpine +MESSAGE_BROKER_IMAGE=docker.io/rabbitmq:3-alpine # POSTGRES -POSTGRES_IMAGE=postgres:15.0 +POSTGRES_IMAGE=docker.io/postgres:15.0 diff --git a/ci/Dockerfile b/ci/Dockerfile index a442b31..6ced861 100644 --- a/ci/Dockerfile +++ b/ci/Dockerfile @@ -4,7 +4,7 @@ ARG NODE_VERSION=20.9.0 # BUILD FOR CI TESTING ################### -FROM node:${NODE_VERSION} +FROM docker.io/node:${NODE_VERSION} # Create app directory WORKDIR /usr/src/app