Fix doc to build a local image for microk8s (#594)

- add push to registry cmd
- update to frontend_* and backend_*
This commit is contained in:
D. Lee 2023-02-14 16:10:04 -08:00 committed by GitHub
parent 14b349443f
commit d15e6c8ad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 7 deletions

View File

@ -137,8 +137,8 @@ By default, this setup will pull the latest release of Browsertrix Cloud. Howeve
First, open `./chart/examples/local-config.yaml` and add the following, which will ensure only local images are used:
```
api_pull_policy: "Never"
nginx_pull_policy: "Never"
backend_pull_policy: "Never"
frontend_pull_policy: "Never"
```
Now, rebuild either the backend and/or frontend images locally. The exact process depends on the Kubernetes deployment in use:
@ -158,8 +158,8 @@ Now, rebuild either the backend and/or frontend images locally. The exact proces
2. In `./chart/examples/local-config.yaml`, uncomment out one or both of the following lines to use the local images:
```
api_image: "localhost:32000/webrecorder/browsertrix-backend:latest"
nginx_image: "localhost:32000/webrecorder/browsertrix-frontend:latest"
backend_image: "localhost:32000/webrecorder/browsertrix-backend:latest"
frontend_image: "localhost:32000/webrecorder/browsertrix-frontend:latest"
```
??? tip "Minikube"
@ -198,5 +198,3 @@ Now, rebuild either the backend and/or frontend images locally. The exact proces
```
Once the images have been built and any other config changes made per the above instructions, simply run the `helm upgrade...` command again to restart with local images.

View File

@ -3,3 +3,6 @@ CURR=$(dirname "${BASH_SOURCE[0]}")
docker build -t ${REGISTRY}webrecorder/browsertrix-backend:latest $CURR/../backend/
if [ -n "$REGISTRY" ]; then
docker push ${REGISTRY}webrecorder/browsertrix-backend
fi

View File

@ -2,3 +2,7 @@
CURR=$(dirname "${BASH_SOURCE[0]}")
docker build --build-arg GIT_COMMIT_HASH="$(git rev-parse --short HEAD)" --build-arg GIT_BRANCH_NAME="$(git rev-parse --abbrev-ref HEAD)" --build-arg --load -t ${REGISTRY}webrecorder/browsertrix-frontend:latest $CURR/../frontend/
if [ -n "$REGISTRY" ]; then
docker push ${REGISTRY}webrecorder/browsertrix-frontend
fi