Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package publisher as container #97

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM maven:3.6.3-jdk-11 as build
WORKDIR /build
COPY lib ./lib
COPY pom.xml ./pom.xml
COPY org.hl7.fhir.publisher.cli/pom.xml ./org.hl7.fhir.publisher.cli/pom.xml
COPY org.hl7.fhir.publisher.core/pom.xml ./org.hl7.fhir.publisher.core/pom.xml
RUN mvn dependency:go-offline
COPY . .
RUN mvn install

FROM openjdk:11-jre-buster
WORKDIR /usr/src/app

RUN apt-get update && \
apt-get install -y --no-install-recommends ruby ruby-all-dev build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
gem install jekyll

COPY --from=build /build/org.hl7.fhir.publisher.cli/target/org.hl7.fhir.publisher.cli-*-SNAPSHOT.jar /usr/src/app/org.hl7.fhir.publisher.cli.jar
ENTRYPOINT ["java", "-jar", "/usr/src/app/org.hl7.fhir.publisher.cli.jar"]
CMD ["-?"]
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
HAPI FHIR - HL7 FHIR Core Artifacts
===================================
# HAPI FHIR - HL7 FHIR Core Artifacts

# Building this Project
## Building this Project

This project uses [Apache Maven](http://maven.apache.org) to build. To build:

```
```sh
mvn install
```

Note that unit tests will run, but are currently not set to fail the build as they do not all pass. This is being worked on.

To skip unit tests:

```
```sh
mvn -Dmaven.test.skip install
```

== Maintenance
### Docker Build

```sh
docker build -t fhir-ig-publisher:test .
```

## Maintenance

This project is maintained by Grahame Grieve and Lloyd Mckenzie on behalf of the FHIR community.
This project is maintained by Grahame Grieve and Lloyd Mckenzie on behalf of the FHIR community.