Save 37% off PRO during our Black Friday Sale! »

Efficient software development with docker-compose

Efficient software development with docker-compose

7bb2f45c0f20cca56738f53cb65ef399?s=128

Christian Mäder

August 29, 2019
Tweet

Transcript

  1. Efficient software development with docker-compose 29.08.2019

  2. @cimnine Von Johann H. Addicks, CC BY-SA 3.0,
 https://commons.wikimedia.org/w/index.php?curid=7734876

  3. @cimnine 1. Get the code (e.g. git clone) 2. Install

    the specific compiler and runtime
 (e.g. Java 11, Ruby 2.6, Python 3.7, NodeJS 12.9, …) 3. Install all required compile-time dependencies
 (e.g. postgresql-dev, webkit-dev, openssl-dev, …) 4. Install the dependencies
 (e.g. bundler, npm install, gradlew assemble, …) 5. Install all required runtime dependencies
 (e.g. PostgreSQL 11, Redis 5, Elasticsearch 7.3, …) 6. Start the application and pray
  4. @cimnine

  5. None
  6. @cimnine Outdated setup instructions Human error while following instructions Accounting

    for differences between platforms
 (on Linux even between distributions) Communicate updates to the setup
  7. @cimnine 1. Install Docker & docker-compose 2. Get the code

    3. Run `docker-compose up` @cimnine
  8. @cimnine

  9. @cimnine git checkout master git checkout future node 10 node

    12 pgSQL 10 pgSQL 11 Java 8 Java 11
  10. @cimnine Simple Instructions ✓ Quick Time-To-Dev ✓ Dev-Env as Code

    ✓ Platform-agnostic ✓
  11. @cimnine

  12. @cimnine

  13. @cimnine Port 8080 Port 8080

  14. https://github.com/nxt-engineering/reception

  15. https://nxt.engineering Christian Mäder https://twitter.com/cimnine https://linkedin.com/cmaeder Demo Code: https://gitlab.com/nxt/public/compose-demo/ Reception: https://github.com/nxt-engineering/reception