-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nginx buildpack overwrite the existing nginx.conf file #667
Comments
I noticed that if you remove:
add add this:
It will now use your nginx.conf file, however it fails to inject in the environment variables etc, so your file can not refer to them and must be a static file. Im not sure if this ever worked? |
Incidentally, the error I have is:
and the config I have at that line is:
Seems that its not correctly substituting the environment variable, after running the container with this command:
|
We face the exact same problem. I'm curios how this ever worked, but it did. Unfortunatly i didn't found a workaround |
I encountered the failing env substitution today. I am using the web-servers build pack with nginx option for an Angular app. The generated |
I do not know what has changed but the same docker command as yesterday suddenly works, i.e. the APP_ROOT variable is being interpolated. So I list here my steps in case it helps anyone: tasks.register<Exec>("buildImage") {
group = "build"
description =
"""
Builds frontend application image using pack CLI with NodeJs and nginx buildpacks
(https://paketo.io/docs/howto/web-servers/#build-and-serve-a-frontend-framework-app).
"""
executable = "pack"
args(
"build",
"my-angular-app",
"--buildpack",
"paketo-buildpacks/[email protected]",
"--builder",
"paketobuildpacks/builder-jammy-base",
"--env-file",
"buildpack.env",
"--verbose"
) ('tis a Gradle task executing pack CLI)
|
nginx buildpack rewrites nginx.conf file, confirmed with
as well as in tekton
content of the nginx.conf in the container is 5.1kb, vs 2.3kb in the repo.
✦ ✗ docker exec -ti app bash cnb@ccb7ee566e67:/workspace$ ls -la nginx.conf -rw-rw-r--. 1 1001 cnb 5102 Jan 26 03:50 nginx.conf cnb@ccb7ee566e67:/workspace$
Expected Behavior
nginx.conf to be reused
Current Behavior
nginx.conf is replaced by the buildpack entirely
Possible Solution
N/A
Steps to Reproduce
project.toml:
place a nginx.conf in the roof of any repo and run
The text was updated successfully, but these errors were encountered: