Skip to content

Commit 856988c

Browse files
authored
Merge pull request #1 from uvasds-systems/main
Merging before class
2 parents 3bea445 + e99b6d9 commit 856988c

4 files changed

Lines changed: 84 additions & 1 deletion

File tree

.github/workflows/bounce.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: PR Bouncer
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, reopened, synchronize] # Trigger on various pull request events
6+
7+
jobs:
8+
check-pull-request:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4 # Use a recent version
13+
- name: Check for external changes
14+
run: |
15+
# Set the allowed directory
16+
ALLOWED_DIR="uvasds-services/templates/ds2002"
17+
# Get the list of changed files
18+
CHANGED_FILES=$(git diff --name-only --relative HEAD^ HEAD)
19+
# Check if any of the changed files are outside the allowed directory
20+
if [[ $(echo "$CHANGED_FILES" | grep -q "^$ALLOWED_DIR/") ]] ; then
21+
# No changes outside the allowed directory
22+
echo "All changes within allowed directory"
23+
exit 0
24+
else
25+
# Changes outside the allowed directory
26+
echo "Changes outside the allowed directory detected"
27+
echo "Pull request rejected."
28+
exit 1
29+
fi

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A repository for container Services managed by UVA School of Data Science.
77
Deployments follow the Helm structure, containing `Charts.yaml` and optional `values.yaml` in the root directory,
88
followed by `templates/` which in turn contains one or more deployments.
99

10-
Standard deployments that include web access will tend to contain at least three files (which can be separate files or concatenated with `---` between stanzas):
10+
Standard deployments that include web access will tend to contain at least three files (which can be separate files or concatenated with `---` between stanzas into a single file):
1111

1212
- `deployment.yaml` - Describes the container, replicas, `env` variables, resource allocations, etc.
1313
- `nginx-ingress.yaml` - Describes the ingress rules, routing, FQDN mappings, and possible TLS secrets for HTTPS.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: batch/v1
2+
kind: CronJob
3+
metadata:
4+
name: nem2p-job
5+
namespace: uvasds-services
6+
spec:
7+
schedule: "0-59/5 * * * *"
8+
jobTemplate:
9+
spec:
10+
template:
11+
spec:
12+
containers:
13+
- name: nem2p-job-container
14+
image: ghcr.io/uvasds-systems/docker-iss:latest
15+
imagePullPolicy: Always
16+
envFrom:
17+
- secretRef:
18+
name: ds2002-mongo
19+
resources:
20+
limits:
21+
cpu: "0.25"
22+
memory: 512Mi
23+
requests:
24+
cpu: "0.1"
25+
memory: 256Mi
26+
restartPolicy: Never
27+
ttlSecondsAfterFinished: 86400
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: batch/v1
2+
kind: CronJob
3+
metadata:
4+
name: nem2p-job
5+
namespace: uvasds-services
6+
spec:
7+
schedule: "0-59/5 * * * *"
8+
jobTemplate:
9+
spec:
10+
template:
11+
spec:
12+
containers:
13+
- name: nem2p-job-container
14+
image: ghcr.io/uvasds-systems/docker-iss:latest
15+
imagePullPolicy: Always
16+
envFrom:
17+
- secretRef:
18+
name: ds2002-mongo
19+
resources:
20+
limits:
21+
cpu: "0.25"
22+
memory: 512Mi
23+
requests:
24+
cpu: "0.1"
25+
memory: 256Mi
26+
restartPolicy: Never
27+
ttlSecondsAfterFinished: 86400

0 commit comments

Comments
 (0)