Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1947 from GabyCT/topic/addgroovy
Browse files Browse the repository at this point in the history
tests: Add groovy and matomo images
  • Loading branch information
GabyCT authored Sep 5, 2019
2 parents 3852374 + b1e1f4c commit a3e6d09
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions integration/popular_docker_hub_images/popular_docker_images.bats
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ setup() {
docker run --rm --runtime=$RUNTIME -i $image bash -c "echo -e 'public class CL{public static void main(String[]a){System.out.println(\"KataContainers\");}}' > CL.java && javac CL.java && java CL"
}

@test "[groovy] run a groovy container" {
image="groovy"
docker run --runtime=$RUNTIME --rm -i -e hola=caracol $image groovy bash -c "groovy -e \"println System.getenv().each{println it}\" | grep 'hola=caracol'"
}

@test "[java file] run an instance in a glassfish container" {
image="glassfish"
docker run --rm --runtime=$RUNTIME -i $image bash -c "echo 'public class T{public static void main(String[]a){System.out.println(\"Test\");}}' > T.java && javac T.java && java T"
Expand Down Expand Up @@ -282,6 +287,11 @@ setup() {
docker run --rm --runtime=$RUNTIME -i -e MYSQL_ROOT_PASSWORD=secretword $image bash -c "cat /etc/mysql/mariadb.cnf | grep character"
}

@test "[matomo]" run a matomo container" [
image="matomo"
docker run --runtime=$RUNTIME --rm -i $image bash -c "php -r 'print(\"Kata Containers\");'"
}
@test "[java application] check memory maven container" {
image="maven"
docker run --rm --runtime=$RUNTIME -i $image bash -c "echo 'public class HW{public static void main(String[]a){System.out.println(\"HelloWorld\");}}' > HW.java"
Expand Down

0 comments on commit a3e6d09

Please sign in to comment.