Git Product home page Git Product logo

dockerdotfiles's Introduction

But

Simplifier l'utilisation de docker toolbox à travers boot2docker (en attendant que Docker pour Windows sorte de sa beta privé).

Initialisation

Créer la machine

docker-machine create default --driver virtualbox

Lancer la machine

docker-machine start && docker-machine ssh

Créer le "bootlocal.sh" dans la VM :

cd /var/lib/boot2docker/ && sudo touch bootlocal.sh && sudo chmod 744 bootlocal.sh && echo "cd /c/Users/Vincent/DockerDotFiles/boot2docker && ./bootlocal.sh"|sudo sudo tee bootlocal.sh

NB : modifiez bien le chemin "/c/Users/Vincent..." pour correspondre à votre installation.

Créer le container docker-compose :

cd /c/Users/<windowsUsername>/<repositoryName>/dockerfiles/docker-compose
docker build -t docker-compose .

C'est fini !

Utilisation normale

Lancer la machine

docker-machine start && docker-machine ssh

Lancer la stack de votre choix

docker-compose up

Explications techniques

Montages

Le dossier utilisateur de Windows est automatiquement monté dans la VM boot2docker (dans /c/Users/...)

Le dossier /var/www est monté par le script bootlocal.sh.

Troubleshooting

Les scripts fonctionnent mal ? Des "?" apparaissent ? -> regarder du côté des caractères de retour à la ligne Windows

  • supprimer les ^M sous vi
  • sous Sublime Text : View > Line Ending > Unix

dockerdotfiles's People

Contributors

vmizoules 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.