Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit ec06e50

Browse files
thaJeztahTibor Vass
authored andcommitted
Remove image-based build (for docker engine activate)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 5b8545f) Signed-off-by: Guillaume Lours <guillaume.lours@docker.com> Upstream-commit: 1c83b4a7d6e0263ceb06a1bdf5fb440413af3ee1 Component: packaging
1 parent a00d1a3 commit ec06e50

10 files changed

Lines changed: 33 additions & 359 deletions

File tree

components/packaging/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ tmp
55
artifacts
66
sources
77
*.tar
8-
image-linux*

components/packaging/Jenkinsfile

Lines changed: 30 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,56 @@
11
#!groovy
22

3-
4-
def genBranch(String arch, String branch) {
5-
return [
6-
"${arch}": { ->
7-
stage("Build engine image on ${arch}") {
8-
wrappedNode(label: "linux && ${arch}", cleanWorkspace: true) {
9-
try {
10-
checkout scm
11-
sh("git clone https://github.com/docker/engine.git")
12-
sh("git -C engine checkout $branch")
13-
sh('make ENGINE_DIR=$(pwd)/engine image')
14-
} finally {
15-
sh('make ENGINE_DIR=$(pwd)/engine clean-image clean-engine')
16-
}
17-
}
18-
}
19-
}]
20-
}
21-
223
def branch = env.CHANGE_TARGET ?: env.BRANCH_NAME
234

245
test_steps = [
256
'deb': { ->
267
stage('Ubuntu Xenial Debian Package') {
278
wrappedNode(label: 'ubuntu && x86_64', cleanWorkspace: true) {
28-
checkout scm
29-
sh('git clone https://github.com/docker/cli.git')
30-
sh("git -C cli checkout $branch")
31-
sh('git clone https://github.com/docker/engine.git')
32-
sh("git -C engine checkout $branch")
33-
sh('make VERSION=0.0.1-dev DOCKER_BUILD_PKGS=ubuntu-xenial ENGINE_DIR=$(pwd)/engine CLI_DIR=$(pwd)/cli deb')
9+
try {
10+
checkout scm
11+
sh('git clone https://github.com/docker/cli.git')
12+
sh("git -C cli checkout $branch")
13+
sh('git clone https://github.com/docker/engine.git')
14+
sh("git -C engine checkout $branch")
15+
sh('make -C deb VERSION=0.0.1-dev ENGINE_DIR=$(pwd)/engine CLI_DIR=$(pwd)/cli ubuntu-xenial')
16+
} finally {
17+
sh('make ENGINE_DIR=$(pwd)/engine clean-engine')
18+
}
3419
}
3520
}
3621
},
3722
'rpm': { ->
3823
stage('Centos 7 RPM Package') {
3924
wrappedNode(label: 'ubuntu && x86_64', cleanWorkspace: true) {
40-
checkout scm
41-
sh('git clone https://github.com/docker/cli.git')
42-
sh("git -C cli checkout $branch")
43-
sh('git clone https://github.com/docker/engine.git')
44-
sh("git -C engine checkout $branch")
45-
sh('make VERSION=0.0.1-dev DOCKER_BUILD_PKGS=centos-7 ENGINE_DIR=$(pwd)/engine CLI_DIR=$(pwd)/cli rpm')
25+
try {
26+
checkout scm
27+
sh('git clone https://github.com/docker/cli.git')
28+
sh("git -C cli checkout $branch")
29+
sh('git clone https://github.com/docker/engine.git')
30+
sh("git -C engine checkout $branch")
31+
sh('make -C rpm VERSION=0.0.1-dev ENGINE_DIR=$(pwd)/engine CLI_DIR=$(pwd)/cli centos-7')
32+
} finally {
33+
sh('make ENGINE_DIR=$(pwd)/engine clean-engine')
34+
}
4635
}
4736
}
4837
},
4938
'static': { ->
5039
stage('Static Linux Binaries') {
5140
wrappedNode(label: 'ubuntu && x86_64', cleanWorkspace: true) {
52-
checkout scm
53-
sh('git clone https://github.com/docker/cli.git')
54-
sh("git -C cli checkout $branch")
55-
sh('git clone https://github.com/docker/engine.git')
56-
sh("git -C engine checkout $branch")
57-
sh('make VERSION=0.0.1-dev DOCKER_BUILD_PKGS=static-linux ENGINE_DIR=$(pwd)/engine CLI_DIR=$(pwd)/cli static')
41+
try {
42+
checkout scm
43+
sh('git clone https://github.com/docker/cli.git')
44+
sh("git -C cli checkout $branch")
45+
sh('git clone https://github.com/docker/engine.git')
46+
sh("git -C engine checkout $branch")
47+
sh('make VERSION=0.0.1-dev DOCKER_BUILD_PKGS=static-linux ENGINE_DIR=$(pwd)/engine CLI_DIR=$(pwd)/cli static')
48+
} finally {
49+
sh('make ENGINE_DIR=$(pwd)/engine clean-engine')
50+
}
5851
}
5952
}
6053
},
6154
]
6255

