SNRK-100: Fix local problems with docker, Update scripts

This commit is contained in:
Kirill Grachev 2023-05-22 21:57:46 +03:00
parent 156ef5ce0f
commit 0bc0f63131
2 changed files with 5 additions and 6 deletions

View File

@ -16,10 +16,10 @@ COPY . .
RUN ./requirments.sh
RUN ./gradlew clean build
RUN bash -c "source ~/.sdkman/bin/sdkman-init.sh && ./gradlew clean build"
EXPOSE 8080
RUN mkdir -p ~/.aws/ && ln -s /run/secrets/credentials.json ~/.aws/credentials.json
CMD ./gradlew :snark-main:run_server
CMD bash -c "source ~/.sdkman/bin/sdkman-init.sh && ./gradlew :snark-main:run_server"

View File

@ -5,8 +5,6 @@ set -e
apt-get update
apt-get install -y sudo
sudo apt-get install -y kotlin
for dir in ./*/
do
if [[ $dir == *'snark'* ]]
@ -17,8 +15,9 @@ do
then
cd ci
./requirments.sh
if [[ -f requirements.sh ]]; then
./requirments.sh
fi
cd ..
fi