Skip to content

Commit

Permalink
config and README fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
himdel committed Jul 5, 2024
1 parent 469dbc3 commit 48d6db4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ a community driven UI for Pulp
You can follow the [pulp-oci-images quickstart](https://pulpproject.org/pulp-oci-images/docs/admin/tutorials/quickstart/),
TLDR:

setup:
#### setup:

```
```sh
mkdir -p ~/pulp-backend-oci/{settings/certs,pulp_storage,pgsql,containers}
cd ~/pulp-backend-oci/
echo "
Expand All @@ -20,9 +20,9 @@ ANSIBLE_CONTENT_HOSTNAME='http://$(hostname):8080/pulp/content'
" >> settings/settings.py
```

run:
#### run:

```
```sh
cd ~/pulp-backend-oci/
podman run --publish 8080:80 \
--replace --name pulp \
Expand All @@ -33,21 +33,23 @@ podman run --publish 8080:80 \
docker.io/pulp/pulp
```

check:
#### check:

```
```sh
curl localhost:8080/pulp/api/v3/status/ | jq
```

change password:
or open http://localhost:8080/pulp/api/v3/status/

```
#### change password:

```sh
podman exec -it pulp pulpcore-manager reset-admin-password --password admin
```

configure pulp-cli:
#### configure `pulp-cli`:

```
```sh
pip install pulp-cli[pygments]
pulp config create --username admin --base-url http://localhost:8080 --password admin

Expand All @@ -57,7 +59,7 @@ pulp user list

### frontend

```
```sh
npm install
npm run start
```
Expand Down
4 changes: 2 additions & 2 deletions config/build.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const webpackBase = require('./shared.config');

// Compile configuration for stnadalone mode
module.exports = webpackBase({
API_BASE_PATH: '/api/galaxy/',
API_BASE_PATH: '/pulp/api/v3/',
UI_BASE_PATH: '/ui/',
UI_USE_HTTPS: false,
WEBPACK_PUBLIC_PATH: '/static/galaxy_ng/',
WEBPACK_PUBLIC_PATH: '/static/pulp_ui/',
});
2 changes: 1 addition & 1 deletion config/start.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const webpackBase = require('./shared.config');
// Used for getting the correct host when running in a container
const proxyHost = process.env.API_PROXY_HOST || 'localhost';
const proxyPort = process.env.API_PROXY_PORT || '8080';
const apiBasePath = process.env.API_BASE_PATH || '/pulp/api/v3';
const apiBasePath = process.env.API_BASE_PATH || '/pulp/api/v3/';
const proxyTarget = `http://${proxyHost}:${proxyPort}`;

module.exports = webpackBase({
Expand Down

0 comments on commit 48d6db4

Please sign in to comment.