Comments (11)
and as an elevated version of this, levant integration, so that we can pass variables to the nomad script
from waypoint.
@orenmazor
exec plugin has issues, documetation, but here one example.
### waypoint.hcl
project = "example-python"
app "example-python" {
labels = {
"service" = "example-python",
"env" = "dev"
}
build {
use "docker" {}
registry {
use "docker" {
image = "python-example"
tag = "1"
local = true
}
}
}
deploy {
use "exec" {
command = ["nomad","run","job.hcl"]
}
}
}
### job.hcl
job "example" {
datacenters = ["dc1"]
group "demo" {
network {
port "web" {
to = 8080
}
}
task "python" {
driver = "docker"
config {
image = "python-example:1"
ports = ["web"]
}
resources {
cpu = 500
memory = 256
}
}
}
}
and you right, is not ideal, but works, I don't recommend for production envs, but for dev or demo is ok
from waypoint.
I ran into similar issues with the limitations of the nomad plugin and ended up creating a levant plugin. I'll link to it here in case anyone else would find it helpful: https://github.com/MarilynFranklin/waypoint-plugin-levant
from waypoint.
I can't help but assume somebody is out there at this very moment hacking a levant plugin, and I wish I could buy that person a beer
from waypoint.
you can use exec plugin to deploy the job file
from waypoint.
@kaykelins I'm having a hard time visualizing this but I'm super interested. can you post a small example? in my mind the exec plugin is for one-off tasks and not for CD
from waypoint.
That'd get us over the initial hurdle for testing, though I'm guessing that things like job deployment status aren't supported (the main use case for us). Levant might be a better choice for us for now.
from waypoint.
just a followup: this exec+levant approach has turned into the way I deploy 3 different stacks now. A++
from waypoint.
Fixed by #1299, will be in 0.4
from waypoint.
@orenmazor exec plugin has issues, documetation, but here one example.
### waypoint.hcl project = "example-python" app "example-python" { labels = { "service" = "example-python", "env" = "dev" } build { use "docker" {} registry { use "docker" { image = "python-example" tag = "1" local = true } } } deploy { use "exec" { command = ["nomad","run","job.hcl"] } } } ### job.hcl job "example" { datacenters = ["dc1"] group "demo" { network { port "web" { to = 8080 } } task "python" { driver = "docker" config { image = "python-example:1" ports = ["web"] } resources { cpu = 500 memory = 256 } } } }
and you right, is not ideal, but works, I don't recommend for production envs, but for dev or demo is ok
But how can I pass the tag= gitrefpretty() to nomad.hcl?
from waypoint.
I have problem to build ->
✓ Running build v11
✓ Building Docker image with kaniko...
❌ Testing registry and uploading entrypoint layer
! error setting up entrypoint layer to host
from waypoint.
Related Issues (20)
- Feature: Load custom Config Sourcer plugins
- CLI: Config Sourcers do not display the workspace scope
- Waypoint Helm does not support private chart repository HOT 1
- Vulnerability of dependency "helm.sh/helm/v3"
- The "waypoint server install -platform=ecs" should create HTTP target group with protocol TLS:9702 instead of TCP:9702 to allow custom domain with SSL
- gRPC health check "ValidationError: Health check matcher HTTP code cannot be empty"
- K8s Ingress Releaser Support for IngressClass
- `waypoint runner install -platform=ecs` fails due to policy syntax errors
- [ECS] Mark sidecar container as essential
- [ECS] Setup alternative log drivers & allow FireLens configuration
- [ECS] Define container dependencies
- Tutorials are not complete: Tagging Docker image: nomad-nodejs-web:latest Error parsing reference HOT 2
- Build with aws-ecr-pull requiring docker.AccessInfo due to no registry stanza with remote runner HOT 2
- A bug in the go-argmapper library
- entrypoint: Failed sending inlinekeepalive
- AWS ECS releaser reports empty target group as healthy
- [Nomad] nomad-jobspec not work with node_pool
- waypoint.server.grpc: failed to register hostname: authentication handshake failed: x509 HOT 2
- run waypoint in consul service mesh
- Migrate away from deprecated `heroku/buildpacks:20` CNB builder image HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from waypoint.