https://github.com/dacr/coursier-launcher
coursier docker container for efficient application or service download and startup
https://github.com/dacr/coursier-launcher
coursier java jvm maven-repository scala
Last synced: about 1 year ago
JSON representation
coursier docker container for efficient application or service download and startup
- Host: GitHub
- URL: https://github.com/dacr/coursier-launcher
- Owner: dacr
- License: apache-2.0
- Created: 2021-03-13T09:55:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-14T13:38:39.000Z (over 5 years ago)
- Last Synced: 2025-03-29T15:11:47.558Z (over 1 year ago)
- Topics: coursier, java, jvm, maven-repository, scala
- Language: Makefile
- Homepage:
- Size: 10.7 KB
- Stars: 9
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Coursier launcher container
**coursier-launcher** is an easy to use [coursier][cs] docker container with
artifacts cache easily sharable between applications by using docker volumes.
The typical usage of this container is to start application or web services
by only relying on maven repositories to download just the required files,
it makes it possible to achieve kilobytes deployments size, it accelerates
CI/CD pipelines as we don't have anymore to create dedicated container images,...
## The docker containers
Containers are available on [dockerhub][hub] and automatically updated in
sync with [this github repo][repo]. Dedicated branches are used for the different
jvm release used : `openjdk-8`, `openjdk-11`, `openjdk-15`, `openjdk-16`.
The `master` branch is linked to the `latest` docker tag and will always use
the most recent supported jvm.
## Usage examples
```shell
docker volume create artifacts
CS="docker run -it --rm -v artifacts:/coursier-cache dacr/coursier-launcher"
$CS --version
$CS launch fr.janalyse::code-examples-manager:1.0.9
$CS launch --fork com.lihaoyi:::ammonite:2.3.8 -M ammonite.Main
$CS launch --fork com.lihaoyi:::ammonite:2.3.8 -M ammonite.Main -- -c 'println("Hello world")'
CSW="docker run -it --rm -p 8080:8080 -v artifacts:/coursier-cache dacr/coursier-launcher"
$CSW launch fr.janalyse::lorem-ipsum-server-akkahttp:1.0.8
$CSW launch fr.janalyse::web-echo:1.1.9
$CSW launch fr.janalyse::spy:1.0.2
CSWP="docker run -it --rm -p 8080:8080 -e PRIMES_MAX_COUNT=42 -v artifacts:/coursier-cache dacr/coursier-launcher"
$CSWP launch fr.janalyse::primes-server-akkahttp:1.0.3
```
[cs]: https://get-coursier.io/
[hub]: https://hub.docker.com/repository/docker/dacr/coursier-launcher/general
[repo]: https://github.com/dacr/coursier-launcher