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 5
5
docker version || true
6
6
sudo service docker stop || true
7
7
curl -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
+
8
13
docker version
Original file line number Diff line number Diff line change @@ -41,28 +41,28 @@ mvn -B deploy -DaltDeploymentRepository=localStagingDir::default::file://${REP
41
41
42
42
(
43
43
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} .
45
45
)
46
46
47
47
(
48
48
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} .
50
50
)
51
51
52
52
(
53
53
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 .
55
55
)
56
56
57
57
(
58
58
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} .
60
60
)
61
61
62
62
(
63
63
workdir=$( pwd) /runtime
64
64
cd images/build-native
65
- ./docker-build.sh ${workdir}
65
+ ./docker-build.sh ${workdir}
66
66
)
67
67
68
68
(
You can’t perform that action at this time.
0 commit comments