Giter Site home page Giter Site logo

smarthi / docker-scaffolding Goto Github PK

View Code? Open in Web Editor NEW

This project forked from data4democracy/docker-scaffolding

0.0 3.0 0.0 10 KB

Template for Docker-based projects

Shell 9.87% JavaScript 5.34% Jupyter Notebook 29.33% Python 46.14% CSS 1.33% HTML 7.99%

docker-scaffolding's Introduction

Template Project

This is a project template that creates a Docker environment with useful containers for the Data For Democracy project.

Docker is a technology that allows you to package up all of the dependencies for a project in a portable way. It's like virtual environments, but extending to the whole OS, not just Python packages.

This template sets up a Node webapp server, Flask webapp server, a Conda environment running Jupyter, and Postgres and MongoDB databases that they can talk to. The idea is that you'll delete the pieces that you don't intend to use (remove them from docker-compose.yml and delete the directories), and customize the ones you do.

To get started:

  1. Install Docker: https://www.docker.com/products/overview

  2. In this directory, run docker-compose up This will take a while the first time you do it, because it's downloading all of the dependencies for all of the subparts of the project. It should be much faster after the first time.

  3. In the output, you should see lines like these, telling you where to connect:

conda_1     |     Copy/paste this URL into your browser when you connect for the first time,
conda_1     |     to login with a token:
conda_1     |         http://localhost:5002/?token=9c010637753fdf9646eb75a3d6b36b0a5e5464e5b5d32df3

flask_1     |  * Running on http://0.0.0.0:5001/ (Press CTRL+C to quit)

node_1      | Running on http://localhost:5003
  1. To stop all of the running services, use CTRL+C.

  2. Data stored in the database will be preserved from run to run.

  3. Code put in source/python will be available to both Conda and the Flask server

  4. If you add something to requirements.txt or packages.json use docker-compose up --build to pick up the new dependencies

docker-scaffolding's People

Contributors

wanderingstar avatar

Watchers

 avatar  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.