Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ninech/buildpack-static-confgen
https://github.com/ninech/buildpack-static-confgen
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ninech/buildpack-static-confgen
- Owner: ninech
- License: apache-2.0
- Created: 2023-12-05T15:56:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-23T14:07:04.000Z (9 months ago)
- Last Synced: 2024-06-21T08:20:29.522Z (7 months ago)
- Language: Go
- Size: 304 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# buildpack-static-confgen
This buildpack builds upon the [Paketo nginx
Buildpack](https://github.com/paketo-buildpacks/nginx) to automate some of the
most common use-cases where the workspace just contains an `index.html` or
`public/index.html`. It will configure nginx accordingly without any required
parameters. It also supports compilation of JavaScript frontend apps when
grouped with the
[web-servers](https://github.com/paketo-buildpacks/web-servers) buildpack.The `PORT` env variable is required to be set when launching the built
container as nginx will use it to configure the listening port.As this buildpack writes the nginx config which needs to be present in the
build phase of the nginx buildpack, it needs to be ordered before that. Due to
this ordering it's not possible to require the nginx buildpack. For that we
need to use [`ninech/buildpack-static-require`](https://github.com/ninech/buildpack-static-require)
and order it after the nginx/web-servers buildpack.To test the build locally, checkout this repository and then build it with:
```bash
pack build static --path ./integration/testdata/default_app/ \
--builder paketobuildpacks/builder-jammy-base \
--buildpack . \
--buildpack paketo-buildpacks/web-servers \
--buildpack ghcr.io/ninech/buildpack-static-require
```