Skip to content

Commit

Permalink
Merge pull request #119 from ECLK/kosalag-patch-1
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
sanjiva committed Nov 16, 2019
2 parents 6602ed3 + 5aa9218 commit 943542d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion distributor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ RUN wget https://product-dist.ballerina.io/downloads/1.0.3/ballerina-linux-insta
RUN dpkg -i ballerina-linux-installer-x64-1.0.3.deb
WORKDIR /usr/src/

ENV TZ=Asia/Colombo
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ADD . /usr/src/

RUN ballerina build --skip-tests distributor

CMD ballerina run target/bin/distributor.jar --eclk.hub.db.url=jdbc:mysql://$DB_URL --eclk.hub.db.username=$DB_UN --eclk.hub.db.password=$DB_PW --eclk.hub.db.useSsl=$DB_USE_SSL --eclk.hub.db.encryptionkey=$DB_ENCRYPTION_KEY --eclk.sms.twilio.accountSid=$TWILIO_SID --eclk.sms.twilio.authToken=$TWILIO_AUTHTOKEN --eclk.sms.twilio.source=$TWILIO_SOURCE
CMD ballerina run target/bin/distributor.jar --eclk.hub.db.url=jdbc:mysql://$DB_URL --eclk.hub.db.username=$DB_UN --eclk.hub.db.password=$DB_PW --eclk.hub.db.useSsl=$DB_USE_SSL --eclk.hub.db.encryptionkey=$DB_ENCRYPTION_KEY --eclk.sms.twilio.accountSid=$TWILIO_SID --eclk.sms.twilio.authToken=$TWILIO_AUTHTOKEN --eclk.sms.twilio.source=$TWILIO_SOURCE

0 comments on commit 943542d

Please sign in to comment.