GithubHelp home page GithubHelp logo

docker-local-cli's Introduction

docker_local_cli

This is a command line tool to run docker environments locally

Benjamin Allan-Rahill, Intern [email protected]

Logo

Installation

  1. Clone this repo
    git clone <"url">
  1. Navigate to the directory
    cd docker_local_cli
  1. Install
    python3 -m pip3 install .

Usage

$ locker -h

usage: locker [-h] {run,stop,clean-up,drop-in,ssh,add,grab,list} ...

optional arguments:
  -h, --help            show this help message and exit

subcommands:
  {run,stop,clean-up,drop-in,ssh,add,grab,list}
                        Available sub-commands
    run                 Run an environment on your local machine.
    stop                Stop a running environment.
    clean-up            Clean up running containers
    drop-in             Run a command inside the container
    ssh                 Ssh into a running container
    add                 Add a file or dir to the container
    grab                Grab a file or dir from the container
    list                list all the running containers or images

Quick start

$ locker run

usage: locker run [-h] [--cap-add CAP_ADD] [--cmd ENTRYPOINT]
                  [--device DEVICE] [--env IMAGE] [--keys KEYPATH]
                  [--label key val] [--mode {d,ti}] [-p inside outside]

optional arguments:
  -h, --help            show this help message and exit
  --cap-add CAP_ADD     Add linux capabilities
  --cmd ENTRYPOINT      The command you would like to start in the container.
  --device DEVICE       Add device to the container
  --env IMAGE, --image IMAGE
                        [Optional] The environment that you would like to run
                        locally.
  --keys KEYPATH        [Optional] The location in which your SSH keys are
                        stored.
  --label key val       [Optional] A label to append to your container < key,
                        val >
  --mode {d,ti}         [Optional] Run the environment detached or
                        interactive.
  -p inside outside, --ports inside outside
                        [Optional] The ports you would like to use to run the
                        servers on [ssh, RStudio server].

This will run the default RR environment. It will also assume many default values.

Defaults

Environment

  • latest Reproducible Research Environment

SSH Key Location

OSX + Linux:

  • ~/.ssh/

Windows:

  • C:\Users\<username>\.ssh\

Mode

  • d: detached

Ports

RStudio

  • 8787

SSH

  • 2222

If you are already using these ports, Locker will help you reassign them.

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.