containerd build OK

This commit is contained in:
Ertuğrul Erata
2018-06-17 17:01:38 +03:00
parent a72b4fbc76
commit de015f796b
3 changed files with 12 additions and 10 deletions
@@ -16,12 +16,15 @@ def build():
shelltools.cd("%s" % get.workDIR()) shelltools.cd("%s" % get.workDIR())
shelltools.move("containerd-*", "containerd") shelltools.move("containerd-*", "containerd")
shelltools.makedirs("src/github.com/docker") shelltools.cd("containerd")
shelltools.system("ln -rsf containerd* src/github.com/docker") shelltools.move("vendor", "src")
shelltools.cd("src/github.com/docker/containerd")
shelltools.system("LDFLAGS= make") shelltools.makedirs("src/github.com/containerd")
shelltools.system("ln -rsf %s/containerd* src/github.com/containerd" % get.workDIR())
shelltools.cd("src/github.com/containerd/containerd")
shelltools.system("LDFLAGS= GOPATH=%s make GIT_COMMIT=209a7fc" % get.curDIR())
def install(): def install():
shelltools.cd("%s/containerd" % get.workDIR()) shelltools.cd("%s/containerd" % get.workDIR())
+4 -1
View File
@@ -15,6 +15,8 @@
<BuildDependencies> <BuildDependencies>
<Dependency>golang</Dependency> <Dependency>golang</Dependency>
<Dependency>git</Dependency> <Dependency>git</Dependency>
<Dependency>libseccomp-devel</Dependency>
<Dependency>btrfs-progs-devel</Dependency>
</BuildDependencies> </BuildDependencies>
</Source> </Source>
@@ -22,6 +24,7 @@
<Name>containerd</Name> <Name>containerd</Name>
<RuntimeDependencies> <RuntimeDependencies>
<Dependency>runc</Dependency> <Dependency>runc</Dependency>
<Dependency>libseccomp</Dependency>
</RuntimeDependencies> </RuntimeDependencies>
<Files> <Files>
<Path fileType="executable">/usr/bin</Path> <Path fileType="executable">/usr/bin</Path>
@@ -31,7 +34,7 @@
<History> <History>
<Update release="3"> <Update release="3">
<Date>2018-06-10</Date> <Date>2018-06-17</Date>
<Version>1.1.0</Version> <Version>1.1.0</Version>
<Comment>Version bump.</Comment> <Comment>Version bump.</Comment>
<Name>Ertuğrul Erata</Name> <Name>Ertuğrul Erata</Name>
@@ -19,7 +19,6 @@ shelltools.export("GOPATH", "%s" % get.workDIR())
shelltools.export("CGO_CFLAGS", "-I/usr/include") shelltools.export("CGO_CFLAGS", "-I/usr/include")
shelltools.export("CGO_LDFLAGS", "-L/usr/lib") shelltools.export("CGO_LDFLAGS", "-L/usr/lib")
shelltools.export("DOCKER_BUILDTAGS","seccomp") shelltools.export("DOCKER_BUILDTAGS","seccomp")
shelltools.export("GOWORK","src/github.com/docker")
NoStrip=["/"] NoStrip=["/"]
@@ -28,7 +27,6 @@ def setup():
shelltools.cd("components/cli/src/github.com/docker") shelltools.cd("components/cli/src/github.com/docker")
shelltools.system("ln -s ../../../../cli . ") shelltools.system("ln -s ../../../../cli . ")
def build(): def build():
shelltools.cd("%s" % get.workDIR()) shelltools.cd("%s" % get.workDIR())
shelltools.cd("docker-ce-%s-ce/components/engine" % get.srcVERSION()) shelltools.cd("docker-ce-%s-ce/components/engine" % get.srcVERSION())
@@ -53,6 +51,4 @@ def install():
pisitools.dobin("components/engine/contrib/check-config.sh") pisitools.dobin("components/engine/contrib/check-config.sh")
pisitools.dodoc("VERSION", "README.md","CONTRIBUTING.md", "CHANGELOG.md") pisitools.dodoc("VERSION", "README.md","CONTRIBUTING.md", "CHANGELOG.md")