-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge singularity build and refactor controller setup
* Increase the size and add ssd to the controller node for builds * Fix Spack build not to utilize slurm (did not speed up!). * Move all builds to controller.
- Loading branch information
1 parent
0e62409
commit d0b9cc2
Showing
6 changed files
with
79 additions
and
32 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: keycloak | ||
| labels: | ||
| app: keycloak | ||
| spec: | ||
| ports: | ||
| - name: http | ||
| port: 8080 | ||
| targetPort: 8080 | ||
| selector: | ||
| app: keycloak | ||
| type: LoadBalancer | ||
| --- | ||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: keycloak | ||
| namespace: default | ||
| labels: | ||
| app: keycloak | ||
| spec: | ||
| replicas: 1 | ||
| selector: | ||
| matchLabels: | ||
| app: keycloak | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: keycloak | ||
| spec: | ||
| containers: | ||
| - name: keycloak | ||
| image: quay.io/keycloak/keycloak:13.0.0 | ||
| env: | ||
| - name: KEYCLOAK_USER | ||
| value: "admin" | ||
| - name: KEYCLOAK_PASSWORD | ||
| value: "classadmin" | ||
| - name: PROXY_ADDRESS_FORWARDING | ||
| value: "true" | ||
| ports: | ||
| - name: http | ||
| containerPort: 8080 | ||
| - name: https | ||
| containerPort: 8443 | ||
| readinessProbe: | ||
| httpGet: | ||
| path: /auth/realms/master | ||
| port: 8080 |
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
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,16 @@ | ||
| #!/bin/bash | ||
|
|
||
| echo "=== spack.sh $(hostname) $(date)" | ||
|
|
||
| sudo yum install -y epel-release | ||
| sudo yum install -y git python3 ca-certificates procps curl unzip jq | ||
| sudo yum install -y gcc gcc-c++ make patch file bzip2 xz | ||
|
|
||
| sudo install -dv /apps/spack | ||
| sudo chown $USER /apps/spack | ||
| git clone --depth=1 https://github.com/spack/spack.git /apps/spack | ||
|
|
||
| . /apps/spack/share/spack/setup-env.sh | ||
| spack install lmod python py-pip miniconda3 | ||
|
|
||
| echo "=== spack.sh $(hostname) $(date) done" |
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,3 +1,6 @@ | ||
| #!/bin/bash | ||
|
|
||
| gcloud compute ssh class-controller -- < scripts/controller.sh | ||
|
|
||
| gcloud compute ssh class-controller -- sudo -i < scripts/singularity.sh | ||
| gcloud compute ssh class-controller -- < scripts/spack.sh |