Skip to content
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

Move to multi-project build and make it riff-raff deployable #7

Merged
merged 10 commits into from
Mar 22, 2018

Conversation

jacobwinch
Copy link
Contributor

@jacobwinch jacobwinch commented Mar 22, 2018

After discussing with @adamnfish, we decided to use a multi-project build so that we can have a client-library in this repo at a later date. I've tweaked build.sbt accordingly, and have also added the necessary plugins to create a .jar with sbt assembly and deploy the project with riff-raff.

I've also added a basic riff-raff.yaml which deploys the lambda.

I tried to use riff-raff to run cloudformation updates too, but this was failing (I think due to the SAM transform?), so I will dig around a bit more and add this back in later (i.e. in a different PR) if possible.

Also to-do:

  • CloudForm the PROD stack to update the artifact location (we're now using a .jar instead of a .zip)
  • Configure TeamCity to post build results onto our PRs
  • Configure riff-raff to continuously deploy this project

Copy link
Contributor

@adamnfish adamnfish left a comment

Choose a reason for hiding this comment

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

Great!

@@ -1 +1,5 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.2.2")

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need native packager now the build has changed?

lazy val `client-lib` = project
.settings(
name := "client-lib",
libraryDependencies ++= dependencies,
Copy link
Contributor

Choose a reason for hiding this comment

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

This is fine for now, but I suspect the dependencies will differ.

(client lib won't need AWS features apart from SNS, shouldn't include logging (might conflict with other people's loggers) and won't need a markdown parser)

@adamnfish adamnfish merged commit 74480ea into master Mar 22, 2018
@adamnfish adamnfish deleted the jw-riff-raff-deploys branch March 22, 2018 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants