Skip to content

Commit

Permalink
Trying to fix jobbergate install command
Browse files Browse the repository at this point in the history
  • Loading branch information
dusktreader committed May 3, 2024
1 parent 6757521 commit 19a8b03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions democluster/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ check-deps: ## Check deps needed to build the image
.PHONY: init
init: ## Run packer init .
@if [ ! -z "$JG_VERSION" ]; then\
sed -i 's/jobbergate-agent==[0-9]\+\.[0-9]\+\.[0-9]\+/jobbergate-agent==$(JG_VERSION)/' user-data;\
sed -i "s/jobbergate-agent==[0-9]\+\.[0-9]\+\.[0-9]\+/jobbergate-agent==${JG_VERSION}/" user-data;\
fi
${PACKER} init .

Expand All @@ -40,7 +40,7 @@ delete-democluster-local: ## Delete the local democluster.
multipass delete democluster
multipass purge

.PHONY: deploy-democluster-local
.PHONY: deploy-democluster-local
deploy-democluster-local: delete-democluster-local ## Deploy democluster from locally built image.
./helpers/deploy_local_democluster.sh $(CLIENT_ID) $(CLIENT_SECRET)

Expand Down
2 changes: 1 addition & 1 deletion democluster/user-data
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ runcmd:
# create jobbergate agent venv
- /usr/bin/python3 -m venv /srv/jobbergate-agent-venv
- /srv/jobbergate-agent-venv/bin/pip install -U pip
- /srv/jobbergate-agent-venv/bin/pip install jobbergate-agent
- /srv/jobbergate-agent-venv/bin/pip install jobbergate-agent==5.1.0
- |
cat <<EOF > /srv/jobbergate-agent-venv/.env
JOBBERGATE_AGENT_X_SLURM_USER_NAME=root
Expand Down

0 comments on commit 19a8b03

Please sign in to comment.