mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Change docker account
- humanconnection —> ocelotsocialnetwork
This commit is contained in:
parent
dab21933af
commit
360f545fb7
@ -7,13 +7,13 @@ dbInitializion: "yarn prod:migrate init"
|
|||||||
# dbMigrations runs the database migrations in a post-upgrade hook.
|
# dbMigrations runs the database migrations in a post-upgrade hook.
|
||||||
dbMigrations: "yarn prod:migrate up"
|
dbMigrations: "yarn prod:migrate up"
|
||||||
# bakendImage is the docker image for the backend deployment
|
# bakendImage is the docker image for the backend deployment
|
||||||
backendImage: humanconnection/nitro-backend
|
backendImage: ocelotsocialnetwork/nitro-backend
|
||||||
# maintenanceImage is the docker image for the maintenance deployment
|
# maintenanceImage is the docker image for the maintenance deployment
|
||||||
maintenanceImage: humanconnection/maintenance
|
maintenanceImage: ocelotsocialnetwork/maintenance
|
||||||
# neo4jImage is the docker image for the neo4j deployment
|
# neo4jImage is the docker image for the neo4j deployment
|
||||||
neo4jImage: humanconnection/neo4j
|
neo4jImage: ocelotsocialnetwork/neo4j
|
||||||
# webappImage is the docker image for the webapp deployment
|
# webappImage is the docker image for the webapp deployment
|
||||||
webappImage: humanconnection/nitro-web
|
webappImage: ocelotsocialnetwork/nitro-web
|
||||||
# image configures pullPolicy related to the docker images
|
# image configures pullPolicy related to the docker images
|
||||||
image:
|
image:
|
||||||
# pullPolicy indicates when, if ever, pods pull a new image from docker hub.
|
# pullPolicy indicates when, if ever, pods pull a new image from docker hub.
|
||||||
|
|||||||
@ -36,7 +36,7 @@ spec:
|
|||||||
name: configmap
|
name: configmap
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: human-connection
|
name: human-connection
|
||||||
image: humanconnection/nitro-backend:latest
|
image: ocelotsocialnetwork/nitro-backend:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
name: backend
|
name: backend
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@ -31,7 +31,7 @@ spec:
|
|||||||
- envFrom:
|
- envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: configmap
|
name: configmap
|
||||||
image: humanconnection/neo4j:latest
|
image: ocelotsocialnetwork/neo4j:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
name: neo4j
|
name: neo4j
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@ -37,7 +37,7 @@ spec:
|
|||||||
name: configmap
|
name: configmap
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: human-connection
|
name: human-connection
|
||||||
image: humanconnection/nitro-web:latest
|
image: ocelotsocialnetwork/nitro-web:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
name: web
|
name: web
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@ -19,7 +19,7 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: HOST
|
- name: HOST
|
||||||
value: 0.0.0.0
|
value: 0.0.0.0
|
||||||
image: humanconnection/maintenance:latest
|
image: ocelotsocialnetwork/maintenance:latest
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: nitro-maintenance-worker
|
- name: nitro-maintenance-worker
|
||||||
image: humanconnection/maintenance-worker:latest
|
image: ocelotsocialnetwork/maintenance-worker:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
FROM humanconnection/neo4j:latest
|
FROM ocelotsocialnetwork/neo4j:latest
|
||||||
|
|
||||||
ENV NODE_ENV=maintenance
|
ENV NODE_ENV=maintenance
|
||||||
EXPOSE 7687 7474
|
EXPOSE 7687 7474
|
||||||
|
|||||||
@ -4,14 +4,14 @@ services:
|
|||||||
webapp:
|
webapp:
|
||||||
environment:
|
environment:
|
||||||
- "CI=${CI}"
|
- "CI=${CI}"
|
||||||
image: humanconnection/nitro-web:build-and-test
|
image: ocelotsocialnetwork/nitro-web:build-and-test
|
||||||
build:
|
build:
|
||||||
context: webapp
|
context: webapp
|
||||||
target: build-and-test
|
target: build-and-test
|
||||||
backend:
|
backend:
|
||||||
environment:
|
environment:
|
||||||
- "CI=${CI}"
|
- "CI=${CI}"
|
||||||
image: humanconnection/nitro-backend:build-and-test
|
image: ocelotsocialnetwork/nitro-backend:build-and-test
|
||||||
build:
|
build:
|
||||||
context: backend
|
context: backend
|
||||||
target: build-and-test
|
target: build-and-test
|
||||||
|
|||||||
@ -2,7 +2,7 @@ version: "3.4"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
maintenance-worker:
|
maintenance-worker:
|
||||||
image: humanconnection/maintenance-worker:latest
|
image: ocelotsocialnetwork/maintenance-worker:latest
|
||||||
build:
|
build:
|
||||||
context: deployment/legacy-migration/maintenance-worker
|
context: deployment/legacy-migration/maintenance-worker
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@ -31,7 +31,7 @@ services:
|
|||||||
- "DEBUG=${DEBUG}"
|
- "DEBUG=${DEBUG}"
|
||||||
- PUBLIC_REGISTRATION=false
|
- PUBLIC_REGISTRATION=false
|
||||||
maintenance:
|
maintenance:
|
||||||
image: humanconnection/maintenance:latest
|
image: ocelotsocialnetwork/maintenance:latest
|
||||||
build:
|
build:
|
||||||
context: webapp
|
context: webapp
|
||||||
dockerfile: Dockerfile.maintenance
|
dockerfile: Dockerfile.maintenance
|
||||||
|
|||||||
@ -2,7 +2,7 @@ version: "3.4"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
webapp:
|
webapp:
|
||||||
image: humanconnection/nitro-web:latest
|
image: ocelotsocialnetwork/nitro-web:latest
|
||||||
build:
|
build:
|
||||||
context: webapp
|
context: webapp
|
||||||
target: production
|
target: production
|
||||||
@ -22,7 +22,7 @@ services:
|
|||||||
- GRAPHQL_URI=http://backend:4000
|
- GRAPHQL_URI=http://backend:4000
|
||||||
- MAPBOX_TOKEN="pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.bZ8KK9l70omjXbEkkbHGsQ"
|
- MAPBOX_TOKEN="pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.bZ8KK9l70omjXbEkkbHGsQ"
|
||||||
backend:
|
backend:
|
||||||
image: humanconnection/nitro-backend:latest
|
image: ocelotsocialnetwork/nitro-backend:latest
|
||||||
build:
|
build:
|
||||||
context: backend
|
context: backend
|
||||||
target: production
|
target: production
|
||||||
@ -46,7 +46,7 @@ services:
|
|||||||
- PRIVATE_KEY_PASSPHRASE=a7dsf78sadg87ad87sfagsadg78
|
- PRIVATE_KEY_PASSPHRASE=a7dsf78sadg87ad87sfagsadg78
|
||||||
- "DEBUG=${DEBUG}"
|
- "DEBUG=${DEBUG}"
|
||||||
neo4j:
|
neo4j:
|
||||||
image: humanconnection/neo4j:latest
|
image: ocelotsocialnetwork/neo4j:latest
|
||||||
build:
|
build:
|
||||||
context: neo4j
|
context: neo4j
|
||||||
args:
|
args:
|
||||||
|
|||||||
@ -8,22 +8,22 @@ apps=(nitro-web nitro-backend neo4j maintenance)
|
|||||||
tags=($major $major.$minor $major.$minor.$patch)
|
tags=($major $major.$minor $major.$minor.$patch)
|
||||||
|
|
||||||
# These three docker images have already been built by now:
|
# These three docker images have already been built by now:
|
||||||
# docker build --build-arg BUILD_COMMIT=$BUILD_COMMIT --target production -t humanconnection/nitro-backend:latest $ROOT_DIR/backend
|
# docker build --build-arg BUILD_COMMIT=$BUILD_COMMIT --target production -t ocelotsocialnetwork/nitro-backend:latest $ROOT_DIR/backend
|
||||||
# docker build --build-arg BUILD_COMMIT=$BUILD_COMMIT --target production -t humanconnection/nitro-web:latest $ROOT_DIR/webapp
|
# docker build --build-arg BUILD_COMMIT=$BUILD_COMMIT --target production -t ocelotsocialnetwork/nitro-web:latest $ROOT_DIR/webapp
|
||||||
# docker build --build-arg BUILD_COMMIT=$BUILD_COMMIT -t humanconnection/neo4j:latest $ROOT_DIR/neo4j
|
# docker build --build-arg BUILD_COMMIT=$BUILD_COMMIT -t ocelotsocialnetwork/neo4j:latest $ROOT_DIR/neo4j
|
||||||
docker build -t humanconnection/maintenance:latest $ROOT_DIR/webapp/ -f $ROOT_DIR/webapp/Dockerfile.maintenance
|
docker build -t ocelotsocialnetwork/maintenance:latest $ROOT_DIR/webapp/ -f $ROOT_DIR/webapp/Dockerfile.maintenance
|
||||||
|
|
||||||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
|
||||||
for app in "${apps[@]}"
|
for app in "${apps[@]}"
|
||||||
do
|
do
|
||||||
SOURCE="humanconnection/${app}:latest"
|
SOURCE="ocelotsocialnetwork/${app}:latest"
|
||||||
echo "docker push $SOURCE"
|
echo "docker push $SOURCE"
|
||||||
docker push $SOURCE
|
docker push $SOURCE
|
||||||
|
|
||||||
for tag in "${tags[@]}"
|
for tag in "${tags[@]}"
|
||||||
do
|
do
|
||||||
TARGET="humanconnection/${app}:${tag}"
|
TARGET="ocelotsocialnetwork/${app}:${tag}"
|
||||||
if DOCKER_CLI_EXPERIMENTAL=enabled docker manifest inspect $TARGET >/dev/null; then
|
if DOCKER_CLI_EXPERIMENTAL=enabled docker manifest inspect $TARGET >/dev/null; then
|
||||||
echo "docker image ${TARGET} already present, skipping ..."
|
echo "docker image ${TARGET} already present, skipping ..."
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user