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.move("containerd-*", "containerd")
shelltools.makedirs("src/github.com/docker")
shelltools.system("ln -rsf containerd* src/github.com/docker")
shelltools.cd("src/github.com/docker/containerd")
shelltools.cd("containerd")
shelltools.move("vendor", "src")
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():
shelltools.cd("%s/containerd" % get.workDIR())
+4 -1
View File
@@ -15,6 +15,8 @@
<BuildDependencies>
<Dependency>golang</Dependency>
<Dependency>git</Dependency>
<Dependency>libseccomp-devel</Dependency>
<Dependency>btrfs-progs-devel</Dependency>
</BuildDependencies>
</Source>
@@ -22,6 +24,7 @@
<Name>containerd</Name>
<RuntimeDependencies>
<Dependency>runc</Dependency>
<Dependency>libseccomp</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
@@ -31,7 +34,7 @@
<History>
<Update release="3">
<Date>2018-06-10</Date>
<Date>2018-06-17</Date>
<Version>1.1.0</Version>
<Comment>Version bump.</Comment>
<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_LDFLAGS", "-L/usr/lib")
shelltools.export("DOCKER_BUILDTAGS","seccomp")
shelltools.export("GOWORK","src/github.com/docker")
NoStrip=["/"]
@@ -28,7 +27,6 @@ def setup():
shelltools.cd("components/cli/src/github.com/docker")
shelltools.system("ln -s ../../../../cli . ")
def build():
shelltools.cd("%s" % get.workDIR())
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.dodoc("VERSION", "README.md","CONTRIBUTING.md", "CHANGELOG.md")