Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crazy-max/docker-allhands2-buildx-bake
buildx bake demo @ Docker Community All-Hands #2
https://github.com/crazy-max/docker-allhands2-buildx-bake
bake buildx demo docker
Last synced: 12 days ago
JSON representation
buildx bake demo @ Docker Community All-Hands #2
- Host: GitHub
- URL: https://github.com/crazy-max/docker-allhands2-buildx-bake
- Owner: crazy-max
- License: mit
- Created: 2021-03-08T19:17:48.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T08:22:28.000Z (over 2 years ago)
- Last Synced: 2024-10-18T07:32:05.301Z (3 months ago)
- Topics: bake, buildx, demo, docker
- Language: HCL
- Homepage: https://crazy-max.github.io/docker-allhands2-buildx-bake/
- Size: 210 KB
- Stars: 13
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# `buildx bake adoption --push`
Demo of `buildx bake` @ [Docker Community All-Hands #2](https://events.docker.com/events/details/docker-docker-virtual-meetups-presents-docker-community-all-hands-2/)
___
* [Slides](#slides)
* [Render](#render)
* [Run and auto-reload](#run-and-auto-reload)
* [GitHub Actions with `bake` and GitHub Pages](#github-actions-with-bake-and-github-pages)
* [Demo app](#demo-app)
* [Sources](#sources)
* [Build](#build)
* [GitHub Actions](#github-actions)
* [License](#license)## Slides
Slides available on GitHub Pages: https://crazy-max.github.io/docker-buildx-bake-demo/
### Render
```shell
git clone https://github.com/crazy-max/docker-buildx-bake-demo.git bake-demo
cd bake-demo# generate slides and will be available in ./www folder
docker buildx bake slides
```### Run and auto-reload
```shell
docker run --rm --init -v $(pwd)/slides:/home/marp/app -p 8080:8080 -p 37717:37717 marpteam/marp-cli -w -s -I .
# open your browser at http://localhost:8080
```### GitHub Actions with `bake` and GitHub Pages
GitHub Action workflow available in [.github/workflows/slides.yml](.github/workflows/slides.yml)
## Demo app
### Sources
Sources available in [./demo](demo) folder.
### Build
```shell
git clone https://github.com/crazy-max/docker-buildx-bake-demo.git bake-demo
cd bake-demo# build docker image and output to docker with bake-demo:local tag (default)
docker buildx bake image-local# build multi-platform image
docker buildx bake image-all# create the artifact matching your current platform in ./dist
docker buildx bake artifact# create artifacts for many platforms in ./dist
docker buildx bake artifact-all
```### GitHub Actions
GitHub Action workflow available in [.github/workflows/build.yml](.github/workflows/build.yml)
* Using [docker/bake-action](https://github.com/docker/bake-action) to:
* Create artifacts for [GitHub Releases](https://github.com/crazy-max/docker-buildx-bake-demo/releases)
* Publish multi-platform Docker image to [Docker Hub](https://hub.docker.com/r/crazymax/bake-demo/tags?page=1&ordering=last_updated) and [GHCR](https://github.com/users/crazy-max/packages/container/package/bake-demo)## License
MIT. See `LICENSE` for more details.