-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: renew cloud computing documentation (#536)
* docs: Added subcategories for cloud running * docs: Corrected `deltares_harbor` page * docs: Added subsection examples guidelines * chore: renamed page title * docs: Renamed subdirectory * docs: Normalized document hyperlinks and inline code snippets * docs: moved argo and kubernetes documentation into subdirectory * docs: Moved docker related documents into different directories * docs: Removed redundant subdirectory * docs: Renamed subdirectory for a more relatable name * chore: Normalized files * chore: Corrected dockerfile and related documentation * docs: Added section for hackathon use case * docs: Small documentation correction * docs: Added draft for subsection * docs: Fix formatting for `hachathon_user_guide` * docs: Updated formatting of documentation and fixed some links * docs: Added reference to installation of `aws` * docs: Fixed formatting of headers in `docker_user_guide.rst`
- Loading branch information
Showing
14 changed files
with
444 additions
and
322 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 |
---|---|---|
@@ -1,38 +1,20 @@ | ||
# Run with `docker build -t ra2ce .` | ||
FROM mambaorg/micromamba:1.4-alpine AS full | ||
# To build this docker run: | ||
# `docker build -t ra2ce` | ||
|
||
# ENV_NAME is starting a bash inm this environment | ||
FROM python:3.10 | ||
|
||
ENV HOME=/home/mambauser | ||
ENV ENV_NAME=ra2ce_env | ||
ENV PYTHONPATH="/home/mambauser:$PYTHONPATH" | ||
RUN apt-get update && apt-get install -y libgdal-dev | ||
|
||
# Setting workspace vbriables | ||
# Copy the directories with the local ra2ce. | ||
WORKDIR /ra2ce_src | ||
COPY README.md LICENSE pyproject.toml poetry.lock /ra2ce_src/ | ||
COPY ra2ce /ra2ce_src/ra2ce | ||
|
||
WORKDIR ${HOME} | ||
USER mambauser | ||
# RUN apt-get -qq update && apt-get install --yes --no-install-recommends libgdal-dev libgeos-dev libproj-dev && apt-get -qq purge && apt-get -qq clean && rm -rf /var/lib/apt/lists/* | ||
COPY .config/docker_environment.yml pyproject.toml README.md ${HOME}/ | ||
RUN mkdir -p ${HOME}/.jupyter | ||
COPY .config/jupyter/* ${HOME}/.jupyter | ||
# Install the required packages | ||
RUN pip install poetry | ||
RUN poetry config virtualenvs.create false | ||
RUN poetry install --without dev,docs,jupyter | ||
RUN apt-get clean autoclean | ||
|
||
# Creating ra2ce2_env | ||
|
||
RUN micromamba create -f docker_environment.yml -y --no-pyc \ | ||
&& micromamba clean -ayf \ | ||
&& rm -rf ${HOME}/.cache \ | ||
&& find /opt/conda/ -follow -type f -name '*.a' -delete \ | ||
&& find /opt/conda/ -follow -type f -name '*.pyc' -delete \ | ||
&& find /opt/conda/ -follow -type f -name '*.js.map' -delete \ | ||
&& rm docker_environment.yml | ||
COPY examples/ ${HOME}/examples | ||
COPY ra2ce/ ${HOME}/ra2ce | ||
|
||
# Installing notabook and Jupyter lab | ||
# this is now in the docker_environment.yml | ||
|
||
# Expose the Jupyter port | ||
EXPOSE 8080 | ||
|
||
# Start Jupyter Notebook | ||
CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8080", "--allow-root"] | ||
# Define the endpoint | ||
CMD ["python3"] |
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
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.. _setting_up_infrastructure: | ||
|
||
Setting up infrastructure | ||
========================= | ||
|
||
At the moment, the ``ra2ce`` "cloud" infrastructure consists of three main components: | ||
|
||
- Amazon web services `s3 <https://deltares.awsapps.com/>`_. | ||
- Stores data. | ||
- Runs docker components through Kubernetes | ||
- Kubernetes. | ||
- Creates and runs the ``ra2ce`` docker images in containers. | ||
- Runs custom scripts in the related containers. | ||
- Argo. | ||
- "Orchastrates" how a workflow will be run in the s3 using kubernetes. | ||
- Workflows ar ``*.yml`` files describing the node types and resources to use at each step of a cloud run. | ||
|
||
|
||
.. toctree:: | ||
:caption: Table of Contents | ||
:maxdepth: 1 | ||
|
||
kubernetes_deployment | ||
argo_deployment |
Oops, something went wrong.