Coder Social home page Coder Social logo

vagrant-static-container's Introduction

vagrant-static-container

This is a vagrant project for docker container which is added static IP by using pipework.

This project deploys Virtualbox VM and Docker container in Virtualbox VM with static private IP.

This project needs 4 private IP addresses for following device.

  • Virtualbox VM
  • bridge for Virtualbox VM
  • Docker container
  • bridge for Docker container

Quick Start

1.) Install dependencies

  • Virtualbox
  • Vagrant

2.) Install plugins

vagrant plugin install vagrant-vbguest
vagrant plugin install dotenv

3.) Clone this project

git clone https://github.com/yukihiko-shinoda/vagrant-static-container.git
cd vagrant-static-container

4.) Create .env file

Please copy .env.dist to .env and set all parameters.

ex.

MAINTAINER="yukhikfuture"
TAG_NAME="my-image"
IP_VIRTUAL_BOX="192.168.11.5"
IP_VIRTUAL_BOX_BRIDGE="192.168.11.254"
IP_DOCKER_CONTAINER="192.168.11.6/24"
IP_DOCKER_CONTAINER_BRIDGE="192.168.11.253/24"

5.) Create Dockerfile

Please add Dockerfile into this directory or copy Dockerfile.dist to Dockerfile and update contents.

6.) Up and Running

vagrant up
vagrant ssh

vagrant-static-container's People

Contributors

yukihiko-shinoda avatar

Watchers

James Cloos 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.