Compare commits

...

4 Commits
main ... main

Author SHA1 Message Date
kosma 9233f5c5b6 README.md: fix caddy tagging
/ build_website (push) Successful in 6s Details
/ build_and_push_container (push) Successful in 7s Details
2025-11-16 20:34:37 +01:00
kosma 7c86a51ed1 server.Dockerfile: use the official docker package from hswro namespace
/ build_website (push) Successful in 6s Details
/ build_and_push_container (push) Successful in 9s Details
2025-11-16 20:32:03 +01:00
kosma b7a56877e0 README.md: add build instructions for build/serve_base 2025-11-16 20:31:30 +01:00
kosma d91f3c28c3 Caddyfile: add redirect for preseed.cfg
/ build_website (push) Successful in 8s Details
/ build_and_push_container (push) Successful in 9s Details
2025-11-16 20:10:35 +01:00
3 changed files with 17 additions and 1 deletions

View File

@ -38,3 +38,18 @@ Edit `_layouts/home.html`
Edit `_data/menus.yml` Edit `_data/menus.yml`
### Rebuilding and pushing the build/serve images
You need to be authenticated to do this. Go to [Applications](https://git.hswro.org/user/settings/applications),
create a new Access Token with Access set to All and scope of Packages: Read and Write. Run `docker login git.hswro.org`,
enter your Forgejo username, use the Access Token as a password. From there you can publish images:
```
docker build -t git.hswro.org/hswro/hswro_org_build -f docker/build.Dockerfile .
docker push git.hswro.org/hswro/hswro_org_build:latest
```
```
docker build -t git.hswro.org/hswro/hswro_org_serve_base:caddy -f docker/serve_base.Dockerfile .
docker push git.hswro.org/hswro/hswro_org_serve_base:caddy
```

View File

@ -1,4 +1,4 @@
FROM git.hswro.org/fleg/serve_base:caddy FROM git.hswro.org/hswro/hswro_org_serve_base:caddy
# Copy the static website # Copy the static website
# Use the .dockerignore file to control what ends up inside the image! # Use the .dockerignore file to control what ends up inside the image!

View File

@ -4,6 +4,7 @@ RUN echo -e ":3000 {\n\
root * /var/www\n\ root * /var/www\n\
header /.well-known* Content-Type application/json\n\ header /.well-known* Content-Type application/json\n\
header /.well-known/matrix/client Access-Control-Allow-Origin *\n\ header /.well-known/matrix/client Access-Control-Allow-Origin *\n\
redir /d-i/trixie/preseed.cfg https://git.hswro.org/HSWro-infra/hswro-vm-provisioning/raw/branch/master/preseed.cfg temporary\n\
file_server\n\ file_server\n\
}" > /etc/caddy/Caddyfile }" > /etc/caddy/Caddyfile
WORKDIR /var/www WORKDIR /var/www