-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add custom build of infiniband with ubuntu 24.04
Because Microsoft is only providing an image from 2022... :/ Signed-off-by: vsoch <[email protected]>
- Loading branch information
Showing
5 changed files
with
473 additions
and
0 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,18 @@ | ||
.PHONY: all | ||
all: init fmt validate build | ||
|
||
.PHONY: init | ||
init: | ||
packer init . | ||
|
||
.PHONY: fmt | ||
fmt: | ||
packer fmt . | ||
|
||
.PHONY: validate | ||
validate: | ||
packer validate . | ||
|
||
.PHONY: build | ||
build: | ||
packer build flux-usernetes.pkr.hcl |
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,38 @@ | ||
# Build Packer Images | ||
|
||
Note that I needed to do this build from a cloud shell, so clone and then: | ||
|
||
```bash | ||
git clone https://github.com/converged-computing/flux-usernetes | ||
cd flux-usernetes/azure/build-ubuntu-24.04 | ||
``` | ||
|
||
And install packer | ||
|
||
```bash | ||
wget https://releases.hashicorp.com/packer/1.11.2/packer_1.11.2_linux_amd64.zip | ||
unzip packer_1.11.2_linux_amd64.zip | ||
mkdir -p ./bin | ||
mv ./packer ./bin/ | ||
export PATH=$(pwd)/bin:$PATH | ||
``` | ||
|
||
Get your account information for azure as follows: | ||
|
||
```bash | ||
az account show | ||
``` | ||
|
||
And export variables in the following format. Note that the resource group needs to actually exist - I created mine in the console UI. | ||
|
||
```bash | ||
export AZURE_SUBSCRIPTION_ID=xxxxxxxxx | ||
export AZURE_TENANT_ID=xxxxxxxxxxx | ||
export AZURE_RESOURCE_GROUP_NAME=packer-testing | ||
``` | ||
|
||
Then build! | ||
|
||
```bash | ||
make | ||
``` |
Oops, something went wrong.