Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
| ... | ... |
@@ -68,8 +68,9 @@ ENV GOPATH /go:/go/src/github.com/dotcloud/docker/vendor |
| 68 | 68 |
RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1 |
| 69 | 69 |
|
| 70 | 70 |
# Compile Go for cross compilation |
| 71 |
-ENV DOCKER_CROSSPLATFORMS darwin/amd64 darwin/386 |
|
| 72 |
-# TODO add linux/386 and linux/arm |
|
| 71 |
+ENV DOCKER_CROSSPLATFORMS linux/386 linux/arm darwin/amd64 darwin/386 |
|
| 72 |
+# (set an explicit GOARM of 5 for maximum compatibility) |
|
| 73 |
+ENV GOARM 5 |
|
| 73 | 74 |
RUN cd /usr/local/go/src && bash -xc 'for platform in $DOCKER_CROSSPLATFORMS; do GOOS=${platform%/*} GOARCH=${platform##*/} ./make.bash --no-clean 2>&1; done'
|
| 74 | 75 |
|
| 75 | 76 |
# Grab Go's cover tool for dead-simple code coverage testing |
| 76 | 77 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,17 @@ |
| 0 |
+// +build !linux !amd64 |
|
| 1 |
+ |
|
| 2 |
+package archive |
|
| 3 |
+ |
|
| 4 |
+import "syscall" |
|
| 5 |
+ |
|
| 6 |
+func getLastAccess(stat *syscall.Stat_t) syscall.Timespec {
|
|
| 7 |
+ return stat.Atimespec |
|
| 8 |
+} |
|
| 9 |
+ |
|
| 10 |
+func getLastModification(stat *syscall.Stat_t) syscall.Timespec {
|
|
| 11 |
+ return stat.Mtimespec |
|
| 12 |
+} |
|
| 13 |
+ |
|
| 14 |
+func LUtimesNano(path string, ts []syscall.Timespec) error {
|
|
| 15 |
+ return nil |
|
| 16 |
+} |
| 0 | 17 |
deleted file mode 100644 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-// +build: !linux !amd64 |
|
| 2 |
-package archive |
|
| 3 |
- |
|
| 4 |
-import "syscall" |
|
| 5 |
- |
|
| 6 |
-func getLastAccess(stat *syscall.Stat_t) syscall.Timespec {
|
|
| 7 |
- return stat.Atimespec |
|
| 8 |
-} |
|
| 9 |
- |
|
| 10 |
-func getLastModification(stat *syscall.Stat_t) syscall.Timespec {
|
|
| 11 |
- return stat.Mtimespec |
|
| 12 |
-} |
|
| 13 |
- |
|
| 14 |
-func LUtimesNano(path string, ts []syscall.Timespec) error {
|
|
| 15 |
- return nil |
|
| 16 |
-} |
| ... | ... |
@@ -151,7 +151,8 @@ release_build() {
|
| 151 | 151 |
S3ARCH=i386 |
| 152 | 152 |
;; |
| 153 | 153 |
arm) |
| 154 |
- # GOARCH is fine |
|
| 154 |
+ S3ARCH=armel |
|
| 155 |
+ # someday, we might potentially support mutliple GOARM values, in which case we might get armhf here too |
|
| 155 | 156 |
;; |
| 156 | 157 |
*) |
| 157 | 158 |
echo >&2 "error: can't convert $S3ARCH to an appropriate value for 'uname -m'" |