Coder Social home page Coder Social logo

development-docker-image's Introduction

CircleCI

Development Docker Image

A Docker image to run development commands and tools through. This helps keep the host machine clean of libaries, tools and their numerous versions and also helps keep a consistent set of development tools across a development team and machines.

This repository is put through CircleCI for automated building, testing and deployment to Dockerhub.

What's inside

Usage

To start using this we can directly bash into the container, mounting the current working directory into the container also. This way, we have access to the project and its dependencies such as node_modules and vendor packages. Finally we remove the container when we exit or finish, making it disposable.

  • docker run -it --rm -v $(pwd):/app onefastsnail/development bash

Commands

We can also run a single command through the container, ideal for creating alias or helper scripts for common tasks.

Node / Yarn

  • docker run -it --rm -v $(pwd):/app onefastsnail/development node -v
  • docker run -it --rm -v $(pwd):/app onefastsnail/development yarn install

PHP

  • docker run -it --rm -v $(pwd):/app onefastsnail/development php -v

MySQL

Assuming you have a container named mydb.

  • docker run -it --rm -v $(pwd):/app --link mydb onefastsnail/development mysql --host=mydb --user=root --password=pass

Composer

  • docker run -it --rm -v $(pwd):/app onefastsnail/development composer --version
  • docker run -it --rm -v $(pwd):/app onefastsnail/development composer install

WP CLI

  • docker run -it --rm -v $(pwd):/app onefastsnail/development wp --allow-root --version

development-docker-image's People

Contributors

onefastsnail avatar

Stargazers

 avatar

Watchers

 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.