GithubHelp home page GithubHelp logo

kabirbaidhya / pyodbc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from laudio/pyodbc

0.0 1.0 0.0 110 KB

Docker Image with python 3.7 and pyodbc

Home Page: https://hub.docker.com/r/laudio/pyodbc

License: MIT License

Dockerfile 26.19% Python 47.71% Shell 19.34% Makefile 6.77%

pyodbc's Introduction

pyodbc

Travis LICENSE PRs Welcome

Docker image with python 3.7 and pyodbc. Includes ODBC drivers for MSSQL and PostgreSQL.

https://hub.docker.com/r/laudio/pyodbc

Usage

Pull the image

$ docker pull laudio/pyodbc

Using as a base image

Usually this is expected to be used as a base image for your python app or scripts that requires pyodbc; in such such your Dockerfile might look something like this:

FROM laudio/pyodbc:1.0.4

WORKDIR /source

# Add your source files.
COPY ["app", "./app"]
COPY ["setup.py", "./"]

RUN pip install .

CMD ["python", "app/main.py"]

Development

# 1. Clone this repository.
$ git clone [email protected]:laudio/pyodbc.git

# 2. Go to the cloned path.
$ cd pyodbc

# 3. Build a docker image.
$ make build

# 4. Run the container
$ docker run laudio/pyodbc:<tag>

Testing

You can build the test container image providing the flag --target=test and run it.

# Create .env.test file with your database connection creds
# using the the example file .env.example.
# You'll need to update .env.test with your values after this.
$ cp .env.example .env.test

# Build the test container image and run tests.
$ make clean build test

License

Licensed under MIT.

pyodbc's People

Contributors

kabirbaidhya avatar mesaugat avatar safalpandey avatar

Watchers

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