e-mission / em-public-dashboard

A simple and stupid public dashboard prototype.
BSD 3-Clause "New" or "Revised" License
0 stars 23 forks source link

Move the dockerfile into the primary directory #62

Closed shankari closed 2 years ago

shankari commented 2 years ago

since the AWS version of docker cannot deal with Dockerfiles that are not in the main directory

Testing done:

=> [internal] load build definition from Dockerfile    0.0s
=> => transferring dockerfile: 1.05kB    0.0s
=> [internal] load .dockerignore    0.0s
=> => transferring context: 2B    0.0s
=> [internal] load metadata for docker.io/emission/e-mission-server.dev.server-only:4.0.0    0.0s
=> [internal] load build context    0.0s
=> => transferring context: 95.44kB    0.0s
=> [ 1/16] FROM docker.io/emission/e-mission-server.dev.server-only:4.0.0    0.0s                             => CACHED [ 2/16] ADD docker/environment36.dashboard.additions.yml /    0.0s
=> CACHED [ 3/16] RUN /bin/bash -c "/clone_server.sh"    0.0s                                                 => CACHED [ 4/16] WORKDIR /usr/src/app    0.0s
=> CACHED [ 5/16] RUN /bin/bash -c "cd e-mission-server && source setup/activate.sh && conda env update --name emission --file setup/environment36.notebook.additions.yml"    0.0s
=> CACHED [ 6/16] RUN /bin/bash -c "cd e-mission-server && source setup/activate.sh && conda env update --name emission --file /environment36.dashboard.additions.yml"    0.0s
=> CACHED [ 7/16] RUN mkdir -p /usr/src/app/saved-notebooks    0.0s
=> CACHED [ 8/16] WORKDIR /usr/src/app/saved-notebooks    0.0s
=> CACHED [ 9/16] COPY auxiliary_files ./auxiliary_files    0.0s                                              => CACHED [10/16] COPY bin ./bin    0.0s
=> CACHED [11/16] COPY *.ipynb .    0.0s
=> CACHED [12/16] COPY *.py .    0.0s
=> CACHED [13/16] WORKDIR /usr/src/app    0.0s                                                                => CACHED [14/16] ADD docker/start_notebook.sh /usr/src/app/start_notebook.sh    0.0s
=> CACHED [15/16] RUN chmod u+x /usr/src/app/start_notebook.sh    0.0s                                        => CACHED [16/16] ADD docker/crontab /usr/src/app/crontab    0.0s
=> exporting to image    0.0s
=> => exporting layers    0.0s
=> => writing image sha256:9c2bdf95c1e610699b32ff0660d7711da2addedb6102d19651006b44fbe646fb    0.0s           => => naming to docker.io/em-pub-dash-prod/viz-scripts    0.0s
root@1ecc9859698f:/usr/src/app# cd e-mission-server/
root@1ecc9859698f:/usr/src/app/e-mission-server# source setup/activate.sh
(emission) root@1ecc9859698f:/usr/src/app/e-mission-server# cd ..
(emission) root@1ecc9859698f:/usr/src/app# cd saved-notebooks/
(emission) root@1ecc9859698f:/usr/src/app/saved-notebooks# python bin/update_mappings.py mapping_dictionaries.ipynb >> /var/log/intake.stdinout

(emission) root@1ecc9859698f:/usr/src/app/saved-notebooks# python bin/generate_plots.py generic_metrics.ipynb --date 2021 10 default
About to download config from https://raw.githubusercontent.com/e-mission/nrel-openpath-deploy-configs/main/configs/stage-program.nrel-op.json
Successfully downloaded config with version 1 for Staging environment for testing programs only and data collection URL https://openpath-stage.nrel.gov/api/
Running at 2022-09-16T15:15:45.795641+00:00 with args Namespace(date=[2021, 10], plot_notebook='generic_metrics.ipynb', program='default')