freight-server inside a docker container, for self-contained build acceleration.
428
Self-contained cache server for 'freight-server' NPM package, providing NPM install acceleration.
Container installs:
Run the container from a Docker host with:
docker run -d -p 8872:8872 bringthedip/freighter
On first startup, use docker logs (container-id) to find out what your freight-server password is. At this point in time freight-server does not support passing this option value as an environment variable.
This list is only for the container. The underlying freight-server and freight projects are not mine, so please check out the site linked below.
I'd happily accept pull requests for any of the following:
Other suggestions also welcome, but this is primarily a docker container of personal convienience.
For your NodeJS build server or desktop, set some environment variables:
export FREIGHT_URL=http://your-freight-server:8872
export FREIGHT_PASSWORD=your-password-string
You'll need to install the client with:
npm install -g freight
For the first time using a registry, you can let freight know about your repo:
(from project working directory)
freight track https://github.com/my-org/my-project.git
freight create
Then in each subsequent build, you need only to:
freight
The freight-server will asynchronously rebuild a tarball of npm dependencies for production and development for your project, so may not have anything initially. For more information on freight and freight-server, please see:
https://github.com/node-freight/
Content type
Image
Digest
Size
278 MB
Last updated
over 10 years ago
docker pull bringthedip/freighter