From 09966d61394f74ea139e7af33410f943312afc3f Mon Sep 17 00:00:00 2001 From: gl <gero.lueckemeyer@hft-stuttgart.de> Date: Tue, 24 Oct 2023 12:28:07 +0200 Subject: [PATCH] added initial test setup with docker compose, jdk17/junit5 testrunner and calculator exercise --- docker-compose.yaml | 47 +++++++++++++++++++++++++++++++++++++++++++++ student.txt | 1 + teacher-dta.txt | 1 + 3 files changed, 49 insertions(+) create mode 100644 docker-compose.yaml create mode 100644 student.txt create mode 100644 teacher-dta.txt diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..881f277 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,47 @@ +version: '2' +services: +services: + mariadb-dtt: + container_name: moodledb-dtt + image: docker.io/bitnami/mariadb:11.1 + environment: + # ALLOW_EMPTY_PASSWORD is recommended only for development. + - ALLOW_EMPTY_PASSWORD=yes + - MARIADB_USER=bn_moodle + - MARIADB_DATABASE=bitnami_moodle + - MARIADB_CHARACTER_SET=utf8mb4 + - MARIADB_COLLATE=utf8mb4_unicode_ci + volumes: + - 'mariadb_data_dtt:/bitnami/mariadb' + moodle-dtt: + container_name: moodle-dtt + image: docker.io/bitnami/moodle:4.3 + ports: + - '81:8080' + - '444:8443' + environment: + - MOODLE_DATABASE_HOST=mariadb-dtt + - MOODLE_DATABASE_PORT_NUMBER=3306 + - MOODLE_DATABASE_USER=bn_moodle + - MOODLE_DATABASE_NAME=bitnami_moodle + # ALLOW_EMPTY_PASSWORD is recommended only for development. + - ALLOW_EMPTY_PASSWORD=yes + volumes: + - 'moodle_data_dtt:/bitnami/moodle' + - 'moodledata_data_dtt:/bitnami/moodledata' + depends_on: + - mariadb-dtt + backend: + container_name: backendcomposedtt + image: hftstuttgart/dta-backend:latest + user: "${UID}:${GID}" + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - '/tmp/dtt-tests:/tmp/dtt-tests' +volumes: + mariadb_data_dtt: + driver: local + moodle_data_dtt: + driver: local + moodledata_data_dtt: + driver: local diff --git a/student.txt b/student.txt new file mode 100644 index 0000000..eb7c3fc --- /dev/null +++ b/student.txt @@ -0,0 +1 @@ +dtt::https://transfer.hft-stuttgart.de/gitlab/dtt/example_openjdk11-junit5-calculator-submission.git::none::none \ No newline at end of file diff --git a/teacher-dta.txt b/teacher-dta.txt new file mode 100644 index 0000000..276c40c --- /dev/null +++ b/teacher-dta.txt @@ -0,0 +1 @@ +dtt::https://transfer.hft-stuttgart.de/gitlab/dtt/example_openjdk11-junit5-calculator-test.git::none::none::hftstuttgart/dta-jdk17-junit5-testrunner:latest -- GitLab