Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Tests

on:
push:
branches:
- main
pull_request:

jobs:
app-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Run tests
run: |
cd dashboard
make test
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ The application will run in a Kubernetes cluster, so we need a container image f
Creating the container image might take several minutes, so this is a good point to take a break. When you return, you should see the following output:

> ```
> Packed dashboard_0.23_amd64.rock
> Packed dashboard_0.24_amd64.rock
> ```

### Create a charm
Expand All @@ -109,10 +109,10 @@ Creating the charm might take several minutes, so this is another good point to
``` { name=deploy-dashboard }
cd ~/dashboard
rockcraft.skopeo --insecure-policy copy --dest-tls-verify=false \
oci-archive:dashboard_0.23_amd64.rock \
docker://localhost:32000/dashboard:0.23
oci-archive:dashboard_0.24_amd64.rock \
docker://localhost:32000/dashboard:0.24
juju deploy ./charm/dashboard_ubuntu-22.04-amd64.charm \
--resource django-app-image=localhost:32000/dashboard:0.23
--resource django-app-image=localhost:32000/dashboard:0.24
```

The `rockcraft.skopeo` command makes the container image available to Juju.
Expand Down
1 change: 1 addition & 0 deletions dashboard/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ run: init

test: install
$(PIP) install -r requirements-dev.txt
$(VENV)/bin/python -m playwright install
$(PYTEST)

clean:
Expand Down
13 changes: 13 additions & 0 deletions dashboard/dashboard/static/base-styles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
body {font-family: Helvetica, sans-serif; font-size: 12px;}

div.auth a {
border-radius: 999em;
background: orange;
padding: 10px;
border: 1px solid black;
text-decoration: none;
font-weight: bold;
color: black;
display: inline-block;
}

div.auth {margin-bottom: 1em;}

/* general table styles */

th {text-align: left;}
Expand Down
Loading