-
Notifications
You must be signed in to change notification settings - Fork 383
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
Package as Docker image #90
Comments
should just build the war file
would build the war file and run it with jetty. If you do 'jetty:run' then it downloads the jetty libraries, so that maybe what you are seeing. |
Can't be the Jetty libraries downloaded in advance at build time? |
Also, what are pros/cons of dowloading in advance, apart from startup time and requiring connectivity? Any recommendation or good practice on that? |
It's only going to download jetty if you use the plugin. There isn't many options for the jetty plugin, but you could maybe try
to do the build, then do
and that should keep the download/build separate from running the server. |
It works! Thanks.
Meanwhile, feel free to create an account and organization at Docker Hub to host the built images. Create a new 'Automated build' and link it to your Github repo. Add 'pataquets' to the organization existing 'owner' group. |
No standard /etc/ssl private key/cert found. Learnt about keystores. Found keystore files:
IMO, no built-in cert/key should be provided, except if warned on docs/install as it's done now. |
Submitted PR #91 |
Two years later, the Dockerfile is in the wrong branch after the PR was merged. Any chance this will get fixed @skavanagh ? |
uhh.. no it wasn't. It was merged to master and removed here ef069c8 Probably b/c the docker file doesn't have the DB on a volume outside the container, like how these projects have. https://github.com/schmas/docker-keybox |
A container should only have 1 process in it. While that Dockerfile may feel "batteries not included", there's value in the single responsibility principle. Perhaps someone wants to use a non-containerized DB? If the KeyBox container's DB connection config is derived from environment variables, then you get this flexibility. If the Dockerfile were brought back, an accompanying docker-compose file could help demonstrate what a full setup with a KeyBox container and DB container would look like. |
is https://github.com/e-COSI/docker-bastillion related to this discussion? |
@PackElend Yes. |
Any updates on this one from an official point of view? |
No longer using KeyBox, but found this open issue while doing some issue cleanup.
I don't know if the deleted Dockerfile would still work, but it would be useful if there are enough Docker users interested in keeping it up-to-date, as it would also serve as sort of canonical build docs. docker build -t keybox https://github.com/bastillion-io/Bastillion I think this approach would be a good compromise for most users. WDYT? |
I didn't new that there was a Docker file so I forked the above mentioned e-COSI Image and I'm now keeping it up-to-date. |
I've discovered KeyBox and found it a very great app. Congrats and thanks for it.
I now plan to package it into a Docker image and help create a Docker Hub official image.
The problem is that I'm no Java programmer nor have any experience with Maven.
My goal as of now is to provide an image which:
a) contains a source-built and ready-to-run artifact. I don't want to package any pre-built release, since the whole point of it is to link the Docker image to the latest sources and, optionally, to specific git tags/branches.
b) After having (a), I need another command that just runs the previously built artifact without triggering any further download or build process.
Note tha this should be break, so to happen in two separate steps, to build a downloadable image that will be run afterwards.
My problem now is that, whatever the steps I do, I can build a .war file, but when I try to run the built file, it ends downloading stuff and building again. :(
I tried several combinations, ranging from
mvn install
/mvn jetty:run
to war:war, jetty:deploy-war, jetty:run-war with no luck. I've also browsed the release tarballs, but found no helpful info.Official Maven docs are not useful to me because of my limited Java/Maven knowledge.
The text was updated successfully, but these errors were encountered: