简体   繁体   English

如何在 docker 容器中本地运行 heroku-buildpack-nginx?

[英]How to run heroku-buildpack-nginx locally in a docker container?

I am trying to run this buildpack: https://github.com/heroku/heroku-buildpack-nginx locally in a docker container following the tutorial.我正在尝试按照教程在 docker 容器中本地运行此 buildpack: https : //github.com/heroku/heroku-buildpack-nginx

When I try to execute the second command after make shell I get this error:当我尝试在 make shell 之后执行第二个命令时,出现此错误:

$ make shell
$ cp bin/nginx-$STACK bin/nginx
$ FORCE=1 bin/start-nginx

cp: cannot stat 'bin/nginx-heroku-18': No such file or directory

I want to be able to start nginx buildpack to test it locally, but I am stuck at this error.我希望能够启动 nginx buildpack 以在本地对其进行测试,但是我遇到了这个错误。 Could someone help me please ?有人可以帮我吗? Thank you谢谢

You could use it with the pack CLI by following this tutorial on Using Heroku Buildpacks with Pack您可以按照使用 Heroku Buildpacks 和 Pack 的教程, 它与pack CLI 一起使用

Pack uses a newer version of the buildpack API, but the tutorial describes how to use an old buildpack with a shim so that it works. Pack 使用较新版本的 buildpack API,但本教程介绍了如何使用带有 shim 的旧 buildpack 以使其正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM