This is an automated email from the ASF dual-hosted git repository.
lahirujayathilake pushed a commit to branch agent-framewok-refactoring
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/agent-framewok-refactoring by
this push:
new e4f03e5368 docker file to build airavata cerebrum agent
e4f03e5368 is described below
commit e4f03e5368efe0651584672ac624b177175c3c83
Author: lahiruj <[email protected]>
AuthorDate: Sun Oct 6 01:41:48 2024 -0400
docker file to build airavata cerebrum agent
---
.../deployments/cerebrum/v1l4/agent/Dockerfile | 53 ++++++++++++++++++++++
.../cerebrum/v1l4/agent/build-container.sh | 6 +++
2 files changed, 59 insertions(+)
diff --git
a/modules/agent-framework/airavata-agent/jupyter/deployments/cerebrum/v1l4/agent/Dockerfile
b/modules/agent-framework/airavata-agent/jupyter/deployments/cerebrum/v1l4/agent/Dockerfile
new file mode 100644
index 0000000000..c143fcfce0
--- /dev/null
+++
b/modules/agent-framework/airavata-agent/jupyter/deployments/cerebrum/v1l4/agent/Dockerfile
@@ -0,0 +1,53 @@
+FROM lahiruj/airavata-agent:latest
+
+RUN apt-get update && apt-get install -y \
+ wget \
+ git \
+ build-essential \
+ openmpi-bin \
+ libopenmpi-dev && \
+ apt-get clean
+
+RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
-O /tmp/miniconda.sh
+RUN bash /tmp/miniconda.sh -b -p /opt/conda && rm /tmp/miniconda.sh
+RUN /opt/conda/bin/conda clean -t -i -p -y
+
+ENV PATH=/opt/conda/bin:$PATH
+
+RUN conda create -n agent-env python=3.10 && conda clean -a
+
+RUN /bin/bash -c "source activate agent-env && \
+ conda install -y \
+ ipywidgets=8.1 \
+ jupyter \
+ numba=0.60 \
+ numpy=1.23 \
+ matplotlib=3.7 \
+ openpyxl=3.1 \
+ pandas=1.5 \
+ pyqtgraph \
+ pyyaml=6.0 \
+ requests=2.31 \
+ scipy=1.9 \
+ sqlalchemy \
+ traitlets=5.1 \
+ tqdm=4.66 && \
+ conda clean -a"
+
+RUN /bin/bash -c "source activate agent-env && \
+ pip install \
+ ipytree==0.2 \
+ python-jsonpath \
+ pydantic==2.7 \
+ nest \
+ anndata \
+ allensdk \
+ bmtk \
+ parse \
+ pytree \
+ git+https://github.com/alleninstitute/abc_atlas_access \
+ git+https://github.com/alleninstitute/neuroanalysis \
+ git+https://github.com/alleninstitute/aisynphys"
+
+ENV CONDA_DEFAULT_ENV=agent-env
+ENV PATH=/opt/conda/envs/agent-env/bin:$PATH
diff --git
a/modules/agent-framework/airavata-agent/jupyter/deployments/cerebrum/v1l4/agent/build-container.sh
b/modules/agent-framework/airavata-agent/jupyter/deployments/cerebrum/v1l4/agent/build-container.sh
new file mode 100755
index 0000000000..ce923b3f3d
--- /dev/null
+++
b/modules/agent-framework/airavata-agent/jupyter/deployments/cerebrum/v1l4/agent/build-container.sh
@@ -0,0 +1,6 @@
+cd ../../../../../
+env GOOS=linux GOARCH=amd64 go build
+cp airavata-agent jupyter/deployments/cerebrum/v1l4/agent/airavata-agent-linux
+cd jupyter/deployments/cerebrum/v1l4/agent
+docker build --platform linux/x86_64 -t lahiruj/airavata-cerebrum-agent .
+docker push lahiruj/airavata-cerebrum-agent
\ No newline at end of file