Skip to content

Commit

Permalink
Add profile for new pulp-ui
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
gerrod3 committed Sep 23, 2024
1 parent e6f8d22 commit 9f013be
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
11 changes: 11 additions & 0 deletions profiles/pulp_ui/README.md
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions profiles/pulp_ui/compose.yaml
Original file line number Diff line number Diff line change
@@ -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}"
1 change: 1 addition & 0 deletions profiles/pulp_ui/profile_default_config.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
RELATIVE_UI_PATH=pulp-ui

0 comments on commit 9f013be

Please sign in to comment.