Commit Graph

18 Commits

Author SHA1 Message Date
Tim Visée
50ec5ffbae Disable manual workflow dispatch on Docker release image job (#5117) 2024-09-23 12:01:33 +02:00
Kumar Shivendu
cf9f5aab98 fix: Include git commit id while building docker image if possible (#3640)
* feat: Print commit id in dev container build workflow

* fix: Keep .git while building Qdrant binary in docker

* fix: Remove redundant printing of git commit id

* fix: Copy only git files first

* fix: Docker build should have commit id if present

* refactor: Use fewer lines of code

* feat: Use git commit id from build arg

* refactor: Use cleaner code

* Fix string reference issue

* fix: Dont print info log if commit is not set

* fix: Include git commit id in release containers

---------

Co-authored-by: timvisee <tim@visee.me>
2024-02-22 21:26:44 +05:30
Tim Visée
5bf32793df Fix docker release job (#2654)
* Pull unprivileged image before retagging and publishing on GitHub

* Restructure Docker image release job
2023-09-13 12:17:43 +02:00
Tim Visée
9e301df125 Always run our Docker build CI job on our self hosted runner (#2643) 2023-09-12 15:54:00 +02:00
Bastian Hofmann
c8ab08a057 Build an unprivileged container image (#2613)
* Build an unprivileged container image

This adds building an additional container image with the `-unprivileged` suffix. The resulting container is not running with a root user. Otherwise it is the same as the standard qdrant container image.

Having an image that is running as nonRoot is necessary in a lot of enterprise environments due to security and compliance restrictions.

* Update to use only one Dockerfile with buildargs and one action job to reuse the cached layers from the privileged image

* Also build latest-unprivileged and address feedback
2023-09-11 12:27:46 +02:00
dependabot[bot]
4182ddd1dc Bump actions/checkout from 3 to 4 (#2579)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-05 09:46:23 +02:00
Arnaud Gourlay
c276e6cd31 add OCI labels on docker image (#2576)
* add OCI labels on docker image

* set version in build script

* Update .github/workflows/docker-image.yml

Co-authored-by: Tim Visée <tim+github@visee.me>

---------

Co-authored-by: Tim Visée <tim+github@visee.me>
2023-09-04 16:09:43 +02:00
Roman Titov
abffa27ff0 Refactor Dockerfile (#1594)
* Refactor Dockerfile

- fix cross-compilation
- improve caching

TODO:
- check if `lld` is used/works for linkage (and enable if not used, or remove if doesn't work)

* Remove `aarch64` linker config from `.cargo/config.toml` (seems to be unnecessary)

* Expose `LINKER` argument and enable `lld` linker

* Add `mold` linker support

* Document Dockerfile

* Add closing ` in the Dockerfile comments

Co-authored-by: Tim Visée <tim+github@visee.me>

---------

Co-authored-by: Tim Visée <tim+github@visee.me>
2023-05-26 16:01:43 +02:00
Jesse
34055f0ddf Custom build profile for CI docker builds (#1859)
* Use custom build profile for docker builds

* trigger ci

* change source code to trigger ci with rebuild one more time

---------

Co-authored-by: Andrey Vasnetsov <andrey@vasnetsov.com>
2023-05-08 20:39:59 +02:00
Tim Visée
e985ff31b6 General improvements (#1687)
* Change file mode of some .sh files to make them executable

* Remove whitespace on empty lines from YAML configurations

* Fix unused import warning on Windows
2023-04-10 20:03:56 +02:00
dependabot[bot]
74b681f6b6 Bump Swatinem/rust-cache from 1 to 2 (#1232)
Bumps [Swatinem/rust-cache](https://github.com/Swatinem/rust-cache) from 1 to 2.
- [Release notes](https://github.com/Swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Swatinem/rust-cache/compare/v1...v2)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-21 21:01:59 +01:00
Andrey Vasnetsov
01807d5cf3 Multiplatform build fix 2 (#1000)
* upd dockerfile to multi-arch build

* debug actions

* fail faster on install

* add buildplatform

* enable CI

* dedicated push for github registry

* default platform

* fix default target arch

* revert debug ci changes
2022-09-12 13:26:40 +02:00
dependabot[bot]
7275577102 Bump actions/checkout from 2 to 3 (#390)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-18 12:01:30 +01:00
Arnaud Gourlay
5a9f16ebfd setup github action cache (#320) 2022-02-18 15:09:53 +01:00
Andrey Vasnetsov
c607ec41bd Push images to docker-hub (#102) 2021-10-04 17:57:46 +03:00
Andrey Vasnetsov
84ee5dd67b Allow manual trigger docker build 2021-06-20 19:29:05 +02:00
Andrey Vasnetsov
02d3cbe615 Update docker-image.yml 2021-04-06 20:07:43 +02:00
Andrey Vasnetsov
9233bd9b84 Create docker-image.yml 2021-04-06 20:06:51 +02:00