Skip to content

Commit

Permalink
feat(backends): add new Compute4PUNCH backend (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
giffels authored and mdonadoni committed Jul 4, 2024
1 parent 32ce567 commit 4243252
Show file tree
Hide file tree
Showing 12 changed files with 738 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,6 @@ target/

# Vagrant
.vagrant

# Pycharm
.idea
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The list of contributors in alphabetical order:
- [Giuseppe Steduto](https://orcid.org/0009-0002-1258-8553)
- [Jan Okraska](https://orcid.org/0000-0002-1416-3244)
- [Kenyi Hurtado-Anampa](https://orcid.org/0000-0002-9779-3566)
- [Manuel Giffels](https://orcid.org/0000-0003-0193-3032)
- [Marco Donadoni](https://orcid.org/0000-0003-2922-5505)
- [Marco Vidal](https://orcid.org/0000-0002-9363-4971)
- [Parth Shandilya](https://github.com/ParthS007)
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,16 @@ ARG DEBUG=0
RUN if [ "${DEBUG}" -gt 0 ]; then \
if echo "$COMPUTE_BACKENDS" | grep -q "htcondorcern"; then \
pip install --no-cache-dir -e ".[debug,htcondor]"; \
elif echo "$COMPUTE_BACKENDS" | grep -q "compute4punch"; then \
pip install --no-cache-dir ".[debug,mytoken,ssh]"; \
else \
pip install --no-cache-dir -e ".[debug]"; \
fi \
else \
if echo "$COMPUTE_BACKENDS" | grep -q "htcondorcern"; then \
pip install --no-cache-dir ".[htcondor]"; \
elif echo "$COMPUTE_BACKENDS" | grep -q "compute4punch"; then \
pip install --no-cache-dir ".[mytoken,ssh]"; \
else \
pip install --no-cache-dir .; \
fi \
Expand Down
9 changes: 9 additions & 0 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@
},
"JobRequest": {
"properties": {
"c4p_additional_requirements": {
"type": "string"
},
"c4p_cpu_cores": {
"type": "string"
},
"c4p_memory_limit": {
"type": "string"
},
"cmd": {
"default": "",
"type": "string"
Expand Down
Loading

0 comments on commit 4243252

Please sign in to comment.