https://github.com/theohbrothers/docker-pagefind
Dockerized pagefind 🐳
https://github.com/theohbrothers/docker-pagefind
buildx docker generate-dockerimagevariants pagefind
Last synced: over 1 year ago
JSON representation
Dockerized pagefind 🐳
- Host: GitHub
- URL: https://github.com/theohbrothers/docker-pagefind
- Owner: theohbrothers
- License: apache-2.0
- Created: 2023-11-03T20:19:38.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-29T10:47:06.000Z (over 1 year ago)
- Last Synced: 2025-01-25T14:29:07.394Z (over 1 year ago)
- Topics: buildx, docker, generate-dockerimagevariants, pagefind
- Language: PowerShell
- Homepage:
- Size: 43.9 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-pagefind
[](https://github.com/theohbrothers/docker-pagefind/actions/workflows/ci-master-pr.yml)
[](https://github.com/theohbrothers/docker-pagefind/releases/)
[](https://hub.docker.com/r/theohbrothers/docker-pagefind)
Dockerized [pagefind](https://github.com/CloudCannon/pagefind).
## Tags
| Tag | Dockerfile Build Context |
|:-------:|:---------:|
| `:1.3.0`, `:latest` | [View](variants/1.3.0) |
| `:1.2.0` | [View](variants/1.2.0) |
| `:1.1.1` | [View](variants/1.1.1) |
| `:1.0.4` | [View](variants/1.0.4) |
## Usage
Mount the public directory into the container at `/public`.
```sh
docker run --rm -it -v $(pwd)/public:/public theohbrothers/docker-pagefind:1.3.0
```
## Development
Requires Windows `powershell` or [`pwsh`](https://github.com/PowerShell/PowerShell).
```powershell
# Install Generate-DockerImageVariants module: https://github.com/theohbrothers/Generate-DockerImageVariants
Install-Module -Name Generate-DockerImageVariants -Repository PSGallery -Scope CurrentUser -Force -Verbose
# Edit ./generate templates
# Generate the variants
Generate-DockerImageVariants .
```
### Variant versions
[versions.json](generate/definitions/versions.json) contains a list of [Semver](https://semver.org/) versions, one per line.
To update versions in `versions.json`:
```powershell
./Update-Versions.ps1
```
To update versions in `versions.json`, and open a PR for each changed version, and merge successful PRs one after another (to prevent merge conflicts), and finally create a tagged release and close milestone:
```powershell
$env:GITHUB_TOKEN = 'xxx'
./Update-Versions.ps1 -PR -AutoMergeQueue -AutoRelease
```
To perform a dry run, use `-WhatIf`.