Skip to content

Commit

Permalink
add build-core.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fahmimahmud committed Jul 7, 2020
1 parent a1ff010 commit 3ca1d00
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
Empty file added .gitignore
Empty file.
11 changes: 10 additions & 1 deletion v1/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ubuntu:16.04

ENV JAVA_VERSION openjdk-8-jdk

RUN apt-get update && apt install $JAVA_VERSION git curl wget -y
RUN apt-get update && apt install $JAVA_VERSION git curl wget jq -y

RUN rm /bin/sh && ln -s /bin/bash /bin/sh

Expand Down Expand Up @@ -40,3 +40,12 @@ RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ENV MAVEN_HOME /opt/maven

# get .m2 repository

RUN mkdir -p /root/.m2/ && \
cd /root/.m2/ && \
git clone https://github.com/kinnara-digital-studio/repository.git

COPY lib/build-core.sh /root
# CMD ["/root/build-core.sh", "run"]
File renamed without changes.
10 changes: 10 additions & 0 deletions lib/build-core.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
KECAK_REPO="[email protected]:kinnarastudio/kecak-workflow.git"
GET_BUILD_NUMBER=$(curl -s 'https://sandbox.kecak.org//web/json/build/info' | jq -r '.buildNumber')

# clone repository if kecak-worflow directory doesn't exist
[ -d kecak-workflow ] || git clone $KECAK_REPO

# build core kecak-workflow
cd kecak-workflow && git checkout $GET_BUILD_NUMBER
cd wflow-app && sh kecak_make.sh

0 comments on commit 3ca1d00

Please sign in to comment.