headnet-docker's Introduction
Using Docker for new Projects (mac users only): I. INSTALLING DOCKER 1. Install Docker on your local machine: For mac users use boot2docker: https://docs.docker.com/installation/mac/ This will install a VM with docker in it and a docker client on your local machine 2. update boot2docker: a. Run Boot2Docker from your Application folder you will get a terminal with somthing like this as output: ... To connect the Docker client to the Docker daemon, please set: export DOCKER_HOST=tcp://192.168.59.103:2376 export DOCKER_CERT_PATH=/Users/mustapha/.boot2docker/certs/boot2docker-vm export DOCKER_TLS_VERIFY=1 .... b. Run : $ boot2docker upgrade NOTE: if you see "bash: update_terminal_cwd: command not found" just copy your /etc/bashrc to ~/.bashrc 3. if you want to ssh to the machine running docker, just type: $ boot2docker ssh II. Run YOUR PROJECT IN A DOCKER CONTAINER 1. Edit Dockerfile and customize it to your need: 2. Edit the app.sh file and customize it to your need: 3. Build a docker image with your project in it $ ./app.sh build This will pull your project to the current directory an build a docker image from it 4. If got errors so fix your Dockerfile and do 3) again 5. run the docker container $ ./app.sh run 6. If got errors so fix your app_start function and/or Dockerfile and do 3) again 7. Now should have a running docker container you can: $ ./app.sh logs #To se what the container is doing $ ./app.sh stop #To stop the container $. ./app.sh ip # to get the container ip adress if you need it 8. Now you can point your browser to your app: $ ./app.sh browse
headnet-docker's People
Forkers
pumpinRecommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.