File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ ENV PATH /var/opt/apache-maven/bin:$PATH
77
88ARG IMAGE_TEMPLATE=/image-template
99ARG FUNCTION_TEMPLATE=/function-template
10- ARG servers=1
10+ ARG SERVERS=1
11+ ARG FUNKY_VERSION
1112
1213LABEL io.dispatchframework.imageTemplate="${IMAGE_TEMPLATE}" \
1314 io.dispatchframework.functionTemplate="${FUNCTION_TEMPLATE}"
@@ -24,15 +25,12 @@ WORKDIR /function-server
2425RUN mvn install && cd cp-gen && mvn dependency:build-classpath -Dmdep.outputFile=../cp.txt
2526
2627
27- ENV WORKDIR=/function PORT=8080 SERVERS=$servers FUNKY_VERSION=0.1.2
28+ ENV WORKDIR=/function PORT=8080 SERVERS=${SERVERS} TIMEOUT=300
2829
2930EXPOSE ${PORT}
3031WORKDIR ${WORKDIR}
3132
3233RUN curl -L https://github.com/dispatchframework/funky/releases/download/${FUNKY_VERSION}/funky${FUNKY_VERSION}.linux-amd64.tgz -o funky${FUNKY_VERSION}.linux-amd64.tgz
3334RUN tar -xzf funky${FUNKY_VERSION}.linux-amd64.tgz
3435
35- # OpenFaaS readiness check depends on this file
36- RUN touch /tmp/.lock
37-
3836CMD SERVER_CMD="java -cp target/classes:$(<./cp.txt):$(</function-server/cp.txt) io.dispatchframework.javabaseimage.Entrypoint $(cat /tmp/handler)" ./funky
Original file line number Diff line number Diff line change @@ -5,8 +5,10 @@ set -e -x
55
66cd $( dirname $0 )
77
8- IMAGE=${DOCKER_REGISTRY} /java-base:$( cat version.txt)
9- docker build -t ${IMAGE} .
8+ FUNKY_VERSION=$( jq -r .funky < version.json)
9+
10+ IMAGE=${DOCKER_REGISTRY} /java-base:$( jq -r .tag < version.json)
11+ docker build -t ${IMAGE} --build-arg=FUNKY_VERSION=${FUNKY_VERSION} .
1012if [ -n " $PUSH " ]; then
1113 docker push ${IMAGE}
1214fi
Original file line number Diff line number Diff line change 1+ {
2+ "tag" : " 0.0.13-knative" ,
3+ "funky" : " 0.1.4-knative"
4+ }
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments