-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
1 parent
353f619
commit c450087
Showing
1 changed file
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |