-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bdd0c83
commit 31e2b75
Showing
6 changed files
with
31 additions
and
21 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM python:3.12-slim-bookworm | ||
|
||
RUN apt update \ | ||
&& apt install -y wget git \ | ||
&& git config --global --add safe.directory '*' | ||
|
||
# Copy the local repo contents | ||
COPY ./requirements.txt /requirements.txt | ||
COPY ./docker/docker-entrypoint.sh /docker-entrypoint.sh | ||
|
||
RUN pip install -r requirements.txt | ||
|
||
# Install Hugo | ||
RUN wget https://github.com/gohugoio/hugo/releases/download/v0.102.3/hugo_extended_0.102.3_Linux-64bit.deb -O /tmp/hugo.deb \ | ||
&& dpkg -i /tmp/hugo.deb | ||
|
||
WORKDIR /work | ||
VOLUME [ "/work" ] | ||
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Docker build support | ||
|
||
To build a container that contains everything required to build and update the website execute the following command. | ||
|
||
`docker build . -f docker/Dockerfile -t homie-site:dev` | ||
|
||
After that the docker image can be used to build the website in the current directory using something like this. | ||
|
||
`docker run --rm -v $PWD:/work homie-site:dev` |
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,5 +1,7 @@ | ||
#!/usr/bin/env bash | ||
set -Eeo pipefail | ||
|
||
cd /work | ||
|
||
./grabrepos.py | ||
hugo |
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 |
---|---|---|
|
@@ -10,4 +10,3 @@ pymdown-extensions==6.0 | |
PyYAML==5.3.1 | ||
six==1.11.0 | ||
smmap2==2.0.5 | ||
tornado==5.1.1 |