Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
PPC-BSC
Software
Deep Health Compss
Commits
4e88485c
Commit
4e88485c
authored
Nov 29, 2021
by
salbiach
Browse files
Upload new Dockerfile
parent
475a45b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
docker/Dockerfile
0 → 100644
View file @
4e88485c
# syntax=docker/dockerfile:1
ARG
ROOT_CONTAINER=compss/compss
FROM
$ROOT_CONTAINER
ENV
CONDA_DIR=/opt/conda
ENV
PATH="${CONDA_DIR}/bin:${PATH}"
ARG
CONDA_MIRROR=https://github.com/conda-forge/miniforge/releases/latest/download
ARG
PYTHON_VERSION='default'
ENV
SHELL=/bin/bash
ENTRYPOINT
["/bin/bash"]
SHELL
["/bin/bash", "-o", "pipefail", "-c"]
EXPOSE
43001
EXPOSE
43002
#COPY fix-permissions /usr/local/bin/fix-permissions
#RUN chmod a+rx /usr/local/bin/fix-permissions
WORKDIR
/tmp
# ---- Miniforge installer ----
# Check https://github.com/conda-forge/miniforge/releases
# Package Manager and Python implementation to use (https://github.com/conda-forge/miniforge)
# We're using Mambaforge installer, possible options:
# - conda only: either Miniforge3 to use Python or Miniforge-pypy3 to use PyPy
# - conda + mamba: either Mambaforge to use Python or Mambaforge-pypy3 to use PyPy
# Installation: conda, mamba, pip
RUN
set
-x
&&
\
# Miniforge installer
miniforge_arch=$(uname -m) && \
miniforge_installer="Mambaforge-Linux-${miniforge_arch}.sh" && \
wget --quiet "${CONDA_MIRROR}/${miniforge_installer}" && \
/bin/bash "${miniforge_installer}" -f -b -p "${CONDA_DIR}" && \
rm "${miniforge_installer}" && \
# Conda configuration see https://conda.io/projects/conda/en/latest/configuration.html
conda config --system --set auto_update_conda false && \
conda config --system --set show_channel_urls true && \
#*************** AQUI AÑADIMOS CANAL DEEP HEALTH ************
if [[ "${PYTHON_VERSION}" != "default" ]]; then mamba install --quiet --yes python="${PYTHON_VERSION}"; fi && \
mamba list python | grep '^python ' | tr -s ' ' | cut -d ' ' -f 1,2 >> "${CONDA_DIR}/conda-meta/pinned" && \
# Using conda to update all packages: https://github.com/mamba-org/mamba/issues/1092
conda update --all --quiet --yes && \
conda clean --all -f -y
#rm -rf "/home/${NB_USER}/.cache/yarn" && \
#fix-permissions "${CONDA_DIR}" && \
#fix-permissions "/home/${NB_USER}"
WORKDIR
/root
RUN
mkdir
pyeddl
&&
\
mkdir
pyeddl/third_party
&&
\
mkdir
pyeddl/third_party/compss_runtime
COPY
code pyeddl/third_party/compss_runtime/
RUN
conda create
--name
pyeddl_pycompss_env
SHELL
["conda", "run", "-n", "pyeddl_pycompss_env", "/bin/bash", "-c"]
RUN
conda config
--add
channels dhealth
&&
\
conda config
--add
channels conda-forge
&&
\
conda config
--set
channel_priority strict
&&
\
conda
install
pyeddl-cpu
RUN
pip
install
pycompss
RUN
apt-get update
&&
\
apt-get
install
-y
apt-utils zip unzip nano
SHELL
["/bin/bash", "-c"]
RUN
echo
"export PATH="
/opt/conda/bin:
$PATH
""
>
~/.bashrc
RUN
echo
"source activate pyeddl_pycompss_env"
>>
~/.bashrc
ENV
PATH /opt/conda/envs/env/bin:$PATH
RUN
source
~/.bashrc
#RUN source ~/.bashrc
#RUN cp /etc/bash.bashrc /etc/profile
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment