Skip to content

Add JAVA_OPTS to search service docker image cmd - #2255

Merged
eugene-sy merged 2 commits into
feature/search-servicefrom
search-service/docker-cmd-fix
Jun 20, 2017
Merged

Add JAVA_OPTS to search service docker image cmd#2255
eugene-sy merged 2 commits into
feature/search-servicefrom
search-service/docker-cmd-fix

Conversation

@kjanosz

Copy link
Copy Markdown
Contributor

No description provided.

Comment threadagni/project/Settings.scala Outdated
.from("openjdk:8-alpine")
.add(artifact, artifactTargetPath)
.cmdRaw(s"java -jar $artifactTargetPath")
.cmdRaw(s"java $$JAVA_OPTS -jar $artifactTargetPath 2>&1 | tee /logs/${appName.value}.log")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missed -a

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where? in tee?

.from("openjdk:8-alpine")
.add(artifact, artifactTargetPath)
.cmdRaw(s"java -jar $artifactTargetPath")
.cmdRaw(s"java $$JAVA_OPTS -jar $artifactTargetPath 2>&1 | tee -a /logs/${appName.value}.log")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you use 2 $ here?

@kjanoszkjanoszJun 20, 2017

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ has special meaning in Scala's string interpolation (to refer to any identifier in scope). To escape it I need to type it twice.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, it was my guess, but I wanted to double check.

@eugene-sy

Copy link
Copy Markdown
Contributor

LGTM, let's merge it.

@eugene-sy
eugene-sy merged commit e0bf2d2 into feature/search-serviceJun 20, 2017
@eugene-sy
eugene-sy deleted the search-service/docker-cmd-fix branch June 20, 2017 15:06
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@kjanosz@eugene-sy@kairome