'Create spring dataflow server container with local jar included
I'd like to package spring dataflow server into a container which will contain one local jar application. Publish this into local repo, expectation is that end result is same as the normal dataflow server: https://hub.docker.com/r/springcloud/spring-cloud-dataflow-server just with the local jar added.
Creating the Dockerfile to include the jar is straightforward, but I'm strugling a bit with how to register the jar into dataflow server.
I know one option is to use the RESTapi, but it feels quite complicated to start the dataflow server during the docker creation. I found documentation that application.yml might be a way to do this as well, but couldn't figure out how exactly.
So is there a straightforward way to package a jar into dataflow server docker container?
Solution 1:[1]
The API is the only practical way to do it. Take a look at how we register apps with the docker-compose installation. Technically, you could also pre-populate the associated DB table(s), but I don’t recommend this.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | dturanski |