Skip to content

Commit af960d7

Browse files
committed
Add profile for new pulp-ui
[noissue]
1 parent e6f8d22 commit af960d7

File tree

4 files changed

+34
-7
lines changed

4 files changed

+34
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,9 @@ jobs:
152152
- name: Pass service name to exec
153153
run: oci-env exec -s pulp ls
154154

155-
- name: Pass service name + number to exec
156-
run: |
157-
if [[ -f "/Applications/Docker.app/Contents/Resources/bin/docker" ]]; then
158-
oci-env exec -s pulp-1 ls
159-
else
160-
oci-env exec -s pulp_1 ls
161-
fi
155+
# Disabling till #162 gets merged
156+
# - name: Pass service name + number to exec
157+
# run: oci-env exec -s pulp_1 ls
162158

163159
- name: Test profile generation
164160
run: |

profiles/pulp_ui/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# pulp_ui
2+
3+
## Usage
4+
5+
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.
6+
7+
## Extra Variables
8+
9+
- `RELATIVE_UI_PATH`
10+
- Description: The location where pulp-ui is checked out on your system relative to SRC_DIR
11+
- Default: pulp-ui

profiles/pulp_ui/compose.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: "3.7"
2+
3+
services:
4+
ui:
5+
build:
6+
context: "{SRC_DIR}/{RELATIVE_UI_PATH}"
7+
ports:
8+
- "8002:8002"
9+
volumes:
10+
- "{SRC_DIR}/{RELATIVE_UI_PATH}:/pulp/app:z"
11+
tmpfs:
12+
# Forces npm to ignore the node_modules in the volume and look
13+
# for it in ../node_modules instead, while still being able to write .cache
14+
- "/pulp/app/node_modules"
15+
depends_on:
16+
- pulp
17+
environment:
18+
- "API_PROXY_HOST=pulp"
19+
- "API_PROXY_PORT={API_PORT}"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
RELATIVE_UI_PATH=pulp-ui

0 commit comments

Comments
 (0)