Git Product home page Git Product logo

tools-dev-host's Introduction

Setup VM

  1. Download Virtualbox from https://www.virtualbox.org/wiki/Downloads
  2. Download Vagrant from https://www.vagrantup.com/downloads.html
  3. Move this project to your desired destination
  4. Download centos7-0.0.99.box from the fileserver BLG-FileServer2/98 - Entwicklungsumgebung/web/Dockersetup Nov 2017 and place it into the setup folder.
  5. Navigate via CLI into setup
  6. Execute vagrant up
  7. This might take a few minutes
  8. Now you can log into the VM with vagrant ssh
  9. If you want to shut it down, exit out of the VM-terminal and then execute vagrant halt
  10. Modify your hosts file and let portainer.local point to the VM-IP
  11. Now you can access portainer via http://portainer.local in your browser
  12. Create account on landing page and select local docker setup in the next step
  13. VM is ready for development

Access container shell

Use following command via cli

sudo docker exec -ti [container_name or id] bash

or go on the container in portainer and click on Console in the Container status area.

Setup project on VM

  1. Upload project root directory to /var/projects
  2. cd into /var/projects/[projectname]/setup
  3. Execute sudo docker-compose up -d
  4. Follow setup instruction of specific project

Important notes

  • In development process just start, stop or pause the container. Kill and remove can cause data loss in specific cases.
  • To prevent data loss download and backup volumes. You can list all volumes from a container in the "container detail" page (Volume page in portainer only shows auto generated volumes)
  • In general the first init of an project container stack should be executed via CLI witch docker-compose up. Every task following can be done in portainer.

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.