Code Monkey home page Code Monkey logo

swot_bams's Introduction

swot_bams

Instructions for creating a new docker container

  1. Clone this repository and cd to swot_bams
  2. Change the path inside the 'query_all_rivers' in the data_query.py file to full path where data is located
  3. Make sure that the data you want to analyze is in the 'data' folder
  4. change the machine_ip in the data_query.py file to your machine ip address using 'curl_ifconf.me' on terminal
  5. make sure that the base_url in the server function in app.R to be the same as machine_ip
  6. Assuming you already have docker configured on your machine, run docker build -t bams_app .
  7. You want to map the the data repsitory to the container so that it can run analysis on this netcdf data.
  8. Start as docker run -v {full_path}:/usr/local/src/app -p 8080:8080 bams_app .
  9. If you want to run it as a background service without blocking the terminal, pass -d as the extra parameter in (7)

Note: This code works well when the host machine is linux. MacOS will be fixed in future.

swot_bams's People

Contributors

amuhebwa avatar

Watchers

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