-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from internet2/pc_Sept2022
merge pc_Sept2022
- Loading branch information
Showing
16 changed files
with
12,948 additions
and
4,228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| <Directory /var/www/html/registry> | ||
| Options Indexes FollowSymLinks | ||
| DirectoryIndex index.php | ||
| AllowOverride All | ||
| Require all granted | ||
| </Directory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| SHELL=/bin/bash | ||
| PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | ||
| * * * * * /usr/local/bin/runcomangejob.sh 1 | ||
| * * * * * /usr/local/bin/runcomangejob.sh 2 | ||
| * * * * * /usr/local/bin/runcomangejob.sh 3 | ||
| # Deprecated job to run expirations, syncorgsources, and groupvalidity tasks (until Registry v4.0.0) | ||
| 0 * * * * /usr/local/bin/runcomangejob.sh |
37 changes: 37 additions & 0 deletions
37
Workbench/comanage_cron/container_files/system/setupcroncomanage.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| #!/bin/bash | ||
|
|
||
| # COmanage Registry shell script to install TIER beacon crontab | ||
| # | ||
| # Portions licensed to the University Corporation for Advanced Internet | ||
| # Development, Inc. ("UCAID") under one or more contributor license agreements. | ||
| # See the NOTICE file distributed with this work for additional information | ||
| # regarding copyright ownership. | ||
| # | ||
| # UCAID licenses this file to you under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with the | ||
| # License. You may obtain a copy of the License at: | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| CRONFILE='/tmp/cronfile' | ||
|
|
||
| # Set up job scripts for COmanage Cos | ||
|
|
||
| echo "# Run the job queue for CO 1 every 5 minutes" >> "${CRONFILE}" | ||
| #echo "0,5,10,15,20,25,30,35,40,45,50,55 * * * * cd /srv/comanage-registry/app && Console/cake job -q -r -c 1 >> /tmp/cron.log" >> "${CRONFILE}" | ||
| echo "* * * * * /usr/local/bin/runcomangejob.sh 1" >> "${CRONFILE}" | ||
| echo "# Run the job queue for CO 2 every 5 minutes, but 2 minutes later than for CO 1" >> "${CRONFILE}" | ||
| echo "0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/bin/runcomangejob.sh 2 " >> "${CRONFILE}" | ||
| echo "# TODO support an arbitrary number of COs for jobshell" >> "${CRONFILE}" | ||
| echo "# Deprecated job to run expirations, syncorgsources, and groupvalidity tasks (until Registry v4.0.0)" >> "${CRONFILE}" | ||
| echo "0 * * * * cd /srv/comanage-registry/app && Console/cake job -q" >> "${CRONFILE}" | ||
|
|
||
| chmod 644 "${CRONFILE}" | ||
| crontab "${CRONFILE}" | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,5 @@ | ||
| FROM tier/mariadb:mariadb10 | ||
| FROM postgres:12 | ||
|
|
||
| COPY container_files/seed-data/ /docker-entrypoint-initdb.d/ | ||
|
|
||
| COPY container_files/seed-data/ /seed-data/ | ||
|
|
||
| ENV MYSQL_DATABASE registry | ||
| ENV MYSQL_USER registry_user | ||
| ENV MYSQL_PASSWORD 123321 | ||
| ENV MYSQL_DATADIR /var/lib/mysqlmounted | ||
| ENV AFTER_FIRST_TIME_SQL /seed-data/comanage-bootstrap.sql |
Oops, something went wrong.