Open rb-boubou opened 1 year ago
Hey @rb-boubou, can you try running waypoint build
prior to waypoint deploy
, or waypoint up
? A build is expected to be completed prior to a deployment.
Hey @rb-boubou, can you try running
waypoint build
prior towaypoint deploy
, orwaypoint up
? A build is expected to be completed prior to a deployment.
Hello dear, build and deploy works but I'm looking a way to deploy without build step. Build step is done on CI with waypoint up from ssh on worker. I would like to deploy my app only from controller where docker is not installed. Is there a option to deploy my app with waypoint deploy ?
please check my waypoint.hcl below there is not docker-pull, only docker in build step.
waypoint deploy -var-file=/opt/waypoint/varsfiles/myapp/my-api/test.wpvars
! No application named "finess-api-toto" is available, or application has no
successful operations
project = "my-api-toto"
runner {
enabled = true
poll {
enabled = false
interval = "30s"
}
}
# An application to deploy.
app "my-api-toto" {
build {
use "docker" {
dockerfile = "${path.app}/${var.dockerfile_path}"
}
# Uncomment below to use a remote docker registry to push your built images.
#
registry {
use "docker" {
image = "${var.registry_path}/my-api-${var.env}"
tag = "${var.tag_version}"
}
}
}
# Deploy to Docker
deploy {
use "nomad-jobspec" {
jobspec = templatefile("${path.app}/finess-api.hcl", {
datacenter = var.datacenter
image_version = "${var.registry_path}/my-api-${var.env}:${var.tag_version}"
env = var.env
db_service_name = "${var.db_service_name}-svc-${var.env}"
url = "${var.app}.${var.env}.${var.domain}"
update_stagger = var.update_stagger
})
}
}
}
variable tag_version {
type = string
default = "1.0.0"
}
...
Dockerfile
FROM maven:3.6.0-jdk-11-slim AS build
COPY src /home/app/src
COPY pom.xml /home/app
RUN mkdir -p /root/.m2 \
&& mkdir /root/.m2/repository
COPY settings.xml /root/.m2
WORKDIR /home/app/
RUN mvn clean package
#
# Package stage
#
FROM openjdk:11-jre-slim
COPY --from=build /home/app/target/my-api-0.0.1-SNAPSHOT.jar /usr/local/lib/my-api-0.0.1.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar","/usr/local/lib/my-api-0.0.1.jar"]
build and deploy works but I'm looking a way to deploy without build step. Build step is done on CI with waypoint up from ssh on worker.
If you want to deploy without a build step, your only option today is to use the docker-pull
plugin.
Describe the bug Cannot deploy, tried with v5.2; v9.1 and latest. I'am sure what job and waypoint.hcl are correct because I deployed same app previously and I do not changed anything in project or files. I tried to delete **/root/.config/waypoint and waypoint login -server-addr=***** ... but same issue
waypoint.hcl