Skip to content
Snippets Groups Projects
Commit 15c43488 authored by Lennart Kramer's avatar Lennart Kramer
Browse files

Add exception for 2017121800

parent 5219bb80
No related branches found
No related tags found
No related merge requests found
...@@ -93,5 +93,8 @@ RUN for i in $(seq 16); do \ ...@@ -93,5 +93,8 @@ RUN for i in $(seq 16); do \
# Add go webserver # Add go webserver
COPY ./bin/web ${BIN}/goweb COPY ./bin/web ${BIN}/goweb
ARG LIB_PATH=''
ENV GOEMAXIMA_LIB_PATH=$LIB_PATH
CMD rm /dev/tty && cd /tmp && rm --one-file-system -rf * && exec tini ${BIN}/goweb ${BIN}/maxima-optimised CMD rm /dev/tty && cd /tmp && rm --one-file-system -rf * && exec tini ${BIN}/goweb ${BIN}/maxima-optimised
...@@ -14,7 +14,11 @@ IMAGENAME="$5/goemaxima:$3" ...@@ -14,7 +14,11 @@ IMAGENAME="$5/goemaxima:$3"
# check if the image already exists on the server # check if the image already exists on the server
docker pull "${IMAGENAME}" docker pull "${IMAGENAME}"
# build it # build it
if [ "$stack" = "2017121800" ]; then
docker build -t "${IMAGENAME}" --build-arg MAXIMA_VERSION="$2" --build-arg SBCL_VERSION="$1" --build-arg LIB_PATH="$4" --build-arg "/opt/maxima/assets/maximalocal.mac" . || exit 1
else
docker build -t "${IMAGENAME}" --build-arg MAXIMA_VERSION="$2" --build-arg SBCL_VERSION="$1" --build-arg LIB_PATH="$4" . || exit 1 docker build -t "${IMAGENAME}" --build-arg MAXIMA_VERSION="$2" --build-arg SBCL_VERSION="$1" --build-arg LIB_PATH="$4" . || exit 1
fi
echo "${IMAGENAME} wurde erfolgreich gebaut." echo "${IMAGENAME} wurde erfolgreich gebaut."
# testing? # testing?
# push it # push it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment