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 26, 2024
1 parent e6f8d22 commit af960d7
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
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 af960d7

Please sign in to comment.