From d85d8dc37f0f33cd46b8112d9249eaecefe8e0fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=BCckemeyer?= <gero.lueckemeyer@hft-stuttgart.de> Date: Thu, 19 Oct 2023 13:12:55 +0000 Subject: [PATCH] Added first compilation local repo dep and build hint --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3922f35..cdf3a0d 100644 --- a/README.md +++ b/README.md @@ -57,15 +57,25 @@ On some READMEs, you may see small images that convey metadata, such as whether See plugin docs at the Moodle HQ. ## Installation +Assumption: Java JDK 17, maven and docker installed, docker running. + +Only before the first build, add the dependency to unifiedticketing to your local maven repo using the command in +deployunifiedticketingdeptolocalrepo.txt + Build the jar using + export BUILD_NUMBER=<YOUR_BUILD_NUMBER>; mvn clean install Assumption: members of a system group named 'docker' have access rights to the docker socket and daemon. -Then build the docker image using + +Then build the docker image using (Hint: There are backticks in front of 'getent' and after 'f3') + docker build --build-arg AGID=`getent group docker | cut -d: -f3` --build-arg BUILD_NUMBER=$BUILD_NUMBER -t <YOUR_DOCKERHUB_ORGANISATION>/dta-backend:latest . The default image is provided with the organisation hftstuttgart. +Assumption: docker-compose or a new docker version with integrated docker compose running. + Test it without building anything e.g. with Moodle 4.3 using the provided docker-compose.yaml. With this compose file, after Moodle spinup - install the dtt plugin -- GitLab