-
Notifications
You must be signed in to change notification settings - Fork 8
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
Use .deb for deployment #40
Conversation
build.sbt
Outdated
@@ -36,16 +38,26 @@ libraryDependencies ++= Seq( | |||
|
|||
scalacOptions ++= Seq("-feature") | |||
|
|||
javaOptions in Universal ++= Seq( | |||
s"-Dpidfile.path=/dev/null" |
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.
sbt-native-packager maintainer recommends to let play not handle the pid file: sbt/sbt-native-packager#377 (comment)
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.
A few comments, some entirely off topic.
👍
cloudformation/prism.template
Outdated
"#!/bin/bash -ev\n", | ||
"/opt/features/native-packager/install.sh -b deploy-tools-dist -s -t tgz\n" | ||
"#!/bin/bash -ev", | ||
"mkdir /prism", |
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.
/tmp
here?
build.sbt
Outdated
javaOptions in Universal ++= Seq( | ||
s"-Dpidfile.path=/dev/null" | ||
) | ||
|
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.
Does this need @philwills recommended options? See something like https://github.com/guardian/membership-frontend/blob/master/frontend/build.sbt#L60-L68
def env(key: String): Option[String] = Option(System.getenv(key)) | ||
|
||
lazy val root = (project in file(".")) | ||
.enablePlugins(PlayScala, RiffRaffArtifact, UniversalPlugin) | ||
.settings( | ||
packageName in Universal := normalizedName.value, | ||
maintainer := "Guardian Developers <[email protected]>", |
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.
We should create an email address for tools, but this will do for now.
cloudformation/prism.template
Outdated
"mkdir /prism", | ||
{ "Fn::Join": [ "", [ "aws --region eu-west-1 s3 cp s3://deploy-tools-dist/deploy/", { "Ref": "Stage" }, "/prism/prism.deb /prism/" ] ] }, | ||
"dpkg -i /prism/prism.deb", | ||
"systemctl start prism" |
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.
In general I'd love to aim for userdata zero as I think there lies potential for more reusable CFN templates - but that's not enormously relevant here, just my philosophy.
747680d
to
83be5bd
Compare
83be5bd
to
b049693
Compare
Modifies prism to use .deb for deployment. This is necessary to move away from machine-images to amigo
Tested in CODE