Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vic/mill-docker
Build minimalist distroless docker images for your java applications using Mill
https://github.com/vic/mill-docker
distroless docker hacktoberfest java mill mill-module mill-plugin scala
Last synced: 9 days ago
JSON representation
Build minimalist distroless docker images for your java applications using Mill
- Host: GitHub
- URL: https://github.com/vic/mill-docker
- Owner: vic
- License: apache-2.0
- Created: 2018-08-24T23:01:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-04T17:39:29.000Z (11 months ago)
- Last Synced: 2024-10-11T22:24:10.661Z (26 days ago)
- Topics: distroless, docker, hacktoberfest, java, mill, mill-module, mill-plugin, scala
- Language: Scala
- Homepage:
- Size: 69.3 KB
- Stars: 15
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# mill-docker
[![Jitpack](https://jitpack.io/v/vic/mill-docker.svg)](https://jitpack.io/#vic/mill-docker)
![Main workflow](https://github.com/vic/mill-docker/workflows/Main%20workflow/badge.svg)A [Mill][mill] module for building minimal [distroless][distroless] docker images from your java applications.
The generated docker image contains only your application's _assembly_ jar and the java runtime, but no linux
distribution to maintain. That means the image size is as small as it can get without actually turning your app into a native binary (with graalvm for example).## Usage
See the annotated example buildfile at [`example/build.sc`][example]:
### Building
The main task added by this module is `dockerBuild`. *Note* if you would like to see the output produced by
the docker command, be sure to use `mill --interactive` mode.```shell
$ cd example
$ mill --interactive hello.dockerBuild
$ docker run -ti hello:latest world
Hello world
```[mill]: https://www.lihaoyi.com/mill
[distroless]: https://github.com/GoogleContainerTools/distroless
[example]: https://github.com/vic/mill-docker/blob/master/example/build.sc
[jitpack]: https://jitpack.io