Skip to content

Commit

Permalink
taake out pgadmin and have db port available. fix grouper session
Browse files Browse the repository at this point in the history
  • Loading branch information
mchyzer committed Mar 2, 2024
1 parent 5382ed2 commit 3524838
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions base/container_files/var-www-html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ <h1>GTE jump page</h1>
<td>Admin: banderson / password<br />
Civilian: jsmith / password</td>
</tr>
<tr>
<!-- tr>
<td><a href="/pgadmin4/browser/">Database manager</a></td>
<td>https://localhost:8443/pgadmin4/browser/</td>
<td>pgAdmin PostgreSQL database manager</td>
<td>postgres@localhost.localdomain / Example123</td>
</tr>
</tr -->
<tr>
<td><a href="/phpldapadmin/">LDAP manager</a></td>
<td>https://localhost:8443/phpldapadmin/</td>
Expand Down
2 changes: 1 addition & 1 deletion ex201/ex201.end/container_files/grouper/bootstrap.gsh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ java.util.Date RECENT_GRAD_END_DATE = cal.time


/***** Start of script *****/
GrouperSession gs = GrouperSession.start(SubjectFinder.findByIdentifierAndSource("banderson", "eduLDAP", true))
GrouperSession gs = GrouperSession.startBySubjectIdentifierAndSource("banderson", "eduLDAP")

/* Creating a class for methods helps with gsh from the command line, which can't do functions called from other functions */
class HelperMethods {
Expand Down
2 changes: 1 addition & 1 deletion ex401/ex401.end/container_files/grouper/bootstrap.gsh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import edu.internet2.middleware.grouper.grouperUi.beans.ui.GroupStemTemplateCont
import java.text.SimpleDateFormat;


GrouperSession gs = GrouperSession.start(SubjectFinder.findByIdentifierAndSource("banderson", "eduLDAP", true))
GrouperSession gs = GrouperSession.startBySubjectIdentifierAndSource("banderson", "eduLDAP")

/* Creating a class for methods helps with gsh from the command line, which can't do functions called from other functions */
class HelperMethods {
Expand Down
6 changes: 2 additions & 4 deletions gte
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ fi
EXTRA_ARGS=

show_help() {
echo "$0 [--sql] [--ldap] [--fg|-it] [docker args ...] <gte lesson id> [container cmd ...]"
echo " --sql: Expose port 5432"
echo "$0 [--ldap] [--fg|-it] [docker args ...] <gte lesson id> [container cmd ...]"
echo " --ldap: Expose port 389"
echo " --fg: Don't detach (i.e., don't run container with -d flag"
echo " -h|--help: This help message"
Expand All @@ -19,7 +18,6 @@ show_help() {

for arg in $*; do
case $arg in
--sql) EXTRA_ARGS="$EXTRA_ARGS -p 5432:5432"; shift;;
--ldap) EXTRA_ARGS="$EXTRA_ARGS -p 389:389"; shift;;
--fg) is_foreground=1; shift;;
-it) is_foreground=1; EXTRA_ARGS="$EXTRA_ARGS $1"; shift;;
Expand Down Expand Up @@ -65,4 +63,4 @@ fi
#docker rm "$1" 2> /dev/null
#docker run -d -p 8443:443 --name $1 tier/gte:"$1"-202403
echo "Starting container tier/gte:"$LESSON_ID"-$VERSION_TAG"
docker run -p 8443:443 $EXTRA_ARGS --name $LESSON_ID tier/gte:"$LESSON_ID"-$VERSION_TAG $*
docker run -p 8443:443 -p 5432:5432 $EXTRA_ARGS --name $LESSON_ID tier/gte:"$LESSON_ID"-$VERSION_TAG $*

0 comments on commit 3524838

Please sign in to comment.