-
Notifications
You must be signed in to change notification settings - Fork 73
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
Overriding init.sh results in two init.sh headers in the sls.tgz #736
Comments
Why do you want to overwrite the init.sh? |
The reason we override init.sh is so that we can install and apollo manage a java based dropwizard CLI. The custom init.sh script starts up a python service that gets launched instead and gives green/red status back to Apollo so it think's its running. This allows the CLI to be Apollo managed. |
If we don't fix this, I just resort to hacking my way around the plugin using |
I don't think its desirable to support custom |
Then the plugin should not allow an invalid tar with two headers to be created by validating that. Either way there probably should be a code change here. |
What happened?
In an sls repo create a service directory with a file named service/bin/init.sh.
run ./gradlew distTar
Find that the resulting tar has two init.sh files in the tar.
What did you want to happen?
I would expect that I would have only one init.sh file in the resulting tar, the one that I put in the folder service/bin/init.sh in the git repo.
I think this plugin should intelligently disable the createInitScript task if the file exists, or the createInitScript task should intelligently use the one on disk rather then creating it.
The text was updated successfully, but these errors were encountered: