Coder Social home page Coder Social logo

rd-docker's Introduction

rd-docker

A client that controls Docker containers in the development environment. It is designed to work alongside Docker Compose and has the objective to make easier common operations docker operations on development environment.

Installation

To install rd-docker type the following in a terminal window:

curl -sSL https://raw.githubusercontent.com/ResultadosDigitais/rd-docker/master/rd-docker-install | sudo sh

It will install rd-docker in your environment and if you use linux it will try to install Docker and Docker Compose as well. On Mac OS X you will need to manually install Docker after rd-docker is installed.

Configuration

To configure rd-docker first be shure to have docker-compose.yml configured on your project folder. Then crate a file named rd-docker.config in your project folder like the following:

MAIN_CONTAINER_NAME="web"
APP_PREFIX="rdstation"

Configuration options

MAIN_CONTAINER_NAME:

The name of the main container on docker-compose.yml. It's the container where the project server runs.

APP_PREFIX:

The prefix which will be used on container and volume names. Example:

Usage

All rd-docker commands should be executed on your project root folder.

Type the following to start your application server:

$ rd-docker start

To access a bash console inside your main container use the following command:

$ rd-docker console

To stop and remove all your project containers use the following:

$ rd-docker stop

If you want to run any other command on any of your Docker Compose containers use the following:

$ rd-docker exec "container name" "command"

These are the most common rd-docker commands. To see a list of all commands type the following:

$ rd-docker help

Troubleshooting

If rd-docker says that docker or docker-compose commands doesn't exist it means the there was some problem on docker automatic installation. When it occurs you must install them manually. Go to the following links to know more about manual installation:

Docker Engine instalation (Linux)

Docker Compose instalation (Linux)

Docker Toolbox instalation (Mac OS X 10.9+)

rd-docker's People

Contributors

geisonbiazus avatar pcasaretto avatar lucaskds avatar

Watchers

James Cloos avatar Léo Moraes avatar  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.