Giter Club home page Giter Club logo

image-server-practice's Introduction

image-server-practice

requiremenst.txt : dependant modules needed to be installed after starting venv

source .env/bin/activate && pip3 install -r requirements.txt

virtualenv path could differ by environments

Docker Setup

~#### Setup & Connect to docker machine ~

from https://docs.docker.com/machine/get-started/

~docker-machine create --driver virtualbox default~
~docker-machine env~
~eval $(docker-machine env)~

Setup port forwarding rule for VM -> docker engine(inside VM)

VBoxManage modifyvm default --natpf1 "pf1,tcp,,8000,,8000"

Start docker machine docker-machine start default

Build docker-compose

docker-compose down
docker-compose build 
docker-compose run web python3 manage.py migrate
docker-compose up

Accessing django server

First, find local ip address for VirtualBox machine(Docker Machine)

docker-machine ls

or

docker-machine ip default

In local environment, access the server through the ip address & port ex)

`http://192.168.99.100:3000'

-> this is available in LAN environment too.

-- for testing CD

image-server-practice's People

Watchers

 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.