Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store the saved_notebook in .docker #75

Merged
merged 1 commit into from
Oct 28, 2022

Conversation

shankari
Copy link
Contributor

Just like the other scheduled tasks

Testing done:

  • Built the containers and ran the script
root@e51aa2d75fb0:/usr/src/app# bash .docker/start_notebook.sh
/usr/src/app/e-mission-server /usr/src/app
DB host = db
/usr/src/app
{
    "timeseries": {
        "url": "db",
        "result_limit": 100000
    }
}
Web host = 0.0.0.0
/usr/src/app/e-mission-server /usr/src/app
/usr/src/app/e-mission-server
base                     /root/miniconda-4.12.0
emission              *  /root/miniconda-4.12.0/envs/emission

/usr/src/app
Running crontab without user interaction, setting python path

All locations appear to be fixed

viz_scripts//docker/Dockerfile.dev:ADD docker/start_notebook.sh /usr/src/app/.docker/start_notebook.sh
viz_scripts//docker/Dockerfile.dev:RUN chmod u+x /usr/src/app/.docker/start_notebook.sh
viz_scripts//docker/Dockerfile.dev:CMD ["/bin/bash", "/usr/src/app/.docker/start_notebook.sh"]
viz_scripts//Dockerfile:ADD docker/start_notebook.sh /usr/src/app/.docker/start_notebook.sh
viz_scripts//Dockerfile:RUN chmod u+x /usr/src/app/.docker/start_notebook.sh
viz_scripts//Dockerfile:CMD ["/bin/bash", "/usr/src/app/.docker/start_notebook.sh"]

Just like the other scheduled tasks

Testing done:
- Built the containers and ran the script

```
root@e51aa2d75fb0:/usr/src/app# bash .docker/start_notebook.sh
/usr/src/app/e-mission-server /usr/src/app
DB host = db
/usr/src/app
{
    "timeseries": {
        "url": "db",
        "result_limit": 100000
    }
}
Web host = 0.0.0.0
/usr/src/app/e-mission-server /usr/src/app
/usr/src/app/e-mission-server
base                     /root/miniconda-4.12.0
emission              *  /root/miniconda-4.12.0/envs/emission

/usr/src/app
Running crontab without user interaction, setting python path
```

All locations appear to be fixed

```
viz_scripts//docker/Dockerfile.dev:ADD docker/start_notebook.sh /usr/src/app/.docker/start_notebook.sh
viz_scripts//docker/Dockerfile.dev:RUN chmod u+x /usr/src/app/.docker/start_notebook.sh
viz_scripts//docker/Dockerfile.dev:CMD ["/bin/bash", "/usr/src/app/.docker/start_notebook.sh"]
viz_scripts//Dockerfile:ADD docker/start_notebook.sh /usr/src/app/.docker/start_notebook.sh
viz_scripts//Dockerfile:RUN chmod u+x /usr/src/app/.docker/start_notebook.sh
viz_scripts//Dockerfile:CMD ["/bin/bash", "/usr/src/app/.docker/start_notebook.sh"]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant