https://github.com/converged-computing/usernetes-tofu-gcp
Development environment for usernetes on Google Cloud (using HashiCorp Packer and Terraform)
https://github.com/converged-computing/usernetes-tofu-gcp
Last synced: 5 months ago
JSON representation
Development environment for usernetes on Google Cloud (using HashiCorp Packer and Terraform)
- Host: GitHub
- URL: https://github.com/converged-computing/usernetes-tofu-gcp
- Owner: converged-computing
- License: apache-2.0
- Created: 2023-09-01T00:51:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-08T21:27:56.000Z (over 2 years ago)
- Last Synced: 2025-09-10T14:50:08.517Z (9 months ago)
- Language: HCL
- Size: 64.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Usernetes on Google Cloud
> Using OpenTofu
This is an OpenTofu module to create Google Cloud images for Usernetes development using HashiCorp Packer. We are going off of the pull request [here](https://github.com/rootless-containers/usernetes/pull/287) and development is happening in [examples/basic](examples/basic). Note that we are installing docker to the VM, and the hope is that this is mostly interchangeable with podman.
## Usage
### Create Google Service Accounts
Create default application credentials (just once):
```bash
$ gcloud auth application-default login
```
this is for packer to find and use.
### Build Images with Packer
Let's first go into [build-images](build-images) to use packer to build our images.
You'll need to first [install packer](https://developer.hashicorp.com/packer/downloads)
You can use the Makefile there to build all (or a select set of) images.
Note that we are currently advocating for using the single bursted image:
```bash
export GOOGLE_PROJECT=myproject
cd ./build-images/compute
```
```bash
$ make
```
### Deploy with OpenTofu
You can build images under [build-images](build-images) and then use the modules
provided in [tf](tf). An example is provided in [examples/basic](examples/basic).
## License
HPCIC DevTools is distributed under the terms of the MIT license.
All new contributions must be made under this license.
See [LICENSE](https://github.com/converged-computing/cloud-select/blob/main/LICENSE),
[COPYRIGHT](https://github.com/converged-computing/cloud-select/blob/main/COPYRIGHT), and
[NOTICE](https://github.com/converged-computing/cloud-select/blob/main/NOTICE) for details.
SPDX-License-Identifier: (MIT)
LLNL-CODE- 842614