Skip to content

Commit

Permalink
webui: update README and add TMP_PATCH_DIR in entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
maany committed Mar 8, 2024
1 parent 18a1ae4 commit f6dc98a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webui/README.md
Expand Up @@ -20,7 +20,7 @@ This image provides the Rucio WebUI which works as a web frontend to the Rucio s
docker build --rm --no-cache --platform=linux/amd64 --build-arg TAG=33.0.0 -t rucio-webui:33.0.0 .
```

For M1 Macs, the `--platform` flag should be set to `linux/arm64` instead.
For ARM based platforms (For eg, Apple Silicone), the `--platform` flag should be set to `linux/arm64` instead.

```bash
docker build --rm --no-cache --platform=linux/arm64 --build-arg TAG=33.0.0 -t rucio-webui:33.0.0 .
Expand Down Expand Up @@ -70,7 +70,7 @@ The WebUI container can be configured using environment variables. There are two
The following sections list the available configuration variables:

### NextJS Configuration
The following environment variables are used to configure the NextJS App. As a convention, the environment variables are prefixed with `RUCIO_WEBUI_` and are by the [env-generator](https://github.com/rucio/webui/tree/master/tools/env-generator) tool , which creates the environment file used by the NextJS application. When running the container, the `-e` flag must specify the `FULL_NAME` of the corresponding environment variable.
The following environment variables are used to configure the NextJS App. As a convention, the environment variables are prefixed with `RUCIO_WEBUI_` and are generated by the [env-generator](https://github.com/rucio/webui/tree/master/tools/env-generator) tool , which creates the environment file used by the NextJS application. When running the container, the `-e` flag must specify the `FULL_NAME` of the corresponding environment variable.

| Variable Name | Full Name | Description | Example | Default |
|-----------------|-----------------------------|--------------------------------------------------------------------------------------|--------------------------------|---------|
Expand Down
4 changes: 4 additions & 0 deletions webui/docker-entrypoint.sh
Expand Up @@ -44,6 +44,10 @@ if [ -d "/patch" ]
then
echo "=================== Apply Patches ==================="
log "Patches found. Trying to apply them"

TMP_PATCH_DIR="$(mktemp -d)"
trap 'rm -rf -- "$TMP_PATCH_DIR"' EXIT # Deletes temp dir when script exits

for patchfile in /patch/*
do
echo "Applying patch ${patchfile}"
Expand Down

0 comments on commit f6dc98a

Please sign in to comment.