Rebuilding Buildstep Image For Dokku From Behind Proxy
I had to change the buildstep image’s docker file to add my proxy. This is because the buildstep image required a proxy before the build to download the python buildpack.
I was rebuilding the buildstep image for dokku with these instructions: https://github.com/progrium/dokku/commit/9ebf453b72cab3a16ea261284236bb7c20ca3a1a#diff-04c6e90faac2675aa89e2176d2eec7d8R101
I’m behind a proxy, so I was getting this error when I ran “sudo make build”:
Cloning into ‘heroku-buildpack-multi’… fatal: unable to access ‘https://github.com/ddollar/heroku-buildpack-multi.git/’: Failed to connect to github.com port 443: Connection timed out
The solution? Replace the Dockerfile in the root of the folder you git cloned with this:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM progrium/cedarish:cedar14 | |
MAINTAINER Jeff Lindsay <progrium@gmail.com> | |
ENV http_proxy http://proxy.myproxy.com:8080/ | |
ENV https_proxy http://proxy.myproxy.com:8080/ | |
ADD ./stack/configs/etc-profile /etc/profile | |
ADD ./builder/ /build | |
RUN xargs -L 1 /build/install-buildpack /tmp/buildpacks < /build/config/buildpacks.txt |