GithubHelp home page GithubHelp logo

isabella232 / geo-ml-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from developmentseed/geo-ml-docker

0.0 0.0 0.0 4 KB

Docker Image for Machine Learning with Geospatial Data in Python

Dockerfile 100.00%

geo-ml-docker's Introduction

geo-ml-docker

This docker is built from developmentseed/geolambda image which includes libraries and their dependencies for geospatial processing, such as numpy and gdal.

In addition to the libraries provided by geolambda, geo-ml-docker includes libraries for machine learning such as tensorflow and keras. See all included libraries in requirements.

Docker Commands

On your local machine

  • Build the image

docker build -t geo-ml-docker .
  • Basic use case: Run a shell in a new container

docker run -it geo-ml-docker /bin/bash
  • Advanced use case

Run a jupyter notebook in a new container, expose the port, and mount a volume. Note - this mounts a volume in the current directory so it should be run in the directory where any required files are maintained.

docker run -it -v ${PWD}:/code -p 8888:8888 geo-ml-docker /bin/bash -c "jupyter notebook --debug --ip=* --port=8888 --no-browser --allow-root"

On an AWS EC2 machine

  • Docker installation on the EC2 machine

Follow the AWS's instruction to install Docker on the EC2 machine before you go ahead.

  • Build the image

ssh to the EC2 with your pem, and build the docker image.

docker build -t geo-ml-docker .
  • Run the jupyter notebook EC2

docker run -v ${PWD}:/code -it -p 8888:8888 geo-ml-docker /bin/bash -c "jupyter notebook --debug --ip=* --port=8888 --no-browser --allow-root"
  • Log into the jupyter notebook from your local machine

In another terminal ssh to cloud machine.

ssh -i Your_AWS.pem -L 8888:localhost:8888 [email protected]
  • Open your jupyter notebook on the browser

When you run the notebook the first time, copy and pasted something like http://127.0.0.1::8888/?token=xxxxxx to your browser to open the notebook.

geo-ml-docker's People

Contributors

abarciauskas-bgse avatar geoyi 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.