https://github.com/libgit2/docker-build
Docker images for build pipelines
https://github.com/libgit2/docker-build
Last synced: 16 days ago
JSON representation
Docker images for build pipelines
- Host: GitHub
- URL: https://github.com/libgit2/docker-build
- Owner: libgit2
- Created: 2018-10-21T09:31:22.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-21T13:07:01.000Z (about 6 years ago)
- Last Synced: 2024-12-29T01:59:40.701Z (12 months ago)
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Docker images for libgit2 continuous integration builds
=======================================================
[libgit2](https://libgit2.org/)'s Linux-based pull request validation,
post-merge continuous integration and nightly builds run inside Docker
containers. This ensures that we can target a predictable platform
running exactly the distribution with exactly the dependencies that
we want.
We target amd64-based containers natively, and other platforms like
x86 and arm by leveraging QEMU.
To build and test these locally, you can simply run `make`. This will
produce a new set of docker images with the `test` tag. You can then
run them locally. From within a [libgit2 source
directory](https://github.com/libgit2/libgit2), you can test the CI
build step:
docker run -v $(pwd):/src -v $(pwd)/build:/build -w /build libgit2/trusty-amd64:test /src/ci/build.sh
You can also run the unit tests:
docker run -v $(pwd):/src -v $(pwd)/build:/build -w /build libgit2/trusty-amd64:test /src/ci/test.sh
(Replace `libgit2/trusty-amd64:test` with the name of the image that you
want to run.)
When you've validated the images, you can build release images and push
them to dockerhub. To build release images, you can run `make TAG=latest`.
To push them, you can run `make TAG=latest push`.