-
Notifications
You must be signed in to change notification settings - Fork 2
Deploying on OpenShift
ehennestad edited this page Apr 21, 2023
·
2 revisions
See Deploy app from docker image on open shift - EBRAINS Wiki
Contact @ehennestad to be added as a member to the ebrains-metadata-wizard project on the EBRAINS docker registry (Harbor)
Note: Use the docker file present in this repository and follow the instructions from the guide above.
To build, use the following command:
docker build .
To build for Open Shift (from Apple Pro M1), use the following command:
docker build --platform=linux/amd64 .
To run, use the following command:
docker run -it -d -P --name wizard --env OIDC_CLIENT_SECRET=$OIDC_CLIENT_SECRET <IMAGE ID>
To push to EBRAINS Docker registry
docker login docker-registry.ebrains.eu
Username: <your username>
Password: <your usertoken>
docker image tag <image id> docker-registry.ebrains.eu/<project_name>/<repository_name>:<tag>
docker push docker-registry.ebrains.eu/<project_name>/<repository_name>:<tag>
Example:
docker image tag ddb2fe9a8083 docker-registry.ebrains.eu/ebrains-metadata-wizard/wizard-web-app:2.0.0
docker push docker-registry.ebrains.eu/ebrains-metadata-wizard/wizard-web-app:2.0.0