63-
arches = [
64-
"x86_64",
65-
"aarch64",
66-
"armhf"
67-
]
68-
69-
arches.each {
70-
test_steps << genBranch(it, branch)
71-
}
72-
7356
parallel(test_steps)

components/packaging/Makefile

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,8 @@ help: ## show make targets
1515
clean-engine:
1616
rm -rf $(ENGINE_DIR)
1717

18-
.PHONY: clean-image
19-
clean-image:
20-
$(MAKE) ENGINE_DIR=$(ENGINE_DIR) -C image clean
21-
22-
2318
.PHONY: clean
24-
clean: clean-image ## remove build artifacts
19+
clean: ## remove build artifacts
2520
$(MAKE) -C rpm clean
2621
$(MAKE) -C deb clean
2722
$(MAKE) -C static clean
@@ -40,18 +35,3 @@ static: ## build static-compiled packages
4035
for p in $(DOCKER_BUILD_PKGS); do \
4136
$(MAKE) -C $@ VERSION=$(VERSION) ENGINE_DIR=$(ENGINE_DIR) CLI_DIR=$(CLI_DIR) GO_VERSION=$(GO_VERSION) $${p}; \
4237
done
43-
44-
# TODO - figure out multi-arch
45-
.PHONY: image
46-
image: DOCKER_BUILD_PKGS:=image-linux
47-
image: ## build static-compiled packages
48-
for p in $(DOCKER_BUILD_PKGS); do \
49-
$(MAKE) -C $@ VERSION=$(VERSION) ENGINE_DIR=$(ENGINE_DIR) CLI_DIR=$(CLI_DIR) GO_VERSION=$(GO_VERSION) $${p}; \
50-
done
51-
52-
engine-$(ARCH).tar:
53-
$(MAKE) -C image $@
54-
55-
.PHONY: release
56-
release:
57-
$(MAKE) -C image $@

components/packaging/deb/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ RUN=docker run --rm -i \
3434
$(RUN_FLAGS) \
3535
debbuild-$@/$(ARCH)
3636

37-
SOURCE_FILES=engine-image cli.tgz engine.tgz docker.service docker.socket distribution_based_engine.json plugin-installers.tgz
37+
SOURCE_FILES=engine-image cli.tgz engine.tgz docker.service docker.socket plugin-installers.tgz
3838
SOURCES=$(addprefix sources/, $(SOURCE_FILES))
3939

4040
DEBIAN_VERSIONS := debian-stretch debian-buster

components/packaging/deb/common/rules

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ override_dh_auto_install:
4949
install -D -m 0755 $(shell readlink -e engine/bundles/dynbinary-daemon/dockerd) debian/docker-ce/usr/bin/dockerd
5050
install -D -m 0755 /usr/local/bin/docker-proxy debian/docker-ce/usr/bin/docker-proxy
5151
install -D -m 0755 /usr/local/bin/docker-init debian/docker-ce/usr/bin/docker-init
52-
install -D -m 0644 /sources/distribution_based_engine.json debian/docker-ce/var/lib/docker-engine/distribution_based_engine.json
5352

5453
override_dh_installinit:
5554
# use "docker" as our service name, not "docker-ce"

components/packaging/image/Dockerfile.engine

Lines changed: 0 additions & 101 deletions
This file was deleted.

components/packaging/image/Dockerfile.engine-dm

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)