File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 55docker version || true
66sudo service docker stop || true
77curl -fsSL https://get.docker.com/ | sudo sh
8+ # required for image squashing
9+ cat /etc/docker/daemon.json
10+ echo ' {"experimental":true}' > /etc/docker/daemon.json
11+ sudo service docker restart
12+
813docker version
Original file line number Diff line number Diff line change @@ -41,28 +41,28 @@ mvn -B deploy -DaltDeploymentRepository=localStagingDir::default::file://${REP
4141
4242(
4343 cd images/build
44- ./docker-build.sh --no-cache -t fnproject/fn-java-fdk-build:${BUILD_VERSION} .
44+ ./docker-build.sh --squash -- no-cache -t fnproject/fn-java-fdk-build:${BUILD_VERSION} .
4545)
4646
4747(
4848 cd images/build
49- ./docker-build.sh --no-cache -f Dockerfile-jdk11 -t fnproject/fn-java-fdk-build:jdk11-${BUILD_VERSION} .
49+ ./docker-build.sh --squash -- no-cache -f Dockerfile-jdk11 -t fnproject/fn-java-fdk-build:jdk11-${BUILD_VERSION} .
5050)
5151
5252(
5353 cd runtime
54- docker build --no-cache -t fnproject/fn-java-fdk:${BUILD_VERSION} -f ../images/runtime/Dockerfile .
54+ docker build --squash -- no-cache -t fnproject/fn-java-fdk:${BUILD_VERSION} -f ../images/runtime/Dockerfile .
5555)
5656
5757(
5858 cd runtime
59- docker build --no-cache -f ../images/runtime/Dockerfile-jre11 -t fnproject/fn-java-fdk:jre11-${BUILD_VERSION} .
59+ docker build --squash -- no-cache -f ../images/runtime/Dockerfile-jre11 -t fnproject/fn-java-fdk:jre11-${BUILD_VERSION} .
6060)
6161
6262(
6363 workdir=$( pwd) /runtime
6464 cd images/build-native
65- ./docker-build.sh ${workdir}
65+ ./docker-build.sh ${workdir}
6666)
6767
6868(
You can’t perform that action at this time.
0 commit comments