forked from ruangrupa/lumbung.space
58 lines
1.7 KiB
Markdown
58 lines
1.7 KiB
Markdown
# living room
|
|
|
|
[![Build Status](https://drone.autonomic.zone/api/badges/ruangrupa/living-room/status.svg?ref=refs/heads/main)](https://drone.autonomic.zone/ruangrupa/living-room)
|
|
|
|
> A new attempt to bring together the ideas of the "splash" page, "portal" page
|
|
> and a comfortable digital "living room" experience for lumbung[dot]space.
|
|
> This is a work in progress. The end goal of this is to have a new design and
|
|
> implementation for [`lumbung.space`](https://lumbung.space) for January 2022.
|
|
|
|
## FAQ
|
|
|
|
### How does the CI/CD work?
|
|
|
|
[`.drone.yml`](./.drone.yml) builds the [`Dockerfile.hugo`](./Dockerfile.hugo)
|
|
and the [`Dockerfile.scripts`](./Dockerfile.scripts) and then deploys the
|
|
[`compose.yml`](./compose.yml) stack using `docker stack deploy`.
|
|
|
|
### How often is the content regenerated?
|
|
|
|
See the `sleep ...` statements in the [`compose.yml`](./compose.yml).
|
|
|
|
## Hacking
|
|
|
|
### Generate the site
|
|
|
|
[Install Hugo](https://gohugo.io/getting-started/installing/) and `hugo serve --watch`
|
|
|
|
### Generate `lumbung[dot]space` posts
|
|
|
|
Do this manually first:
|
|
|
|
```
|
|
mkdir -p content
|
|
python3 -m venv .venv && source .venv/bin/activate
|
|
pip install git+https://git.autonomic.zone/ruangrupa/lumbunglib
|
|
|
|
export CALENDAR_URL="https://cloud.lumbung.space/remote.php/dav/public-calendars/WbnHM8YdCkKT6bcT?export"
|
|
export OUTPUT_DIR=content/calendar
|
|
lumbunglib-cal
|
|
|
|
export OUTPUT_DIR=content/video
|
|
lumbunglib-vid
|
|
```
|
|
|
|
Afterwards, you can automatically run it with `make gen`.
|
|
|
|
### Manually deploying new images
|
|
|
|
- `docker login -u decentral1se -p $(logins/dockerhub/decentral1se)`
|
|
- `make push-hugo`
|
|
- `make push-scripts`
|
|
|
|
### Manually deploy the site
|
|
|
|
(requires `lumbung.space` docker context)
|
|
|
|
- `make deploy`
|