GithubHelp home page GithubHelp logo

oscarmrom / terminus-docker-image Goto Github PK

View Code? Open in Web Editor NEW

This project forked from subhaze/terminus

0.0 1.0 0.0 12 KB

Dockerfile for running Terminus v2.3.0

License: MIT License

Dockerfile 100.00%

terminus-docker-image's Introduction

terminus

Dockerfile for running Terminus

Usage

docker run --rm -it --volume ~/.terminus:/tmp/.terminus --entrypoint terminus oscarmrom/terminus [args...]

The above will mount a local folder to store terminus cache info, such as auth credentials.

Terminus Version 2.3.0

Using Docker Image Locally

Link to Tutorial Site

Here we’re mounting ${HOME}/.terminus:/tmp/.terminus so that we can cache our auth token so we can access our remote sites. You could set this up as a bash function and just call it via terminus with the following:

terminus(){
  docker run -it --rm --volume ${HOME}/.terminus:/tmp/.terminus --entrypoint=terminus oscarmrom/terminus "${@}"
}

The function above sets --entrypoint=terminus so you can use it more naturally, this essentially tells docker to behave like an executable and accept arguments to pass to that executable.

Now you can use it as if it were installed locally: terminus --version, terminus auth:login --machine-token=<your token>, terminus site:list.

terminus-docker-image's People

Contributors

oscarmrom avatar mrusselltombras avatar oromero-rv avatar subhaze avatar

Watchers

James Cloos avatar

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.