progrium / buildpack-nginx

nginx buildpack
Creative Commons Zero v1.0 Universal
42 stars 115 forks source link

cannot deploy with latest buildstep #18

Closed michaelshobbs closed 7 years ago

michaelshobbs commented 9 years ago

As you know, the latest buildstep runs everything as a non-root user. When attempting to deploy the test static app, we're seeing this.

-----> Cleaning up ...
-----> Building test-static-4596 ...
-----> Adding BUILD_ENV to build environment...
-----> Fetching custom buildpack
-----> nginx app detected
remote: E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
remote: E: Unable to lock directory /var/lib/apt/lists/
remote: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
remote: E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
To dokku@dokku.me:test-static-4596
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@dokku.me:test-static-4596'
alexbeletsky commented 9 years ago

@michaelshobbs I'm having exactly the same issue now.. Have you found any workarounds?

alexbeletsky commented 9 years ago

Found that build pack friendly with dokku. Works fine to me.

michaelshobbs commented 9 years ago

@alexbeletsky in dokku we ended up using this fork: https://github.com/yabawock/buildpack-nginx