Skip to content
Snippets Groups Projects
Commit a1067bbc authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

Rename packer template for compute to login

Because compute and login nodes are basically the same except login node
does not need slurmd and we don't use compute image anywhere. So use it
to build login image and change its references in CI script
parent 327768b4
No related branches found
No related tags found
No related merge requests found
...@@ -149,9 +149,9 @@ build_ssh_proxy_image: ...@@ -149,9 +149,9 @@ build_ssh_proxy_image:
export PKR_VAR_image_name="${BUILD_TARGET}-${BUILD_DATE}" export PKR_VAR_image_name="${BUILD_TARGET}-${BUILD_DATE}"
fi fi
# packer commands # packer commands
- packer init openstack-compute - packer init openstack-login
- packer validate openstack-compute - packer validate openstack-login
- packer build -machine-readable openstack-compute | tee login_build.log - packer build -machine-readable openstack-login | tee login_build.log
- export BUILT_LOGIN_IMAGE_ID=$(grep 'Image:' login_build.log | awk '{print $4}') - export BUILT_LOGIN_IMAGE_ID=$(grep 'Image:' login_build.log | awk '{print $4}')
- echo BUILT_LOGIN_IMAGE_ID=${BUILT_LOGIN_IMAGE_ID} | tee -a $CI_PROJECT_DIR/image.env - echo BUILT_LOGIN_IMAGE_ID=${BUILT_LOGIN_IMAGE_ID} | tee -a $CI_PROJECT_DIR/image.env
# set image properties with repo state # set image properties with repo state
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment