Skip to content

Commit

Permalink
docker-compose.yaml: Add working recipe of hugo local deploy
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nuclearcat committed May 30, 2024
1 parent 353f619 commit c450087
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions kernelci.org/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Copyright (C) 2022 Collabora Limited
# Author: Guillaume Tucker <[email protected]>
# Copyright (C) 2024 Collabora Limited
# Author: Denys Fedoryshchenko <[email protected]>
#
# 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'

0 comments on commit c450087

Please sign in to comment.