• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openSUSE / agama / 8172518516 / 1 – rust
25%
master: 72%

Build:
Build:
LAST BUILD BRANCH: storage-volume-keywords
DEFAULT BRANCH: master
Ran 06 Mar 2024 01:08PM UTC
Files 79
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Mar 2024 01:01PM UTC coverage: 43.592%. First build
rust – 8172518516.1

push

github

web-flow
Allow accessing the web UI from webpack (#1074)

Trello:
https://trello.com/c/8fSBUP9P/3594-3-improve-agama-web-server-integration-with-the-web-ui

## Accessing Agama server through webpack

When developing the web UI, you need to access Agama web server.
Similarly to what we implemented for Cockpit, you can access it directly
by setting the `AGAMA_SERVER` environment variable. By default, it is
set to `localhost:3000`.

```sh
AGAMA_SERVER=localhost:4567 npm run server
```

The API is available under the `/api` path.

```javascript
const ping = await fetch("/api/ping");
```

## Service the web UI in `agama-web-server`

The new Agama web server will expose the web UI in the root (`/`) path.
By default, it uses `$HOME/.local/agama/web-ui`, falling back to
`/usr/share/agama/web-ui`. However, you can override that route using
the new `--public-dir` argument.

```sh
agama-web-server serve --public-dir /srv/agama/web-ui
```

NOTE: Additionally, we could implement support for reading the public
directory from an environment variable (e.g., `AGAMA_PUBLIC_DIR`). In
that case, you could use `dotenv` (or your favorite alternative) to set
it automatically to `../web/dist`.

# Tasks

- [x] Access Agama server from webpack
- [x] Serve the web UI through `agama-web-server`
- [x] Move the API to `/api`
- [x] Update the documentation

1568 of 3597 relevant lines covered (43.59%)

1.6 hits per line

Source Files on job rust - 8172518516.1
  • Tree
  • List 79
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 8172518516
  • 3d97d73a on github
  • Next Job for on architecture_2024 (#8264240175.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc