-
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.
- Loading branch information
Andrei Neagu
committed
Nov 30, 2021
1 parent
833fb53
commit 9d23b22
Showing
1 changed file
with
44 additions
and
9 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,24 +1,59 @@ | ||
FROM docker:20.10.11 | ||
FROM nvidia/cudagl:10.2-runtime-ubuntu18.04 | ||
|
||
LABEL org.opencontainers.image.authors="[email protected]" | ||
LABEL org.opencontainers.image.source="https://github.com/ITISFoundation/ci-service-integration-library" | ||
LABEL org.opencontainers.image.licenses="MIT" | ||
|
||
ARG REPO_NAME="https://github.com/GitHK/osparc-simcore-forked.git" | ||
ARG BRANCH_NAME="service-integration-library-additions" | ||
ARG COMMIT_SHA="a2413944443f03074866d23172b32249140bd288" | ||
ARG CLONE_DIR="/opsarc" | ||
ARG PYTHON_VERSION="3.8.10" | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# install & activate python virtuelenv | ||
ENV VIRTUAL_ENV=/opt/venv | ||
ENV PATH="$VIRTUAL_ENV/bin:$PATH" | ||
RUN apk add git python3 py3-pip docker-compose && \ | ||
python3 -m venv $VIRTUAL_ENV && \ | ||
# cloning and and selecting branch | ||
pip install --no-cache-dir --upgrade pip && \ | ||
git clone -n ${REPO_NAME} ${CLONE_DIR} && \ | ||
#Set of all dependencies needed for pyenv to work on Ubuntu | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
make \ | ||
build-essential \ | ||
libssl-dev \ | ||
zlib1g-dev \ | ||
libbz2-dev \ | ||
libreadline-dev \ | ||
libsqlite3-dev \ | ||
wget \ | ||
ca-certificates \ | ||
curl \ | ||
llvm \ | ||
libncurses5-dev \ | ||
xz-utils \ | ||
tk-dev \ | ||
libxml2-dev \ | ||
libxmlsec1-dev \ | ||
libffi-dev \ | ||
liblzma-dev \ | ||
mecab-ipadic-utf8 \ | ||
git | ||
|
||
# Set-up necessary Env vars for PyEnv | ||
ENV PYENV_ROOT="$HOME/.pyenv" | ||
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH | ||
# Install pyenv | ||
RUN set -ex && \ | ||
curl https://pyenv.run | bash && \ | ||
pyenv update && \ | ||
pyenv install ${PYTHON_VERSION} && \ | ||
pyenv global ${PYTHON_VERSION} && \ | ||
pyenv rehash && \ | ||
python --version | ||
|
||
# cloning and installing ooil | ||
RUN git clone -n ${REPO_NAME} ${CLONE_DIR} && \ | ||
cd ${CLONE_DIR} && \ | ||
git checkout -b ${BRANCH_NAME} ${COMMIT_SHA} && \ | ||
# install ooil and requirements | ||
cd ${CLONE_DIR}/packages/service-integration && \ | ||
pip install --no-cache-dir --upgrade pip && \ | ||
pip install --no-cache-dir -r requirements/prod.txt && \ | ||
pip install --no-cache-dir . && \ | ||
cd / && \ | ||
|