This document lists the instructions for building a PlanDev UI docker image with a custom base path. While the default path and resulting application URL are usually a good fit, some installations may choose a custom path to support deployment behind a gateway, to provide consistency with other non-PlanDev applications that the mission is using, or this could be part of a configuration that supports running multiple instances of PlanDev UI on the same machine.
-
Clone the plandev-ui repository and install dependencies. Note that Node LTS is required (currently 18.13.0).
git clone https://github.com/NASA-AMMOS/plandev-ui.git cd aerie-ui npm installWhen you clone plandev-ui the default branch is develop. If you want to build an image from a specific release you have to checkout the proper tag. For example to checkout v1.0.0 do:
git checkout tags/v1.0.0 -b v1.0.0
-
Update svelte.config.js with the base path you want to use. Note that a leading
/is required. So for example a valid base path is/plandev. -
Build the plandev-ui.
npm run build
-
Build the UI Docker image. By convention, docker images/containers use the legacy "aerie" name. For example we tag the image here with
aerie-ui, but you can change this tag:docker build -t aerie-ui . -
Use the newly built image as part of your normal PlanDev Docker deployment.
If you ever need to re-run through these instructions make sure you always start from a clean environment. Remove all dependencies and build artifacts in aerie-ui:
rm -rf node_modules
rm -rf .svelte-kit
rm -rf buildRemove the built Docker image:
docker rmi aerie-uiOnce this issue is resolved we will no longer need this document.