From ee530481a54fc6294750da62cb505f4fa8ac5293 Mon Sep 17 00:00:00 2001 From: Piotr Mankowski Date: Tue, 3 Jan 2023 14:24:36 -0500 Subject: [PATCH] Fixing build issues. --- Dockerfile | 2 +- config/settings.xml.template | 61 ++++++++++++++++++++++++++++++++++++ docker-compose.override.yml | 5 +++ 3 files changed, 67 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fe8c6330e..ee2d55258 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ COPY pom.xml ./ RUN mkdir -p /root/.m2 \ && mkdir /root/.m2/repository -COPY ./resources/settings.xml.template /root/.m2 +COPY ./config/settings.xml.template /root/.m2 RUN sed -e "s/\${your-github-username}/$USERNAME/" -e "s/\${your-github-token}/$TOKEN/" settings.xml.template | tee /root/.m2/settings.xml COPY distro ./distro/ diff --git a/config/settings.xml.template b/config/settings.xml.template index e69de29bb..7276a52a3 100644 --- a/config/settings.xml.template +++ b/config/settings.xml.template @@ -0,0 +1,61 @@ + + + + + github-packages + ${your-github-username} + ${your-github-token} + + + + + + + + github-packages + Github iSantePlus Packages + https://maven.pkg.github.com/isanteplus/isanteplus-packages + + + archetype + OpenMRS Nexus Repository + http://mavenrepo.openmrs.org/nexus/content/repositories/public + + + openmrs-repo-thirdparty + OpenMRS Thirdparty Nexus Repository + http://mavenrepo.openmrs.org/nexus/content/repositories/thirdparty + + + openmrs-bintray-repo + OpeMRS Maven Bintray Repository + https://dl.bintray.com/openmrs/maven/ + + + + + + false + + openmrs-repo + OpenMRS Nexus Repository + http://mavenrepo.openmrs.org/nexus/content/repositories/public + + + openmrs-bintray-repo + OpeMRS Maven Bintray Repository + https://dl.bintray.com/openmrs/maven/ + + + github-packages + + + + github-packages + + + org.openmrs.maven.plugins + + \ No newline at end of file diff --git a/docker-compose.override.yml b/docker-compose.override.yml index a171e8a50..ce7ce6496 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -12,3 +12,8 @@ services: backend: build: context: . + args: + - TOKEN + - USERNAME=pmanko + volumes: + - ~/.m2:/root/.m2