Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial multiarchitecture support via Debian cross-compiled binaries #31

Merged
merged 1 commit into from
Jun 13, 2017

Conversation

tianon
Copy link
Member

@tianon tianon commented Jun 13, 2017

No description provided.

@tianon
Copy link
Member Author

tianon commented Jun 13, 2017

(Opening this now to essentially make Travis verify my assumptions about the repeatability of these cross-compiled binaries too.)

@@ -10,8 +10,8 @@ before_script:

script:
- ./update.sh
- test -z "$(git status --porcelain '*/hello' '*/nanoserver/hello.txt')"
- travis_retry travis_retry travis_retry docker build -t "$image" hello-world
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*whistle* no idea how this happened 🦀

@tianon
Copy link
Member Author

tianon commented Jun 13, 2017

Now with an updated generate-stackbrew-library.sh script!

$ ./generate-stackbrew-library.sh
# this file is generated via https://github.com/docker-library/hello-world/blob/7d0ee592e4ed60e2da9d59331e16ecdcadc1ed87/generate-stackbrew-library.sh

Maintainers: Tianon Gravi <[email protected]> (@tianon),
             Joseph Ferguson <[email protected]> (@yosifkit)
GitRepo: https://github.com/docker-library/hello-world.git
GitCommit: 7d0ee592e4ed60e2da9d59331e16ecdcadc1ed87

Tags: latest
Architectures: amd64, arm32v5, arm32v7, arm64v8, ppc64le, s390x
amd64-GitCommit: 7d0ee592e4ed60e2da9d59331e16ecdcadc1ed87
amd64-Directory: amd64/hello-world
arm32v5-GitCommit: 7d0ee592e4ed60e2da9d59331e16ecdcadc1ed87
arm32v5-Directory: arm32v5/hello-world
arm32v7-GitCommit: 7d0ee592e4ed60e2da9d59331e16ecdcadc1ed87
arm32v7-Directory: arm32v7/hello-world
arm64v8-GitCommit: 7d0ee592e4ed60e2da9d59331e16ecdcadc1ed87
arm64v8-Directory: arm64v8/hello-world
ppc64le-GitCommit: 7d0ee592e4ed60e2da9d59331e16ecdcadc1ed87
ppc64le-Directory: ppc64le/hello-world
s390x-GitCommit: 7d0ee592e4ed60e2da9d59331e16ecdcadc1ed87
s390x-Directory: s390x/hello-world

Tags: nanoserver
Architectures: windows-amd64
windows-amd64-GitCommit: 7d0ee592e4ed60e2da9d59331e16ecdcadc1ed87
windows-amd64-Directory: amd64/hello-world/nanoserver
Constraints: nanoserver

@tianon
Copy link
Member Author

tianon commented Jun 13, 2017

And since GitHub makes file sizes a bit hard to see/compare, here's the relevant file sizes too:

-rwxr-xr-x 1 root root 1.9K Jun 13 23:20 ./amd64/hello-seattle/hello
-rw-r--r-- 1 root root  846 Jun 13 23:20 ./amd64/hello-seattle/nanoserver/hello.txt
-rwxr-xr-x 1 root root 1.8K Jun 13 23:20 ./amd64/hello-world/hello
-rw-r--r-- 1 root root  826 Jun 13 23:20 ./amd64/hello-world/nanoserver/hello.txt
-rwxr-xr-x 1 root root 1.9K Jun 13 23:20 ./amd64/hola-mundo/hello
-rw-r--r-- 1 root root  847 Jun 13 23:20 ./amd64/hola-mundo/nanoserver/hello.txt
-rwxr-xr-x 1 root root 1.7K Jun 13 23:20 ./arm32v5/hello-seattle/hello
-rwxr-xr-x 1 root root 1.7K Jun 13 23:20 ./arm32v5/hello-world/hello
-rwxr-xr-x 1 root root 1.7K Jun 13 23:20 ./arm32v5/hola-mundo/hello
-rwxr-xr-x 1 root root 1.7K Jun 13 23:20 ./arm32v7/hello-seattle/hello
-rwxr-xr-x 1 root root 1.6K Jun 13 23:20 ./arm32v7/hello-world/hello
-rwxr-xr-x 1 root root 1.7K Jun 13 23:20 ./arm32v7/hola-mundo/hello
-rwxr-xr-x 1 root root 4.7K Jun 13 23:20 ./arm64v8/hello-seattle/hello
-rwxr-xr-x 1 root root 4.7K Jun 13 23:20 ./arm64v8/hello-world/hello
-rwxr-xr-x 1 root root 4.7K Jun 13 23:20 ./arm64v8/hola-mundo/hello
-rwxr-xr-x 1 root root  65K Jun 13 23:20 ./ppc64le/hello-seattle/hello
-rwxr-xr-x 1 root root  65K Jun 13 23:20 ./ppc64le/hello-world/hello
-rwxr-xr-x 1 root root  65K Jun 13 23:20 ./ppc64le/hola-mundo/hello
-rwxr-xr-x 1 root root 2.0K Jun 13 23:20 ./s390x/hello-seattle/hello
-rwxr-xr-x 1 root root 2.0K Jun 13 23:20 ./s390x/hello-world/hello
-rwxr-xr-x 1 root root 2.0K Jun 13 23:20 ./s390x/hola-mundo/hello

(no idea why ppc64le has such huge binaries, but they do run, so *shrug*)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants