Merge SNARK-MR-22: Docker

This commit is contained in:
Petr Lubar 2023-05-15 16:02:53 +00:00 committed by Space Cloud
commit ac8478678e
No known key found for this signature in database
GPG Key ID: 2F4D45726235F749
4 changed files with 56 additions and 1 deletions

20
.dockerignore Normal file
View File

@ -0,0 +1,20 @@
# .gitignore contents
.gradle/
build/
.idea/
/logs/
!gradle/wrapper/gradle-wrapper.jar
kotlin-js-store
*.iml
# addition to .gitignore
README.md
LICENSE
gradlew.bat
.dockerignore
.gitignore
Dockerfile

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM ubuntu:latest
WORKDIR Snark
COPY . .
RUN ./requirments.sh
RUN ./gradlew build test

27
requirments.sh Executable file
View File

@ -0,0 +1,27 @@
set -e
apt-get update
apt-get install -y sudo
sudo apt-get install -y kotlin
for dir in ./*/
do
if [[ $dir == *'snark'* ]]
then
cd "$dir"
if [[ $(find -type d -name "ci") ]]
then
cd ci
./requirments.sh
cd ..
fi
cd ..
fi
done

View File

@ -8,6 +8,6 @@ class Test {
@Test @Test
fun justWorks() = runBlocking { fun justWorks() = runBlocking {
delay(5) delay(5)
main() //main()
} }
} }