Coder Social home page Coder Social logo

docker-driven-development's Introduction

Docker Driven Development Example

See slides for details.

This is an example of configuring your own docker development environment from scratch.

The code base here should not be used in production and may contain security vulnerabilities. Much of the laravel application is meant to bypass authentication and allow anonymous authorization to services for the purposes of the presentation.

Minimum Requirements

  • Docker 18.06ce running
    • Windows 10+: Docker for Windows
    • MacOS Sierra: Docker for Mac
    • Linux: docker, docker-compose from your distro. or binaries compiled yourself.

Getting Started

  1. Open a terminal window such as Terminal.app or Git-Bash.
    • Note: Linux users may need a python environment setup with docker-compose.
  2. Clone repository: git clone https://github.com/mradcliffe/docker-driven-development.git
  3. Change directory into this repository: cd docker-driven-development
  4. Install front-end dependencies: npm install
  5. Install back-end dependencies: mkdir database/{seeds,factories} && mkdir -p storage/framework/{sessions,views,cache} && composer install
  6. Start: docker-compose up -d.
  7. Run: docker exec docker-driven-development_web_1 ./artisan migrate:refresh
  8. Run: npm start

Stopping / Destroying

  • Run docker-compose stop to stop containers.
  • Run docker-compose down to destroy all containers, but keep any volumes.
  • Run docker-compose down --volume to destroy all containers and volumes.

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.