Docker doc

33 views
Skip to first unread message

Benito Gonzalez

unread,
Jul 17, 2019, 3:07:50 PM7/17/19
to uPortal Developers
Hi folks,

I added a write-up on how to use Docker with uPortal. It's thin but should get you started.


Have a great day!
--bjagg

Benito J. Gonzalez
Software Developer
Unicon, Inc.
Voice:  209.777.2754
 Text:  209.777.2754
Email:  bgon...@unicon.net
GitHub:  bjagg
GitLab:  bjagg
BitBucket:  bjagg


Mace, Mark

unread,
Jul 29, 2019, 3:10:04 PM7/29/19
to Benito Gonzalez, uPortal Developers
Benito, 

Thanks for the quick write up.  

I've built uPortal start and it's working when I use the gradle commands for deploying and starting tomcat and hsql.  However, when I build and try to launch the uPortal-demo docker images, I am seeing issues related to hsql.  

29-Jul-2019 18:55:37.667 SEVERE [Timer-3,uPortal.cacheManager,520fc1c49afe-31285] org.jgroups.protocols.JDBC_PING.writeToDB JGRP000145: Error updating JDBC_PING table

 java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: JGROUPSPING in statement [INSERT INTO JGROUPSPING (own_addr, cluster_name, ping_data) values (?, ?, ?)]


It has occurred to me that it might be the DB is not initialized for the docker image.  Am I on the right track?

--mark



From: uport...@apereo.org <uport...@apereo.org> on behalf of Benito Gonzalez <bgon...@unicon.net>
Sent: Wednesday, July 17, 2019 3:07 PM
To: uPortal Developers <uport...@apereo.org>
Subject: [uportal-dev] Docker doc
 
--
You received this message because you are subscribed to the Google Groups "uPortal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uportal-dev...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/uportal-dev/69771449.821523.1563390468343.JavaMail.zimbra%40unicon.net.

Benito Gonzalez

unread,
Jul 29, 2019, 3:15:10 PM7/29/19
to Mace, Mark, uPortal Developers
Hi Mark!

That table is not created with Hibernate, so it's in a tables.xml file using an older uPortal technology.

Other than the JGROUP module, does the portal seem to run okay?

--bjagg


From: "Mace, Mark" <ma...@ohio.edu>
To: "Benito Gonzalez" <bgon...@unicon.net>, "uPortal Developers" <uport...@apereo.org>
Sent: Monday, July 29, 2019 12:09:59 PM
Subject: [uportal-dev] Re: Docker doc

Mace, Mark

unread,
Jul 29, 2019, 4:00:21 PM7/29/19
to Benito Gonzalez, uPortal Developers
thanks for the response, since I'm new to docker, I've captured the results of running 'docker run -it -p 8080:8080 apereo/uportal-demo' and attached it to this email (startup.txt).  

Now that I'm looking at the text file I see are a Node related error, could that be the issue?


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':overlays:uPortal:npmInstall'.
> Process 'command '/home/gradle/overlays/uPortal/.gradle/nodejs/node-v12.2.0-linux-x64/bin/npm'' finished with non-zero exit value 127

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 29s


Tomcat is responding, localhost:8080 gives me the tomcat page, put localhost:8080/uPortal gives me a 404 error.

thanks in advance for your help!

From: Benito Gonzalez <bgon...@unicon.net>
Sent: Monday, July 29, 2019 3:15 PM
To: Mace, Mark <ma...@ohio.edu>; uPortal Developers <uport...@apereo.org>
Subject: Re: [uportal-dev] Re: Docker doc
 
startup.txt

Mace, Mark

unread,
Jul 29, 2019, 5:05:18 PM7/29/19
to Benito Gonzalez, uPortal Developers
Benito,

I started thinking about what I was doing and looking at the startup file.  When I was messing around, I ran the skinGenerate task, which was the ONLY change I made from the initial clone of uPortal-start.  I went back, removed those files and ran the portalInit task followed up by creating the docker images again and now it's working.

Not sure if I ran the portalInit task after the skinGenerate, so it might be a failure in sequence on my part.  I'll test further later tonight or tomorrow.

--mark

From: uport...@apereo.org <uport...@apereo.org> on behalf of Mace, Mark <ma...@ohio.edu>
Sent: Monday, July 29, 2019 4:00 PM
To: Benito Gonzalez <bgon...@unicon.net>; uPortal Developers <uport...@apereo.org>

Benito Gonzalez

unread,
Jul 29, 2019, 5:12:20 PM7/29/19
to Mace, Mark, uPortal Developers

Glad to hear from you!
--bjagg


From: "Mace, Mark" <ma...@ohio.edu>
To: "Benito Gonzalez" <bgon...@unicon.net>, "uPortal Developers" <uport...@apereo.org>
Sent: Monday, July 29, 2019 2:05:16 PM
Reply all
Reply to author
Forward
0 new messages