https://github.com/into-docker/into-docker-clojure-graalvm
A Docker builder for native Clojure (via GraalVM)
https://github.com/into-docker/into-docker-clojure-graalvm
builder-image clojure docker graalvm graalvm-native-image into-docker into-docker-builder-image
Last synced: about 2 months ago
JSON representation
A Docker builder for native Clojure (via GraalVM)
- Host: GitHub
- URL: https://github.com/into-docker/into-docker-clojure-graalvm
- Owner: into-docker
- License: mit
- Created: 2020-04-13T16:38:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-20T09:18:07.000Z (over 4 years ago)
- Last Synced: 2023-03-21T23:08:39.441Z (about 3 years ago)
- Topics: builder-image, clojure, docker, graalvm, graalvm-native-image, into-docker, into-docker-builder-image
- Language: Dockerfile
- Homepage:
- Size: 59.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# into-docker-clojure-graalvm
[](https://hub.docker.com/r/intodocker/clojure-graalvm)
[](https://hub.docker.com/r/intodocker/clojure-graalvm)
This is an [into-docker][into] builder image for Clojure applications relying on
[Leiningen][lein] and including a GraalVM [native-image][] build step.
[into]: https://github.com/into-docker/into-docker
[lein]: https://leiningen.org/
[native-image]: https://www.graalvm.org/docs/reference-manual/native-image/
## Usage
Run the following in the root directory of your Clojure project:
```sh
into build -t : intodocker/clojure-graalvm .
```
Please make sure that your Uberjar contains all necessary configuration files at
`META-INF/native-image//` as described
[here][native-image-configuration].
[native-image-configuration]: https://www.graalvm.org/docs/reference-manual/native-image/#native-image-configuration
## Notes
Make sure your project's `uberjar` task creates its output at
`target/*-standalone.jar` since this is where the builder image will expect it.
## Build Profiles
The following build profiles that can be used via the `--profile` CLI flag:
| Profile | Native Image Flags | Notes |
| --------- | ------------------------------------ | ----------------------------- |
| `default` | `--no-server --no-fallback --static` | |
| `dynamic` | `--no-server --no-fallback` | Only with `--write-artifacts` |
## License
```
MIT License
Copyright (c) 2020 Yannick Scherer
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```