-
Notifications
You must be signed in to change notification settings - Fork 640
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
Include Dockerfile in root of project #1222
Comments
Made a similar request in Cortex: TheHive-Project/Cortex#247 |
Dockerfile generated by sbt won't let you build container directly from the repo itself. It just copies files that are already built into a docker image. I put some effort a year ago to create one. Happily send a PR if TheHive Project's maintainers are willing to have it here though. |
@ilyaglow I think you should do that 👍 |
@ilyaglow great job for your Dockerfile. You don't need to install sbt as TheHive comes with a wrapper ( |
Thanks @ilyaglow |
Awesome! Recently I've improved it a little more (and was going to send a PR but had not enough time), so the image could be built like this:
With your recent commit you can build TheHive repo like that too, but it clones the repo twice: first on the Also, it allows users to build container for any chosen branch that has this dockerfile without even using docker build args because it always copy current git context. As a downside, it doesn't allow us (or it won't be straightforward) to build an older version of TheHive repo. Just something to probably consider. |
Include
Dockerfile
in root of projectRequest Type
Feature Request
Description
As part of the development and release cycle, please include the Dockerfile generated by docker.sbt in the root of the project so that the container can be built directly from the repo itself.
Note: This is a rehash of a previously closed issue which I believe is worth revisiting.
The text was updated successfully, but these errors were encountered: