Libreschool website
Go to file
2023-12-03 18:05:10 +01:00
.gitea/workflows daily vulnerability scanner 2023-12-02 22:51:40 +01:00
archetypes initial commit 2023-11-28 23:04:12 +01:00
content missing url 2023-12-03 13:36:50 +01:00
docker/rootfs/etc/nginx feed url rewrite 2023-12-03 18:05:10 +01:00
layouts/partials fix footer link 2023-12-03 11:36:33 +01:00
static added robots.txt and favicon 2023-12-01 00:23:32 +01:00
themes added theme, maybe 2023-11-28 23:18:50 +01:00
urls url check script 2023-12-02 23:54:50 +01:00
.dockerignore docker image support 2023-12-01 22:17:06 +01:00
.gitignore initial commit 2023-11-28 23:04:12 +01:00
.gitmodules added theme, maybe 2023-11-28 23:18:50 +01:00
config.yml fix config 2023-12-03 11:36:52 +01:00
Dockerfile docker image support 2023-12-01 22:17:06 +01:00
hugo-export-libreschool.org.zip initial commit 2023-11-28 23:04:12 +01:00
hugo-export-librescuola.org.zip initial commit 2023-11-28 23:04:12 +01:00
LICENSE Initial commit 2023-11-28 21:43:12 +00:00
README.md updated docs 2023-12-02 22:57:35 +01:00

libreschool.org

Libreschool website

Development instructions

Clone repo with the command:

git clone --recurse-submodules ssh://git@git.libreschool.org:1022/LibreSchool/libreschool.org.git
cd libreschool.org

If you did clone this repo in the usual way, you probably missed the theme's git submodule. To download the missing submodule:

cd libreschool.org
git submodule update --init

Then start the hugo live server:

hugo serve

You can produce the complete website with:

hugo

The complete website will be placed in the public directory.

Building the container image

This website can be used as a container image; to do so in docker:

docker build -t libreschool-website .

Then you can run the image:

docker run -d -p 6080:80 libreschool-website

With the above command, the website will be reachable via HTTP to port 6080.

It's also possible do bind mount the container's /logs directory, to expose nginx logs.

Using the container image

Plain docker invocation

docker run -d -p 6080:80 git.libreschool.org/libreschool/libreschool.org:latest

Via docker compose

version: "3.9"
services:
  web:
    image: git.libreschool.org/libreschool/libreschool.org:latest
    restart: always
    container_name: libreschool_website
    volumes:
      - ./logs:/logs
    ports:
      - 6080:80