Skip to content

Alpine-based Docker container for securely running the copier template rendering software

License

Notifications You must be signed in to change notification settings

cbp44/docker-copier

Repository files navigation

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/copier copier \
  copy gh:snakemake-workflows/snakemake-workflow-template /usr/src/copier

# Output will be in $(pwd)/workflow

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

About

Alpine-based Docker container for securely running the copier template rendering software

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published