GithubHelp home page GithubHelp logo

donleoz / docker-python-oracle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from egojason/docker-python-oracle

0.0 0.0 0.0 59.15 MB

This docker image serves as an environment to execute python scripts with oracle database connection.

HTML 47.00% Python 9.25% Shell 43.75%

docker-python-oracle's Introduction

docker-python-oracle

Inspired by valudio/docker-python-flask-oracle
This docker image serves as an environment to execute python scripts with oracle database connection.

build

docker build -t web .

run

docker run -d -p 80:5000 --name web -v <host-absolute-path>:/opt/data/api web

Notes for users using Docker Machine

host-absolute-path: directory on Docker Engine's host

If you are using Docker Machine on Mac or Windows, your Docker Engine daemon has only limited access to your macOS or Windows filesystem. Docker Machine tries to auto-share your /Users (macOS) or C:\Users (Windows) directory.

On macOS:

docker run -v /Users/<path>:/<container path> ...

On Windows:

docker run -v c:\<path>:c:\<container path>

In the case of VirtualBox you need to make the host folder available as a shared folder in VirtualBox. Then, you can mount it using the Docker -v flag.

At this time Docker Machine is a virtual machine running under VirtualBox in your machine, so to expose your application port you need to map your virtual machine port to your host port.

docker-machine stop default

Option 1 - Use the VirtualBox interface

  • Open VirtualBox Manager
  • Select your Docker Machine VirtualBox image (e.g.: default)
  • Open Settings -> Network -> Advanced -> Port Forward
  • Add your app name, the desired host port (e.g.: 80) and your Guest port (e.g.: 80)

Option 2 - Use the VirtualBox command line

VBoxManage modifyvm "default" --natpf1 "web,tcp,,80,,80"
docker-machine start default

docker-python-oracle's People

Contributors

egojason avatar mischaherbrand avatar robertohuertasm 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.