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

Docker container #1

Closed
pascalgrimaud opened this issue Feb 9, 2016 · 15 comments
Closed

Docker container #1

pascalgrimaud opened this issue Feb 9, 2016 · 15 comments

Comments

@pascalgrimaud
Copy link
Member

I've just worked on a Dockerfile to containerize this application :

  • based on the image java:8
  • Docker Hub : it can be automated or manually to the JHipster organization

Command to launch the container (currently, on my local) :

docker run -p 8761:8761 -d jhipster/jhipster-registry

@jdubois : can I add it to Docker Hub JHipster organization and should I configure Docker Hub to automated this application ?
cc @PierreBesson too because I don't know if you work on the registry

With this new image, we'll be able to test gateway / microservices (jhipster/generator-jhipster#2804)

@PierreBesson
Copy link
Contributor

I think that this is what we need. Just waiting for @jdubois to confirm.

@jdubois
Copy link
Member

jdubois commented Feb 10, 2016

Hi @pascalgrimaud yes this is what we need, great!
BTW, shouldn't we move to Alpine Linux, it looks like it's what everyone is migrating to, as it's very light

@pascalgrimaud
Copy link
Member Author

Of course we should !
Ok, so let's do it. I will PR as soon as it's ready => need to rework with Alpine

@pascalgrimaud
Copy link
Member Author

Just finished the Dockerfile, based on official alpine:3.3, inspired from anapsix/alpine-java
=> I always prefer using a based official image

It worked before my rebase, and after rebase, the app.jar can't start => probably #4

@PierreBesson : I have not enought time to investigate this issue. So as soon as you resolve it, ping me plz and I will PR 😄

@PierreBesson
Copy link
Contributor

OK, I will look into it.

@PierreBesson
Copy link
Contributor

@pascalgrimaud it's fixed now.

@pascalgrimaud
Copy link
Member Author

Thanks @PierreBesson !
I will do my PR tonight (I can't during day work...)

@pascalgrimaud
Copy link
Member Author

The image is online on Docker Hub : jhipster/jhipster-registry
Not sure it's totally automated ; need probably to do the same webhook

@jdubois
Copy link
Member

jdubois commented Feb 16, 2016

Well, there is a new image that was automatically created, do I need to do something else?

@pascalgrimaud
Copy link
Member Author

Yes @jdubois, probably same thing with generator-jhipster : add the trigger token/url from Docker Hub to Github>Settings>Webhooks & Services>Add Webhooks

@jdubois
Copy link
Member

jdubois commented Feb 16, 2016

OK, I just did it and it triggered a build

@pascalgrimaud
Copy link
Member Author

Perfect ! Thanks Julien

@kozla13
Copy link

kozla13 commented Dec 31, 2017

i run
docker run -d -p 8761:8761 --restart=always jhipster/jhipster-registry:latest
but cant login:
Failed to sign in! Please check your credentials and try again.

@PierreBesson
Copy link
Contributor

@kozla13 Please correctly read the documentation.

@pascalgrimaud
Copy link
Member Author

@kozla13 :

  1. look at your Docker logs, you should see this message:
----------------------------------------------------------
2017-12-31 21:59:28.713 ERROR 7 --- [           main] i.g.j.registry.JHipsterRegistryApp       : 
----------------------------------------------------------
Your JWT secret key is not set up, you will not be able to log into the JHipster.
Please read the documentation at http://www.jhipster.tech/jhipster-registry/
----------------------------------------------------------
  1. use this, instead: docker run -d -p 8761:8761 -e JHIPSTER_SECURITY_AUTHENTICATION_JWT_SECRET=toto --restart=always jhipster/jhipster-registry:latest

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

No branches or pull requests

4 participants