Code Monkey home page Code Monkey logo

docker-copier's Introduction

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

docker-copier's People

Contributors

cbp44 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ejoosterop

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.