Skip to content

Commit

Permalink
feat(backends): add new Compute4PUNCH backend (reanahub#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 f20e523
Show file tree
Hide file tree
Showing 11 changed files with 737 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
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 f20e523

Please sign in to comment.