-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish standalone/app as docker image #1506
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work
engine/standalone/app/src/universal/bin/nussknacker-standalone-entrypoint.sh
Outdated
Show resolved
Hide resolved
} | ||
|
||
lazy val distDockerSettings = { | ||
val workingDir = "/opt/nussknacker" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
workingDir, defaultLinuxInstallLocation and exposedVolumes can be in common?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, after Arek's comments I added a /processes volume specific to standalone. So now exposedVolumes
is not the same for both images. Plus I need workingDir to construct entrypoint path, which is specific for each image.
As for defaultLinuxInstallLocation
it probably could, or even should be common. But it depends on workingDir, so I'd have to either make it a global constant in the file or define common settings as a function of workingDir instead of a simple Seq. Do you think it's worth it?
4b15fcb
to
7641471
Compare
engine/standalone/app/src/universal/bin/nussknacker-standalone-entrypoint.sh
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.