mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Merge branch 'master' into build-copy-files-script
This commit is contained in:
commit
9b93b65f71
@ -1 +1 @@
|
|||||||
v19.4.0
|
v20.2.0
|
||||||
@ -15,4 +15,4 @@ echo "Using CONFIGURATION=${CONFIGURATION}"
|
|||||||
KUBECONFIG=${KUBECONFIG:-${SCRIPT_DIR}/../configurations/${CONFIGURATION}/kubeconfig.yaml}
|
KUBECONFIG=${KUBECONFIG:-${SCRIPT_DIR}/../configurations/${CONFIGURATION}/kubeconfig.yaml}
|
||||||
|
|
||||||
# clean & seed
|
# clean & seed
|
||||||
kubectl --kubeconfig=${KUBECONFIG} -n default exec -it $(kubectl --kubeconfig=${KUBECONFIG} -n default get pods | grep ocelot-backend | awk '{ print $1 }') -- /bin/sh -c "node --experimental-repl-await dist/db/clean.js && node --experimental-repl-await dist/db/seed.js"
|
kubectl --kubeconfig=${KUBECONFIG} -n default exec -it $(kubectl --kubeconfig=${KUBECONFIG} -n default get pods | grep ocelot-backend | awk '{ print $1 }') -- /bin/sh -c "node --experimental-repl-await build/db/clean.js && node --experimental-repl-await build/db/seed.js"
|
||||||
@ -34,7 +34,7 @@ FROM $APP_IMAGE_BASE as branded
|
|||||||
|
|
||||||
# TODO - do all copying with one COPY command to have one layer
|
# TODO - do all copying with one COPY command to have one layer
|
||||||
# Copy "binary"-files from build image
|
# Copy "binary"-files from build image
|
||||||
COPY --from=build ${DOCKER_WORKDIR}/dist ./dist
|
COPY --from=build ${DOCKER_WORKDIR}/build ./build
|
||||||
COPY --from=build ${DOCKER_WORKDIR}/node_modules ./node_modules
|
COPY --from=build ${DOCKER_WORKDIR}/node_modules ./node_modules
|
||||||
# TODO - externalize the uploads so we can copy the whole folder
|
# TODO - externalize the uploads so we can copy the whole folder
|
||||||
COPY --from=build ${DOCKER_WORKDIR}/public/img/ ./public/img/
|
COPY --from=build ${DOCKER_WORKDIR}/public/img/ ./public/img/
|
||||||
|
|||||||
@ -293,7 +293,7 @@ $ kubectl -n default rollout status deployment/ocelot-neo4j --timeout=240s
|
|||||||
$ kubectl config get-contexts
|
$ kubectl config get-contexts
|
||||||
|
|
||||||
# reset and seed Neo4j database via backend for staging
|
# reset and seed Neo4j database via backend for staging
|
||||||
$ kubectl -n default exec -it $(kubectl -n default get pods | grep ocelot-backend | awk '{ print $1 }') -- /bin/sh -c "node --experimental-repl-await dist/db/clean.js && node --experimental-repl-await dist/db/seed.js"
|
$ kubectl -n default exec -it $(kubectl -n default get pods | grep ocelot-backend | awk '{ print $1 }') -- /bin/sh -c "node --experimental-repl-await build/db/clean.js && node --experimental-repl-await build/db/seed.js"
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
v19.4.0
|
v20.2.0
|
||||||
Loading…
x
Reference in New Issue
Block a user