-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb5e15f
commit b0fdeaa
Showing
21 changed files
with
50 additions
and
559 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
**/node_modules/ | ||
**/node | ||
*.iml | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
**/target/ | ||
**/.DS_Store | ||
**/node_modules/ | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
### Dev Stage | ||
FROM openmrs/openmrs-core:dev as dev | ||
WORKDIR /app | ||
|
||
ENV MVN_ARGS_SETTINGS="-s /usr/share/maven/ref/settings-docker.xml" | ||
ENV MVN_ARGS="install" | ||
|
||
# Copy build files | ||
COPY pom.xml ./ | ||
COPY distro ./distro/ | ||
|
||
# Build the distro | ||
RUN mvn $MVN_ARGS_SETTINGS $MVN_ARGS | ||
|
||
### Run Stage | ||
# Replace 'nightly' with the exact version of openmrs-core built for production (if available) | ||
FROM openmrs/openmrs-core:nightly | ||
|
||
# Do not copy the war if using the correct openmrs-core image version | ||
COPY --from=dev /app/distro/target/sdk-distro/web/openmrs.war /openmrs/distribution/openmrs_core | ||
|
||
COPY --from=dev /app/distro/target/sdk-distro/web/openmrs-distro.properties /openmrs/distribution | ||
|
||
COPY --from=dev /app/distro/target/sdk-distro/web/modules /openmrs/distribution/openmrs_modules | ||
COPY --from=dev /app/distro/target/sdk-distro/web/owa /openmrs/distribution/openmrs_owas | ||
COPY --from=dev /app/distro/target/referenceapplication-distro/openmrs_config /openmrs/distribution/openmrs_config |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
b0fdeaa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rkorytkowski could you be knowing why running
docker-compose build
on this 3.x branch results in this?ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information. If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).
b0fdeaa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dkayiwa it's something with your docker installation. Could you please try upgrading docker and/or restarting
sudo service docker restart
?b0fdeaa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A docker restart did the trick. Thanks @rkorytkowski 👍