-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker-compose htcondor setup (#441)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
- Loading branch information
Showing
4 changed files
with
92 additions
and
24 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,10 @@ | ||
FROM htcondor/submit:el7 as submit | ||
|
||
RUN yum install -y gcc git | ||
RUN yum install -y python3-devel python3-pip | ||
RUN pip3 install dask distributed pytest | ||
|
||
FROM htcondor/execute:el7 as execute | ||
RUN yum install -y python3 | ||
COPY --from=submit /usr/local/lib/python3.6 /usr/local/lib/python3.6 | ||
COPY --from=submit /usr/local/lib64/python3.6 /usr/local/lib64/python3.6 |
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,57 @@ | ||
version: "3.4" | ||
|
||
services: | ||
cm: | ||
image: htcondor/cm:el7 | ||
hostname: cm.htcondor | ||
environment: | ||
- USE_POOL_PASSWORD=yes | ||
volumes: | ||
- secrets:/root/secrets | ||
command: bash -c 'condor_store_cred -p password -f /root/secrets/pool_password ; exec bash -x /start.sh' | ||
|
||
submit: | ||
image: daskdev/dask-jobqueue:htcondor-submit | ||
build: | ||
context: . | ||
target: submit | ||
hostname: submit.htcondor | ||
environment: | ||
- CONDOR_HOST=cm | ||
- USE_POOL_PASSWORD=yes | ||
depends_on: | ||
- cm | ||
volumes: | ||
- secrets:/root/secrets | ||
- ../..:/dask-jobqueue | ||
|
||
execute1: | ||
image: daskdev/dask-jobqueue:htcondor-execute | ||
build: | ||
context: . | ||
target: execute | ||
hostname: execute1.htcondor | ||
environment: | ||
- CONDOR_HOST=cm | ||
- USE_POOL_PASSWORD=yes | ||
depends_on: | ||
- cm | ||
volumes: | ||
- secrets:/root/secrets | ||
|
||
execute2: | ||
image: daskdev/dask-jobqueue:htcondor-execute | ||
build: | ||
context: . | ||
target: execute | ||
hostname: execute2.htcondor | ||
environment: | ||
- CONDOR_HOST=cm | ||
- USE_POOL_PASSWORD=yes | ||
depends_on: | ||
- cm | ||
volumes: | ||
- secrets:/root/secrets | ||
|
||
volumes: | ||
secrets: |
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,10 @@ | ||
#!/bin/bash | ||
|
||
docker-compose up -d | ||
|
||
while [ `docker-compose exec -T submit condor_status -af activity|grep Idle|wc -l` -ne 2 ] | ||
do | ||
echo "Waiting for cluster to become ready"; | ||
sleep 2 | ||
done | ||
echo "HTCondor properly configured" |