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

Supports docker build with local .deb #1231

Merged
merged 1 commit into from
Oct 30, 2023
Merged

Supports docker build with local .deb #1231

merged 1 commit into from
Oct 30, 2023

Conversation

zachgk
Copy link
Contributor

@zachgk zachgk commented Oct 28, 2023

Before, we only supported docker builds that depend on the DJL global djl-serving.deb for the release. This PR begins by updating the Dockerfiles to search for serving/docker/distributions/*.deb and copy it to the container if it exists. This can then be used for the build instead of downloading. It enables easier local testing with a custom version of DJL Serving.

As part of this, it also creates a new gradle task dockerDeb that will move the build into the docker building context directory. It will be git ignored and cleaned through gradle.

Finally, it also modifies the nightly CI to no longer rely on the global build. This means that the nightly publish job does not require running the serving publish in the DJL repo first.

Before, we only supported docker builds that depend on the DJL global
djl-serving.deb for the release. This PR begins by updating the Dockerfiles to
search for `serving/docker/distributions/*.deb` and copy it to the container if
it exists. This can then be used for the build instead of downloading. It
enables easier local testing with a custom version of DJL Serving.

As part of this, it also creates a new gradle task `dockerDeb` that will move
the build into the docker building context directory. It will be git ignored and
cleaned through gradle.

Finally, it also modifies the nightly CI to no longer rely on the global build.
This means that the nightly publish job does not require running the serving
publish in the DJL repo first.
@zachgk zachgk requested review from frankfliu and a team as code owners October 28, 2023 00:02
@zachgk zachgk merged commit 7bf8c49 into master Oct 30, 2023
17 checks passed
@zachgk zachgk deleted the dockerLocalDeb branch October 30, 2023 19:35
zachgk added a commit to zachgk/djl-serving that referenced this pull request Nov 16, 2023
zachgk added a commit to zachgk/djl-serving that referenced this pull request Nov 16, 2023
zachgk added a commit to zachgk/djl-serving that referenced this pull request Nov 16, 2023
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