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

Switch how secrets for local/demo-server deployments are handled. #454

Merged
merged 4 commits into from
Jul 6, 2018

Conversation

bwillard
Copy link
Contributor

@bwillard bwillard commented Jul 6, 2018

This addresses #449 and will allow us to start publishing a docker image to docker hub so folks can run the demo without building anything.

Copy link
Contributor

@rtannenbaum rtannenbaum left a comment

Choose a reason for hiding this comment

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

Cool, noticed a build failure in Travis, I'll wait for that to be fixed to make sure the building approach is sound

here is the error

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all files for configuration ':extensions:cloud:portability-cloud-microsoft:compileClasspath'.

Could not find com.microsoft.rest:client-runtime:1.5.4.
Searched in the following locations:
https://jcenter.bintray.com/com/microsoft/rest/client-runtime/1.5.4/client-runtime-1.5.4.pom
https://jcenter.bintray.com/com/microsoft/rest/client-runtime/1.5.4/client-runtime-1.5.4.jar
Required by:
project :extensions☁️portability-cloud-microsoft
Could not find com.microsoft.rest:client-runtime:1.5.4.
Searched in the following locations:
https://jcenter.bintray.com/com/microsoft/rest/client-runtime/1.5.4/client-runtime-1.5.4.pom
https://jcenter.bintray.com/com/microsoft/rest/client-runtime/1.5.4/client-runtime-1.5.4.jar
Required by:
project :extensions☁️portability-cloud-microsoft > com.microsoft.azure:azure-client-runtime:1.5.4

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org
    BUILD FAILED in 19s
    130 actionable tasks: 6 executed, 124 up-to-date
    The command "eval ./gradlew assemble " failed.

For local development (only), secrets may be stored in gradle properties.
Add any test secrets to your local `.gradle/dataportability.secrets.properties` file. A
sample is provided in `distributions/common/dataportability.secrets.example.properties`.
For local development (only), secrets may be stored in environment variables.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe a quick example. We also have to ensure this works for the windows case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@@ -0,0 +1 @@
env.secrets
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we add **/env.secrets in case folks put it somewhere deeper in the directory?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure done.

@@ -0,0 +1,31 @@
# see https://docs.docker.com/compose/env-file/
# copy this file to env.secrets and fill in your own app credentials, see:
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we put the directory in here too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor Author

@bwillard bwillard left a comment

Choose a reason for hiding this comment

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

Ok build problem fixed and merged.

@@ -0,0 +1 @@
env.secrets
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure done.

@@ -0,0 +1,31 @@
# see https://docs.docker.com/compose/env-file/
# copy this file to env.secrets and fill in your own app credentials, see:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

For local development (only), secrets may be stored in gradle properties.
Add any test secrets to your local `.gradle/dataportability.secrets.properties` file. A
sample is provided in `distributions/common/dataportability.secrets.example.properties`.
For local development (only), secrets may be stored in environment variables.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

@rtannenbaum rtannenbaum left a comment

Choose a reason for hiding this comment

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

Very cool

A further step to make it easier for people to get up and running quickly: make it configurable which extensions to load (We may have a TODO for this somewhere). Otherwise people may think they need to register apps for every service.

Copy link
Collaborator

@holachuy holachuy left a comment

Choose a reason for hiding this comment

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

Approving for now but I don't see the fixes committed yet

@bwillard bwillard merged commit 884d397 into master Jul 6, 2018
@bwillard bwillard deleted the willard-dockerfix branch July 6, 2018 16:45
olsona pushed a commit that referenced this pull request Jul 6, 2018
This addresses #449 and will allow us to start publishing a docker image to docker hub so folks can run the demo without building anything.
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

3 participants