Libreschool website
Go to file
2023-12-11 23:13:58 +01:00
.gitea/workflows fix vulnscan 2023-12-03 18:12:42 +01:00
archetypes initial commit 2023-11-28 23:04:12 +01:00
content controllo e modifihce alle privacy policy 2023-12-11 23:13:58 +01:00
docker/rootfs/etc/nginx feed url rewrite 2023-12-03 18:05:10 +01:00
layouts menu pagina progetto 2023-12-08 10:58:28 +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 ignoriamo gli archivi mensili 2023-12-06 21:35:34 +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 menu pagina progetto 2023-12-08 10:58:28 +01:00
Dockerfile docker image support 2023-12-01 22:17:06 +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