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

Updating Docker files for UPS #8

Merged
merged 7 commits into from
Dec 2, 2015
Merged

Conversation

matzew
Copy link

@matzew matzew commented Jul 21, 2015

  • removing quickstarts image
  • Using Centos7, WF9 and Java8 (inheriting from 9.0.0.Final WF image) for UPS images
  • explicitly referencing 9.0.0.Final instead of latests
  • DB references via container links for MySQL
  • README updates

@matzew
Copy link
Author

matzew commented Jul 21, 2015

@danielpassos @secondsun @sebastienblanc @abstractj wanna take a look ?

@secondsun
Copy link

followed the instructions in the readme, got this when I fired up the UPS container
https://gist.github.com/secondsun/e1a7d791636c5b448994

@matzew
Copy link
Author

matzew commented Jul 22, 2015

did you do the linking ?

On Wed, Jul 22, 2015 at 5:06 PM, Hoyt Summers Pittman <
notifications@github.com> wrote:

followed the instructions in the readme, got this when I fired up the UPS
container
https://gist.github.com/secondsun/e1a7d791636c5b448994


Reply to this email directly or view it on GitHub
#8 (comment).

Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

@danielpassos
Copy link
Collaborator

My 2 cents matzew#1

@secondsun
Copy link

@matzew
Looking higher up in the thread looks like i had this : https://gist.github.com/secondsun/e2b25d0e22c62a13971d

@matzew
Copy link
Author

matzew commented Jul 22, 2015

summers,

you need to build the wildfly image too!
not just the dev!

your is still java7

mine goes Centos7, wf9 and jdk8 ;)

On Wednesday, July 22, 2015, Hoyt Summers Pittman notifications@github.com
wrote:

@matzew https://github.com/matzew
Looking higher up in the thread looks like i had this :
https://gist.github.com/secondsun/e2b25d0e22c62a13971d


Reply to this email directly or view it on GitHub
#8 (comment).

Sent from Gmail Mobile


```shell
docker run --name ups-dev \
--link unifiedpushDEV:unifiedpush

Choose a reason for hiding this comment

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

missing a '' after unifiedpush

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good catch

@danielpassos
Copy link
Collaborator

19:14:54,477 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service jboss.deployment.unit."ag-push.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."ag-push.war".PARSE: JBAS018733: Failed to process phase PARSE of deployment "ag-push.war"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]

What I did?

docker build -t aerogear/unifiedpush-wildfly .

docker run --name keycloak \
           -p 5306:3306 \
           -e MYSQL_USER=unifiedpush \
           -e MYSQL_PASSWORD=unifiedpush \
           -e MYSQL_DATABASE=unifiedpush \
           -e MYSQL_ROOT_PASSWORD=supersecret \
           -d mysql        

docker run --name unifiedpush \
           -p 3306:3306 \
           -e MYSQL_USER=unifiedpush \
           -e MYSQL_PASSWORD=unifiedpush \
           -e MYSQL_DATABASE=unifiedpush \
           -e MYSQL_ROOT_PASSWORD=supersecret \
           -d mysql

docker run --name ups \
           --link unifiedpush:unifiedpush \
           --link keycloak:keycloak \
           -p 8443:8443 \
           -it aerogear/unifiedpush-wildfly

@danielpassos
Copy link
Collaborator

you need to build the wildfly image too! not just the dev!

So, maybe is a good idea add it in the README

@danielpassos
Copy link
Collaborator

After build aerogear/wildfly first. It works for me

@vibe13
Copy link
Member

vibe13 commented Jul 23, 2015

@matzew Running the second run command (first went fine), I get:

FATA[0002] Error response from daemon: Cannot start container 0916d9f7e2498c42dfcdd9404aa439ce101674a4f1a3bcd84a4536947d2b581a: Error starting userland proxy: listen tcp 0.0.0.0:3306: bind: address already in use

[ Fedora 21, Docker version 1.6.0, build 350a636/1.6.0]

@vibe13
Copy link
Member

vibe13 commented Jul 23, 2015

@matzew
Sorry, I built the first image (wildfly) without specifying the tag. I also had a local MySQL instance running, which I stopped.
Rebuilding the 2 images with the proper commands, and executing the 3 run commands above, everything worked.
Thanks!

@vibe13
Copy link
Member

vibe13 commented Jul 23, 2015

Worth mentioning that there is an error in the log (it does not block the deployment):

10:47:36,114 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate](ServerService Thread Pool -- 67) HHH000388: Unsuccessful: create index deviceTokenIndex on Installation (deviceToken)
10:47:36,114 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate](ServerService Thread Pool -- 67) Specified key was too long; max key length is 767 bytes

@matzew
Copy link
Author

matzew commented Jul 23, 2015

@vibe13 the INDEX is a known thing - we have JIRA somewhere for that :)

@vibe13
Copy link
Member

vibe13 commented Jul 23, 2015

@matzew ok great :-)

@matzew
Copy link
Author

matzew commented Jul 23, 2015

@vibe13 what Docker version are you using ? @secondsun had issues w/ 1.6.x on his Fedora-21

@secondsun
Copy link

@matzew I'm running 1.7.1 now. Still have the same issues.

@matzew
Copy link
Author

matzew commented Jul 23, 2015

I tested the unifiedpush-wildfly from a VM, that comes w/ Fedora:

cat /etc/redhat-release && docker --version
Fedora release 21 (Twenty One)
Docker version 1.5.0, build a8a31ef/1.5.0

and, well - works there

@secondsun
Copy link

Ok so here are my tests :

Fedora 22 Docker provided 1.7.0, 1.7.1 - aerogear/unifiedpush-wildfly can not connect to the mysql instances.
Fedora 22 Fedora provided 1.7.0, 1.7.1 - aerogear/unifiedpush-wildfly can not connect to the mysql instances.

** UPDATE **
Fedora 22 requires docker to be started with --iptables=true and --icc=false set in /etc/sysconfig/docker

Fedora 21 - Fedora Provided 1.6.0 - runs correctly
Debian Stable - Debian provided 1.5.0 - runs correctly.

@secondsun
Copy link

One thing that I noticed : If you build from the master branch and someone updates the master branch docker won't pull the updates because it will still be using the cached steps from a previous build.

It looks like there are workarounds to make sure the clone step runs every time, but that will be something to investigate

@matzew
Copy link
Author

matzew commented Dec 1, 2015

@secondsun mind giving this a new try?

  • building the WF image
  • building the -dev image

That step was failing for you in the past

@secondsun
Copy link

Dev is working for me on Fedora 22 now.
Will check not dev
GG

@secondsun
Copy link

Stable looks good, +1

matzew added a commit that referenced this pull request Dec 2, 2015
Updating Docker files for UPS
@matzew matzew merged commit eaa93b3 into aerogear:master Dec 2, 2015
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.

5 participants