diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 30a9ecb..2a61ad8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -152,13 +152,9 @@ jobs: - name: Pass service name to exec run: oci-env exec -s pulp ls - - name: Pass service name + number to exec - run: | - if [[ -f "/Applications/Docker.app/Contents/Resources/bin/docker" ]]; then - oci-env exec -s pulp-1 ls - else - oci-env exec -s pulp_1 ls - fi + # Disabling till #162 gets merged + # - name: Pass service name + number to exec + # run: oci-env exec -s pulp_1 ls - name: Test profile generation run: | diff --git a/profiles/pulp_ui/README.md b/profiles/pulp_ui/README.md new file mode 100644 index 0000000..b639158 --- /dev/null +++ b/profiles/pulp_ui/README.md @@ -0,0 +1,11 @@ +# pulp_ui + +## Usage + +Provides a container that runs the Pulp UI from source. This requires https://github.com/pulp/pulp-ui to be checked out on your system. + +## Extra Variables + +- `RELATIVE_UI_PATH` + - Description: The location where pulp-ui is checked out on your system relative to SRC_DIR + - Default: pulp-ui diff --git a/profiles/pulp_ui/compose.yaml b/profiles/pulp_ui/compose.yaml new file mode 100644 index 0000000..d157748 --- /dev/null +++ b/profiles/pulp_ui/compose.yaml @@ -0,0 +1,19 @@ +version: "3.7" + +services: + ui: + build: + context: "{SRC_DIR}/{RELATIVE_UI_PATH}" + ports: + - "8002:8002" + volumes: + - "{SRC_DIR}/{RELATIVE_UI_PATH}:/pulp/app:z" + tmpfs: + # Forces npm to ignore the node_modules in the volume and look + # for it in ../node_modules instead, while still being able to write .cache + - "/pulp/app/node_modules" + depends_on: + - pulp + environment: + - "API_PROXY_HOST=pulp" + - "API_PROXY_PORT={API_PORT}" diff --git a/profiles/pulp_ui/profile_default_config.env b/profiles/pulp_ui/profile_default_config.env new file mode 100644 index 0000000..fa05860 --- /dev/null +++ b/profiles/pulp_ui/profile_default_config.env @@ -0,0 +1 @@ +RELATIVE_UI_PATH=pulp-ui