Install a remote repository locally to be served via SPDY Push.
You'll notice a
Dockerfile located at the root of this repository.
With docker, you should be able to go through the following steps to run the proxy (not yet tested as of v0.1.0):
git clone git://github.com/normalize/proxy.jscd proxy.jsvim Dockerfile # change all the environmental variables# maybe add your own .npmrc filesudo docker build -t myname/normalize-proxy .docker run -p 8080:8080 -d myname/normalize-proxy
If this doesn't work, please let me know!
If you're on a UNIX platform,
you don't need to use Docker!
Just look at the
Dockerfile and set the same environmental variable.
After that, running
npm start should work:
git clone git://github.com/normalize/proxy.jscd proxy.jsnpm iexport PORT=8888npm start
To access private repositories, you must either add authentication environmental variables or add files.
NORMALIZE_AUTH_GITHUBenv var for basic auth. It should be of the form
<username>:<token>. You should use GitHub OAuth Tokens.
.npmrcfile should be sufficient. For docker, you should add it to the image. This is untested - please let me know if it works.
This server is designed to run on UNIX systems and is thus able to avoid many issues and code bloat.
Since this proxy is not designed to be run on clients, there's no need to support Windows.
Dockerfile will be included to make it easy for you to setup a proxy in a VM.