-
Notifications
You must be signed in to change notification settings - Fork 10
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
Showing
4 changed files
with
60 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM coreoasis/api_server:2.3.9 | ||
|
||
USER root | ||
RUN apt-get update && apt-get -y install git python3-pip && rm -rf /var/lib/apt/lists/* | ||
USER server | ||
|
||
# Install ODS-Tools from git branch (Optional) 'docker build --build-arg ods_tools_branch=develop' | ||
ARG ods_tools_branch | ||
RUN if [ ! -z "$ods_tools_branch" ] ; then \ | ||
apt update && apt install -y git; \ | ||
pip uninstall ods-tools -y; \ | ||
pip install --user --no-warn-script-location -v git+https://git@github.com/OasisLMF/ODS_Tools.git@${ods_tools_branch}#egg=ods-tools; \ | ||
fi |
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,17 @@ | ||
FROM coreoasis/model_worker:2.3.9 | ||
|
||
# Install ODS-Tools from git branch (Optional) 'docker build --build-arg ods_tools_branch=develop' | ||
ARG ods_tools_branch | ||
RUN if [ ! -z "$ods_tools_branch" ] ; then \ | ||
apt update && apt install -y git; \ | ||
pip uninstall ods-tools -y; \ | ||
pip install --user --no-warn-script-location -v git+https://git@github.com/OasisLMF/ODS_Tools.git@${ods_tools_branch}#egg=ods-tools; \ | ||
fi | ||
|
||
# install MDK from git branch (Optional) 'docker build --build-arg oasislmf_branch=develop' | ||
ARG oasislmf_branch | ||
RUN if [ ! -z "$oasislmf_branch" ] ; then \ | ||
apt update && apt install -y git; \ | ||
pip uninstall oasislmf -y; \ | ||
pip install -v git+https://git@github.com/OasisLMF/OasisLMF.git@${oasislmf_branch}#egg=oasislmf[extra]; \ | ||
fi |
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,19 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
ODS_BRANCH='feature/v4_integration' | ||
LMF_BRANCH='feature/oed_v4' | ||
IMG_TAG='oed-4-dev' | ||
|
||
if [ ! -z $ODS_BRANCH ]; then | ||
BUILD_ARGS_WORKER="${BUILD_ARGS_WORKER} --build-arg ods_tools_branch=${ODS_BRANCH}" | ||
BUILD_ARGS_SERVER="${BUILD_ARGS_SERVER} --build-arg ods_tools_branch=${ODS_BRANCH}" | ||
fi | ||
|
||
if [ ! -z $LMF_BRANCH ]; then | ||
BUILD_ARGS_WORKER="${BUILD_ARGS_WORKER} --build-arg oasislmf_branch=${LMF_BRANCH}" | ||
fi | ||
|
||
docker build -f Dockerfile.oed-4_worker $BUILD_ARGS_WORKER -t coreoasis/model_worker:$IMG_TAG . | ||
docker build -f Dockerfile.oed-4_server $BUILD_ARGS_SERVER -t coreoasis/api_server:$IMG_TAG . |
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