Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Fixes for DC/OS #98

Merged
merged 1 commit into from
Mar 27, 2018
Merged

Fixes for DC/OS #98

merged 1 commit into from
Mar 27, 2018

Conversation

longshorej
Copy link
Contributor

No description provided.

@@ -454,7 +454,7 @@ case object BasicApp extends App {

javaOptions in SbtNativePackager.Universal ++= (
if (memory.value > 0L && enableCGroupMemoryLimit.value)
Vector("-XX:+UnlockExperimentalVMOptions", "-XX:+UseCGroupMemoryLimitForHeap")
Vector("-J-XX:+UnlockExperimentalVMOptions", "-J-XX:+UseCGroupMemoryLimitForHeap")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@longshorej longshorej changed the title [WIP] Fixes for DC/OS Fixes for DC/OS Mar 26, 2018
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The start script that sbt-native-packager uses requires bash, so we already (i.e. prior to this PR) require bash to be part of the base image.

There's room for a future enhancement here to save the 2MB bash adds to the container by writing our own JVM startup script and not relying on this bash syntax: ${!IDX_VAR}

note: don't use its AshScript feature, it's broken in various ways


if [ "$RP_DEBUG" = 1 ] && hash env &>/dev/null && hash sort &>/dev/null; then
1>&2 env | sort
fi
Copy link
Contributor Author

@longshorej longshorej Mar 26, 2018

Choose a reason for hiding this comment

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

this (RP_DEBUG) will come in handy during support cases

@@ -381,7 +381,7 @@ case object BasicApp extends App {
environmentVariables := Map.empty,
startScriptLocation := "/rp-start",
secrets := Set.empty,
reactiveLibVersion := "0.5.0",
reactiveLibVersion := "0.7.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not released yet, hence this build failing on Travis. Won't merge until it's released of course.

… -J-XX:..., evaluate env vars in rp-start wrapper when running on DC/OS
# to the value of $HOST

if [ "$RP_PLATFORM" = mesos ]; then
ENDPOINT_SUFFIXES="HOST,PORT,BIND_HOST,BIND_PORT"
Copy link
Contributor Author

@longshorej longshorej Mar 27, 2018

Choose a reason for hiding this comment

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

Alternatively, we could have the CLI provide (ENDPOINT_SUFFIXES). Perhaps less coupled, slightly more complex.

Copy link

@dbrinegar dbrinegar left a comment

Choose a reason for hiding this comment

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

thumbsup

@longshorej longshorej merged commit d2c094e into lightbend:master Mar 27, 2018
@longshorej longshorej deleted the dcos branch March 27, 2018 21:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants