Public Repository

Last pushed: 2 years ago
Short Description
freight-server inside a docker container, for self-contained build acceleration.
Full Description

freighter (Docker + Freight-Server)

Self-contained cache server for 'freight-server' NPM package, providing NPM install acceleration.

Container installs:

  • Latest supported NodeJS 5.x
  • Redis
  • Various supporting requirements (Including full yum update)

Usage

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.

Feature Todo List

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:

  • Set the initial password via an environment variable (requires
    dynamically writing out a config file and a bit of sed work)

Other suggestions also welcome, but this is primarily a docker container
of personal convienience.

Leveraging 'freight'

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/
Docker Pull Command
Owner
bringthedip

Comments (0)