From c4500873660d4ad4bbc5ca33e292426b6509c700 Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Thu, 30 May 2024 11:59:45 +0300 Subject: [PATCH] docker-compose.yaml: Add working recipe of hugo local deploy We need to bump up version a bit and use different repo, as old one seems not being updated anymore. Signed-off-by: Denys Fedoryshchenko --- kernelci.org/docker-compose.yaml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/kernelci.org/docker-compose.yaml b/kernelci.org/docker-compose.yaml index 4b6cfdda..f7ff129c 100644 --- a/kernelci.org/docker-compose.yaml +++ b/kernelci.org/docker-compose.yaml @@ -1,19 +1,32 @@ # SPDX-License-Identifier: LGPL-2.1-or-later # -# Copyright (C) 2022 Collabora Limited -# Author: Guillaume Tucker +# Copyright (C) 2024 Collabora Limited +# Author: Denys Fedoryshchenko +# +# Description: builds and runs the hugo server with kernelci.org website +# in a docker container, viewable at http://localhost:1313 +# +# Note: +# 1)retrieve all submodules with `git submodule update --init --recursive` +# 2)retrieve all lfs files with `git lfs pull` +# you might need to install git-lfs with `sudo apt install git-lfs` +# 3)run `docker-compose up` to start the server version: '3' services: - - kernelci.org: - container_name: 'kernelci.org' - image: 'klakegg/hugo:0.80.0-ext-debian' + localhugo: + container_name: 'localhugo' + image: 'hubci/hugo:0.97.3' volumes: - '.:/src' ports: - '1313:1313' + # chdir to the source directory + working_dir: '/src' + user: '0:0' command: + - 'hugo' - 'server' - '-D' - '-F' + - '--bind=0.0.0.0'