Sign inSign up

gremlin/pkg

By gremlin

•Updated 8 months ago

Docker image for DEB/RPM package building. Source code: https://bitbucket.org/gremlininc/docker-pkg

Image
1

10K+

gremlin/pkg repository overview

  1. Install Docker (Mac) https://docs.docker.com/engine/installation/mac/⁠
  2. Pull the musl-rust docker image docker login docker pull kolton/musl-rust 3a. Build the source (from source dir), will output into your current directory docker run -v (pwd):/volume -w /volume -t kolton/musl-rust:latest cargo build --release 4b. Run an interactive shell in the docker image docker run --cap-add=NET_ADMIN -it kolton/musl-rust git clone cargo build

Cargo Caching:

Create a volume to store the cache docker create -v /cargo --name cargo-cache tianon/true /bin/true

When you run docker, mount the volume docker run .. --volumes-from cargo-cache

Set the CARGO_HOME variable in the image (set in the musl Dockerfile by default) ENV CARGO_HOME="/cargo"

Recommend brew install 'docker-clean' and running 'docker-clean run' to clean up old images.

Tag summary

Content type

Image

Digest

sha256:d966c4144…

Size

193.6 MB

Last updated

8 months ago

docker pull gremlin/pkg:rpm