Skip to content

Commit

Permalink
Fixing build issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmanko committed Jan 3, 2023
1 parent 810057d commit ee53048
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
61 changes: 61 additions & 0 deletions config/settings.xml.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>github-packages</id>
<username>${your-github-username}</username>
<password>${your-github-token}</password>
</server>
</servers>

<profiles>
<profile>
<repositories>
<repository>
<id>github-packages</id>
<name>Github iSantePlus Packages</name>
<url>https://maven.pkg.github.com/isanteplus/isanteplus-packages</url>
</repository>
<repository>
<id>archetype</id>
<name>OpenMRS Nexus Repository</name>
<url>http://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
</repository>
<repository>
<id>openmrs-repo-thirdparty</id>
<name>OpenMRS Thirdparty Nexus Repository</name>
<url>http://mavenrepo.openmrs.org/nexus/content/repositories/thirdparty</url>
</repository>
<repository>
<id>openmrs-bintray-repo</id>
<name>OpeMRS Maven Bintray Repository</name>
<url>https://dl.bintray.com/openmrs/maven/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>openmrs-repo</id>
<name>OpenMRS Nexus Repository</name>
<url>http://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
</pluginRepository>
<pluginRepository>
<id>openmrs-bintray-repo</id>
<name>OpeMRS Maven Bintray Repository</name>
<url>https://dl.bintray.com/openmrs/maven/</url>
</pluginRepository>
</pluginRepositories>
<id>github-packages</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>github-packages</activeProfile>
</activeProfiles>
<pluginGroups>
<pluginGroup>org.openmrs.maven.plugins</pluginGroup>
</pluginGroups>
</settings>
5 changes: 5 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ services:
backend:
build:
context: .
args:
- TOKEN
- USERNAME=pmanko
volumes:
- ~/.m2:/root/.m2

0 comments on commit ee53048

Please sign in to comment.