diff --git a/Dockerfile b/Dockerfile index e481fd0..5d27dfd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ RUN ./snark-main/ci/install_java.sh "$JAVA_VERSION" COPY . . -RUN ./requirments.sh +RUN ./requirements.sh RUN bash -c "source ~/.sdkman/bin/sdkman-init.sh && ./gradlew clean build" diff --git a/requirments.sh b/requirements.sh similarity index 69% rename from requirments.sh rename to requirements.sh index 9a73e1a..5bed7ac 100755 --- a/requirments.sh +++ b/requirements.sh @@ -15,8 +15,9 @@ do then cd ci - if [[ -f requirements.sh ]]; then - ./requirments.sh + if [[ -f "requirements.sh" ]]; then + echo "executing sub" + bash -c "./requirements.sh" fi cd .. diff --git a/snark-document-builder/ci/requirments.sh b/snark-document-builder/ci/requirements.sh similarity index 58% rename from snark-document-builder/ci/requirments.sh rename to snark-document-builder/ci/requirements.sh index e5e1a9d..7b8e101 100755 --- a/snark-document-builder/ci/requirments.sh +++ b/snark-document-builder/ci/requirements.sh @@ -1,6 +1,11 @@ +#!/bin/bash + +set -e + sudo apt-get install -y python3 sudo apt-get install -y nodejs sudo apt-get install -y npm -cd ../src/main/nodejs -sudo npm install . \ No newline at end of file +pushd ../src/main/nodejs +npm install . +popd \ No newline at end of file