Skip to content

Commit

Permalink
Merge pull request #57 from EGI-Federation/homer-updates
Browse files Browse the repository at this point in the history
Homer updates
  • Loading branch information
sebastian-luna-valero authored Aug 21, 2024
2 parents 058517d + 2f71004 commit 010d13e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,16 @@ This code relies on docker-compose to run 3 containers:

- [traefik](https://traefik.io/traefik/) to provide HTTP proxy and cert
management
- [dashy](https://dashy.to/) for generating the dashboard
- [homer](https://homer-demo.netlify.app/) for generating the dashboard
- some python code to generate the list of endpoints

The existing docker-compose file assumes you will run the code on a publicly
accessible host with a valid name. You can create a `.env` file with the
`DASHBOARD_HOSTNAME` variable defined with the hostname of your server and just
start the service:
accessible host with a valid name:

```shell
cd /path/to/working/directory
git clone https://github.com/EGI-Federation/fedcloud-dashboard.git
echo "DASHBOARD_HOSTNAME="<your host name>"
cd fedcloud-dashboard
docker-compose up --build
```

Expand Down Expand Up @@ -57,18 +55,18 @@ conda activate horizon-aggregator
Test whether the query script works:

```shell
cd /path/to/working/directory/fedcloud-dashboard/dashboard/
python dashy_endpoints.py > conf.yml
cd /path/to/working/directory/fedcloud-dashboard/
python dashboard/update_config.py > assets/config.yml
```

Use the generated `conf.yml` with dashy:

```shell
cd /path/to/working/directory/fedcloud-dashboard/dashboard/
cd /path/to/working/directory/fedcloud-dashboard/
docker run \
-p 8080:80 \
-v $PWD/conf.yml:/app/public/conf.yml \
lissy93/dashy:latest
-p 8080:8080 \
-v $PWD/assets:/www/assets/ \
b4bz/homer:v24.05.1
```

And point your browser to `http://localhost:8080` to see your dashboard running
4 changes: 4 additions & 0 deletions dashboard/update_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
"subtitle": "FedCloud Dashboards",
"theme": "classic",
"columns": "3",
"defaults": {
"layout": "list",
"colorTheme": "auto",
},
"stylesheet": ["assets/egi.css"],
"colors": {
"light": {"highlight-hover": "#ef8200", "highlight-secondary": "#005faa"}
Expand Down
6 changes: 0 additions & 6 deletions deployment/playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@
version: "{{ git_ref }}"
dest: /fedcloud-dashboard

- name: env file
ansible.builtin.copy:
content: |
DASHBOARD_HOSTNAME=dashboard.cloud.egi.eu
dest: /fedcloud-dashboard/.env

- name: service file
ansible.builtin.copy:
content: |
Expand Down

0 comments on commit 010d13e

Please sign in to comment.