SNRK-100: Fix local problems with docker, Update scripts
This commit is contained in:
parent
156ef5ce0f
commit
0bc0f63131
@ -16,10 +16,10 @@ COPY . .
|
|||||||
|
|
||||||
RUN ./requirments.sh
|
RUN ./requirments.sh
|
||||||
|
|
||||||
RUN ./gradlew clean build
|
RUN bash -c "source ~/.sdkman/bin/sdkman-init.sh && ./gradlew clean build"
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
RUN mkdir -p ~/.aws/ && ln -s /run/secrets/credentials.json ~/.aws/credentials.json
|
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"
|
@ -5,8 +5,6 @@ set -e
|
|||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y sudo
|
apt-get install -y sudo
|
||||||
|
|
||||||
sudo apt-get install -y kotlin
|
|
||||||
|
|
||||||
for dir in ./*/
|
for dir in ./*/
|
||||||
do
|
do
|
||||||
if [[ $dir == *'snark'* ]]
|
if [[ $dir == *'snark'* ]]
|
||||||
@ -17,8 +15,9 @@ do
|
|||||||
then
|
then
|
||||||
|
|
||||||
cd ci
|
cd ci
|
||||||
|
if [[ -f requirements.sh ]]; then
|
||||||
./requirments.sh
|
./requirments.sh
|
||||||
|
fi
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user