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

[20.10 backport] dockerfile based binary building #3042

Merged
merged 9 commits into from
Apr 9, 2021

Commits on Apr 6, 2021

  1. dockerfile based binary building

    Using cross compilation toolchains that work from any platform
    Adds darwin/arm64 support and bake targets. Static and dynamic
    binary targets are available, both with glibc and musl.
    
    Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
    (cherry picked from commit 6423da8)
    Signed-off-by: Tibor Vass <tibor@docker.com>
    tonistiigi authored and Tibor Vass committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    58061d2 View commit details
    Browse the repository at this point in the history
  2. update windows resources generation

    New solution is not hardcoded to amd64 but integrates
    with the cross toolchain and support creating arm binaries.
    
    Go has been updated so that ASLR works
    
    Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
    (cherry picked from commit 8b822c9)
    Signed-off-by: Tibor Vass <tibor@docker.com>
    tonistiigi authored and Tibor Vass committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    fcc05e5 View commit details
    Browse the repository at this point in the history
  3. add windows/arm64 target

    Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
    (cherry picked from commit a2a1de5)
    Signed-off-by: Tibor Vass <tibor@docker.com>
    tonistiigi authored and Tibor Vass committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    33dacda View commit details
    Browse the repository at this point in the history
  4. update circleci cross target

    Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
    (cherry picked from commit bd3e853)
    Signed-off-by: Tibor Vass <tibor@docker.com>
    tonistiigi authored and Tibor Vass committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    048a846 View commit details
    Browse the repository at this point in the history
  5. remove unused targets

    More can be removed/refactored but avoiding a huge change.
    
    Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
    (cherry picked from commit 706e857)
    Signed-off-by: Tibor Vass <tibor@docker.com>
    tonistiigi authored and Tibor Vass committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    c1c3d3b View commit details
    Browse the repository at this point in the history
  6. update readme with new examples

    Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
    (cherry picked from commit b099c9c)
    Signed-off-by: Tibor Vass <tibor@docker.com>
    tonistiigi authored and Tibor Vass committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    84cc7d8 View commit details
    Browse the repository at this point in the history
  7. set default version from git

    Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
    (cherry picked from commit 26b633d)
    Signed-off-by: Tibor Vass <tibor@docker.com>
    tonistiigi authored and Tibor Vass committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    8bc4062 View commit details
    Browse the repository at this point in the history
  8. Makefile: have binary, cross, dynbinary targets not use docker for ba…

    …ckwards compat
    
    Signed-off-by: Tibor Vass <tibor@docker.com>
    Tibor Vass committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    feb6f43 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2021

  1. bake: remove windows targets other than windows/amd64

    Docker 20.10 only supports windows/amd64, and though tonistiigi/xx allows
    us to support many other architectures, I preferred to not have to vendor in
    12k lines of golang.org/x/sys just to get windows/arm64 working.
    
    This is only meant for 20.10.
    
    Signed-off-by: Tibor Vass <tibor@docker.com>
    Tibor Vass committed Apr 9, 2021
    Configuration menu
    Copy the full SHA
    dc017bd View commit details
    Browse the repository at this point in the history