-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Stefano Savare <[email protected]>
- Loading branch information
Showing
4 changed files
with
7 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
- main | ||
paths: | ||
- 'README.rst' | ||
- 'docs/*' | ||
- 'docs/source/*' | ||
- '.github/workflows/documentation.yml' | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,6 @@ | ||
Testing Environment | ||
=================== | ||
|
||
We have built a simple online test environment to check the predictions of our models on the subpillars. | ||
You can find it `here <http://test-env.eba-crsiq2wb.us-east-1.elasticbeanstalk.com>`_. | ||
We have a dedicated repository dedicated to our offline and online test environment. | ||
You can find it `here <https://github.com/the-deep/deep-test-environment>`_ | ||
|
||
It is useful to show to externals our results. We plan to add more features to it. | ||
|
||
We have used Streamlit as Python library, and Docker + ECR + Beanstalk as deployment option. | ||
|
||
Deployment | ||
----------------------- | ||
|
||
We use the Github CI to build the test environment image and push it to ECR. | ||
We then use Beanstalk to serve it. | ||
|
||
Building the image | ||
~~~~~~~~~~~~~~~~~~ | ||
|
||
The image is automatically built via the CI. | ||
If you want to change the code, check ``docker/Dockerfile`` and change the variables | ||
``ENTRYPOINT`` and ``CMD``. | ||
Currently the CI downloads the data from | ||
``s3://<DEV_BUCKET>/test-environment/data`` to ``data/streamlit``. If you want to change | ||
the input data, look at that. | ||
|
||
Pushing to ECR | ||
~~~~~~~~~~~~~~ | ||
|
||
It is fully automated and a priori you should not do anything | ||
|
||
Update the image on Beanstalk | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
This step is not automated, and you should do it **every time you want to serve a new image**. | ||
Go in Beanstalk -> Environments -> Test env -> Upload and deploy. | ||
Upload the file ``docker/Dockerrun.aws.json``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
streamlit==0.82.0 | ||
streamlit==0.84.1 | ||
pdfminer==20191125 | ||
nltk==3.6.2 | ||
pandas==1.2.4 | ||
|