Skip to content

Conversation

@jacoscaz
Copy link
Contributor

@jacoscaz jacoscaz commented May 4, 2025

This PR automates the management of the environment required for building the website using Docker. It is an alternative to the work started by @Tieske in #12 with the following advantages:

  1. It builds the website using the same Docker-based environment both locally and in GitHub CI.
  2. It uses a simpler approach to dependency management, with Hugo and Git implicitly pinned to the respective versions distributed in the explicitly pinned version of Alpine Linux.
  3. It uses a simpler Dockerfile that doesn't require a dedicated entrypoint script.
  4. It produces a significantly smaller Docker image (~ 48 MB).

Supersedes #12 .

The only thing I have not been able to test so far is the CI workflow. Docker is installed by default in the Ubuntu 22.04 runner so this should work OOTB. EDIT: seems to work fine now that this PR is open and CI is running.

@schaze does this allow you to test build the website locally? It should be as simple as running ./build.sh (assuming you have Docker installed)..

Copy link
Contributor

@Tieske Tieske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works for me

@Tieske Tieske merged commit b75ad4b into homieiot:master May 12, 2025
1 check passed
@Tieske
Copy link
Contributor

Tieske commented May 12, 2025

merged this one first. If the build succeeds, I'll merge #35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants