Sign inSign up

cbp44/copier

By cbp44

•Updated almost 5 years ago

Lightweight alpine-based Docker container to securely run copier.

Image
0

949

cbp44/copier repository overview

⁠docker-copier

Lightweight alpine-based Docker container to securely run copier⁠.

You can read the copier documentation here⁠.

⁠Features
  • Based on official python:3.10-alpine image
  • Runs copier as non-root user
  • Default volume configuration persists results back to the host machine
  • Mounts ~/.ssh as read-only inside container so copier can work with your private GitHub repositories
  • Uses multi-stage builds to trim size of final image

View on Docker Hub⁠.

⁠Quick Start

Just pull and run the image from Docker Hub⁠.

# Pull the image
docker pull cbp44/copier:latest

# This should print the version of copier installed
docker run --rm copier --version
⁠Copy a Template

The example usage below creates a new Snakemake workflow from the snakemake-workflow-template⁠ GitHub repository.

# Path where copier output will go
mkdir workflow

docker run --rm -it -v $(pwd)/workflow:/usr/src/dest_path copier \
  copy gh:snakemake-workflows/snakemake-workflow-template /usr/src/dest_path

⁠Build it Yourself

Clone this repository⁠, then build and run the container using docker-compose.

# Clone repository
git clone https://github.com/cbp44/docker-copier

# Build the image
docker-compose build

# Run copier
docker-compose run --rm -it copier \
  copy gh:snakemake-workflows/snakemake-workflow-template /usr/src/dest_path

# Output will be in ./dest_path

Tag summary

Content type

Image

Digest

Size

38.9 MB

Last updated

almost 5 years ago

docker pull cbp44/copier