Skip to content

Commit

Permalink
Merge pull request #80 from urviljoshi/kafkahub
Browse files Browse the repository at this point in the history
ballerina download url made as an arg
  • Loading branch information
urviljoshi authored Aug 24, 2021
2 parents fd51f76 + 1701ffd commit 2e59acf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion consolidator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM openjdk:11
ARG consolidator_config_url
ARG ballerina_download_url=https://dist.ballerina.io/downloads/swan-lake-beta2/ballerina-linux-installer-x64-swan-lake-beta2.deb
ENV consolidator_config_file_url_env=${consolidator_config_url}
COPY ./target/bin/*.jar consolidator.jar
RUN wget -q --show-progress https://dist.ballerina.io/downloads/swan-lake-beta2/ballerina-linux-installer-x64-swan-lake-beta2.deb -O ballerina-linux-installer-x64.deb
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;\
Expand Down
4 changes: 3 additions & 1 deletion hub/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM openjdk:11
ARG hub_config_url
ARG ballerina_download_url=https://dist.ballerina.io/downloads/swan-lake-beta2/ballerina-linux-installer-x64-swan-lake-beta2.deb
ENV hub_config_file_url_env=${hub_config_url}
COPY ./target/bin/*.jar hub.jar
EXPOSE 9191
RUN wget -q --show-progress https://dist.ballerina.io/downloads/swan-lake-beta2/ballerina-linux-installer-x64-swan-lake-beta2.deb -O ballerina-linux-installer-x64.deb
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;\
Expand Down

0 comments on commit 2e59acf

Please sign in to comment.