Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rumpl/nomad-invoc
Docker App invocation image to deploy to nomad
https://github.com/rumpl/nomad-invoc
Last synced: 15 days ago
JSON representation
Docker App invocation image to deploy to nomad
- Host: GitHub
- URL: https://github.com/rumpl/nomad-invoc
- Owner: rumpl
- Created: 2019-10-31T12:40:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-11T23:10:13.000Z (about 5 years ago)
- Last Synced: 2024-04-15T03:09:27.488Z (10 months ago)
- Language: Go
- Size: 23.1 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nomad-invoc
This is a test to run a [docker application](https://github.com/docker/app) orchestrated by nomad.
# Prerequisites
You need to have [consul](https://www.consul.io/) and [nomad](https://www.nomadproject.io/) installed and running:
```bash
$ consul agent -dev
$ nomad agent -dev
```Install [docker app](https://github.com/docker/app) (comes bundled with Docker Desktop)
You must change the base invocation image for docker app, in `~/.docker/config.json` add this:
```json
"plugins": {
"app": {
"base-invocation-image": "nomad-invoc"
}
}
```You can then make the image with make: `make invocation-image`.
With all that setup, you can now use `docker app` to install an image:
```bash
$ docker app build examples/hello-world -t my-app
$ docker app run my-app --name my-app
```The example here comes from the [docker app repository](https://github.com/docker/app/tree/master/examples/hello-world).