Skip to content

Commit

Permalink
MOSIP-32454: Dockerfile changes
Browse files Browse the repository at this point in the history
Signed-off-by: HimajaDhanyamraju2 <[email protected]>
  • Loading branch information
HimajaDhanyamraju2 committed May 2, 2024
1 parent b826146 commit 3eb0495
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions consolidator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ ARG ballerina_download_url=https://dist.ballerina.io/downloads/2201.8.6/ballerin
ENV consolidator_config_file_url_env=${consolidator_config_url}
COPY ./target/bin/*.jar consolidator.jar
EXPOSE 9192
RUN apk add --no-cache wget && wget -q --show-progress ${ballerina_download_url} -O ballerina-linux-installer-x64.deb
RUN apk add --no-cache dpkg && dpkg -i ballerina-linux-installer-x64.deb
RUN apk add -q wget dpkg
RUN wget -q --show-progress ${ballerina_download_url} -O ballerina-linux-installer-x64.deb
RUN dpkg -i ballerina-linux-installer-x64.deb
#TODO Link to be parameterized instead of hardcoding
CMD wget -q --show-progress "${consolidator_config_file_url_env}" -O Config.toml;\
java -jar -Xms256m -Xmx2048m ./consolidator.jar ;\
5 changes: 3 additions & 2 deletions hub/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ ARG ballerina_download_url=https://dist.ballerina.io/downloads/2201.8.6/ballerin
ENV hub_config_file_url_env=${hub_config_url}
COPY ./target/bin/*.jar hub.jar
EXPOSE 9191
RUN apk add --no-cache wget && wget -q --show-progress ${ballerina_download_url} -O ballerina-linux-installer-x64.deb
RUN apk add --no-cache dpkg && dpkg -i ballerina-linux-installer-x64.deb
RUN apk add -q wget dpkg
RUN wget -q --show-progress ${ballerina_download_url} -O ballerina-linux-installer-x64.deb
RUN dpkg -i ballerina-linux-installer-x64.deb
#TODO Link to be parameterized instead of hardcoding
CMD wget -q --show-progress "${hub_config_file_url_env}" -O Config.toml;\
java -jar -Xms256m -Xmx2048m ./hub.jar ;\

0 comments on commit 3eb0495

Please sign in to comment.