mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
corrected image & service names
This commit is contained in:
parent
1c188250df
commit
289e62ddb4
@ -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: ocelotsocialnetwork/develop-backend
|
backendImage: ocelotsocialnetwork/backend
|
||||||
# maintenanceImage is the docker image for the maintenance deployment
|
# maintenanceImage is the docker image for the maintenance deployment
|
||||||
maintenanceImage: ocelotsocialnetwork/develop-maintenance
|
maintenanceImage: ocelotsocialnetwork/maintenance
|
||||||
# neo4jImage is the docker image for the neo4j deployment
|
# neo4jImage is the docker image for the neo4j deployment
|
||||||
neo4jImage: ocelotsocialnetwork/develop-neo4j
|
neo4jImage: ocelotsocialnetwork/neo4j
|
||||||
# webappImage is the docker image for the webapp deployment
|
# webappImage is the docker image for the webapp deployment
|
||||||
webappImage: ocelotsocialnetwork/develop-webapp
|
webappImage: ocelotsocialnetwork/webapp
|
||||||
# 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.
|
||||||
|
|||||||
@ -43,13 +43,13 @@ Then temporarily delete backend and database deployments
|
|||||||
```bash
|
```bash
|
||||||
$ kubectl -n ocelot-social get deployments
|
$ kubectl -n ocelot-social get deployments
|
||||||
NAME READY UP-TO-DATE AVAILABLE AGE
|
NAME READY UP-TO-DATE AVAILABLE AGE
|
||||||
develop-backend 1/1 1 1 3d11h
|
backend 1/1 1 1 3d11h
|
||||||
develop-neo4j 1/1 1 1 3d11h
|
neo4j 1/1 1 1 3d11h
|
||||||
develop-webapp 2/2 2 2 73d
|
webapp 2/2 2 2 73d
|
||||||
$ kubectl -n ocelot-social delete deployment develop-neo4j
|
$ kubectl -n ocelot-social delete deployment neo4j
|
||||||
deployment.extensions "develop-neo4j" deleted
|
deployment.extensions "neo4j" deleted
|
||||||
$ kubectl -n ocelot-social delete deployment develop-backend
|
$ kubectl -n ocelot-social delete deployment backend
|
||||||
deployment.extensions "develop-backend" deleted
|
deployment.extensions "backend" deleted
|
||||||
```
|
```
|
||||||
|
|
||||||
Deploy one-time develop-maintenance-worker pod:
|
Deploy one-time develop-maintenance-worker pod:
|
||||||
|
|||||||
@ -18,8 +18,8 @@ minikube dashboard, expose the services you want on your host system.
|
|||||||
For example:
|
For example:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$ minikube service develop-webapp --namespace=ocelotsocialnetwork
|
$ minikube service webapp --namespace=ocelotsocialnetwork
|
||||||
# optionally
|
# optionally
|
||||||
$ minikube service develop-backend --namespace=ocelotsocialnetwork
|
$ minikube service backend --namespace=ocelotsocialnetwork
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -2,5 +2,5 @@
|
|||||||
sed -i "s/<COMMIT>/${TRAVIS_COMMIT}/g" $TRAVIS_BUILD_DIR/scripts/patches/patch-deployment.yaml
|
sed -i "s/<COMMIT>/${TRAVIS_COMMIT}/g" $TRAVIS_BUILD_DIR/scripts/patches/patch-deployment.yaml
|
||||||
sed -i "s/<COMMIT>/${TRAVIS_COMMIT}/g" $TRAVIS_BUILD_DIR/scripts/patches/patch-configmap.yaml
|
sed -i "s/<COMMIT>/${TRAVIS_COMMIT}/g" $TRAVIS_BUILD_DIR/scripts/patches/patch-configmap.yaml
|
||||||
kubectl -n ocelot-social patch configmap develop-configmap -p "$(cat $TRAVIS_BUILD_DIR/scripts/patches/patch-configmap.yaml)"
|
kubectl -n ocelot-social patch configmap develop-configmap -p "$(cat $TRAVIS_BUILD_DIR/scripts/patches/patch-configmap.yaml)"
|
||||||
kubectl -n ocelot-social patch deployment develop-backend -p "$(cat $TRAVIS_BUILD_DIR/scripts/patches/patch-deployment.yaml)"
|
kubectl -n ocelot-social patch deployment backend -p "$(cat $TRAVIS_BUILD_DIR/scripts/patches/patch-deployment.yaml)"
|
||||||
kubectl -n ocelot-social patch deployment develop-webapp -p "$(cat $TRAVIS_BUILD_DIR/scripts/patches/patch-deployment.yaml)"
|
kubectl -n ocelot-social patch deployment webapp -p "$(cat $TRAVIS_BUILD_DIR/scripts/patches/patch-deployment.yaml)"
|
||||||
|
|||||||
@ -4,14 +4,14 @@ ROOT_DIR=$(dirname "$0")/..
|
|||||||
|
|
||||||
VERSION=$(jq -r '.version' $ROOT_DIR/package.json)
|
VERSION=$(jq -r '.version' $ROOT_DIR/package.json)
|
||||||
IFS='.' read -r major minor patch <<< $VERSION
|
IFS='.' read -r major minor patch <<< $VERSION
|
||||||
apps=(develop-webapp develop-backend develop-neo4j develop-maintenance)
|
apps=(webapp 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 ocelotsocialnetwork/develop-backend:latest $ROOT_DIR/backend
|
# docker build --build-arg BUILD_COMMIT=$BUILD_COMMIT --target production -t ocelotsocialnetwork/backend:latest $ROOT_DIR/backend
|
||||||
# docker build --build-arg BUILD_COMMIT=$BUILD_COMMIT --target production -t ocelotsocialnetwork/develop-webapp:latest $ROOT_DIR/webapp
|
# docker build --build-arg BUILD_COMMIT=$BUILD_COMMIT --target production -t ocelotsocialnetwork/webapp:latest $ROOT_DIR/webapp
|
||||||
# docker build --build-arg BUILD_COMMIT=$BUILD_COMMIT -t ocelotsocialnetwork/develop-neo4j:latest $ROOT_DIR/neo4j
|
# docker build --build-arg BUILD_COMMIT=$BUILD_COMMIT -t ocelotsocialnetwork/neo4j:latest $ROOT_DIR/neo4j
|
||||||
docker build -t ocelotsocialnetwork/develop-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
|
||||||
|
|
||||||
|
|||||||
@ -85,6 +85,4 @@ COPY --from=build ${DOCKER_WORKDIR}/locales ./locales
|
|||||||
RUN yarn install --production=true --frozen-lockfile --non-interactive --no-cache
|
RUN yarn install --production=true --frozen-lockfile --non-interactive --no-cache
|
||||||
|
|
||||||
# Run command
|
# Run command
|
||||||
CMD /bin/sh -c "yarn run start"
|
CMD /bin/sh -c "yarn run start"
|
||||||
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user