-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/icaresmsMessaging
- Loading branch information
Showing
326 changed files
with
49,429 additions
and
24,014 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 |
---|---|---|
@@ -1,7 +1,22 @@ | ||
FROM udsmdhis2/icare-openmrs:1.0.0 | ||
# First stage: Build with node and other dependencies | ||
FROM openjdk:11 AS build | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y curl gnupg apt-transport-https ca-certificates && \ | ||
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ | ||
apt-get install -y nodejs | ||
|
||
COPY ./docker/glowroot /glowroot | ||
COPY ./docker/setenv.sh bin/ | ||
COPY ./docker/admin.json /glowroot/ | ||
|
||
# Second stage: Use the original OpenMRS image | ||
FROM udsmdhis2/icare-openmrs:1.0.0 | ||
|
||
# Copy the built files from the first stage | ||
COPY --from=build /glowroot /glowroot | ||
COPY --from=build /bin/setenv.sh bin/ | ||
|
||
COPY ./omods/core/omod/target/icare-1.0.0-SNAPSHOT.omod .OpenMRS/modules/ | ||
COPY ./ui/dist/icare-ui webapps/ROOT | ||
#COPY ./docs/build webapps/docs |
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,15 +1,13 @@ | ||
#!/bin/bash | ||
branch=$(git branch | grep \* | cut -d ' ' -f2) | ||
NODE_IMAGE="node:20" | ||
|
||
docker run --rm -w="/app" -v "$(pwd)/ui":/app $NODE_IMAGE npm install --legacy-peer-deps | ||
docker run --rm -w="/app" -v "$(pwd)/ui":/app $NODE_IMAGE npm run build:prod | ||
|
||
docker run -w="/app" -v "$(pwd)/ui":/app udsmdhis2/icare-ui-compiler cp -r /node_modules . | ||
docker run -w="/app" -v "$(pwd)/ui":/app udsmdhis2/icare-ui-compiler npm install | ||
docker run -w="/app" -v "$(pwd)/ui":/app udsmdhis2/icare-ui-compiler npm run build:prod | ||
#cd ../docs | ||
#docker run -w="/app" -v "$(pwd)":/app node:16.14 npm install | ||
#docker run -w="/app" -v "$(pwd)":/app node:16.14 npm run build | ||
#cd .. | ||
#docker run --rm -v maven-repo:/root/.m2 -v $(pwd)/omods/core:/usr/src/omod -w /usr/src/omod maven:3.6.3-openjdk-11-slim mvn clean package -DskipTests | ||
docker run --rm -v $(pwd)/omods/core:/usr/src/omod -w /usr/src/omod udsmdhis2/icare-omod-compiler mvn clean package -DskipTests | ||
|
||
version=$(cat version) | ||
docker build --no-cache -t udsmdhis2/icare-core:$branch-$version . | ||
|
||
# docker build --no-cache -t udsmdhis2/icare-core:local . |
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,4 +1,5 @@ | ||
sh docker/build-local.sh | ||
version=$(cat version) | ||
branch=$(git branch | grep \* | cut -d ' ' -f2) | ||
# docker push udsmdhis2/icare-core:local | ||
docker push udsmdhis2/icare-core:$branch-$version |
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
Oops, something went wrong.