Skip to content
Public template

About

Hello world system for CuOS IaC

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

Repository files navigation

CuOS Hello World

A complete CuOS system in two files. This is the Container Service level: CuOS IaC runs as the CuOS Init App and deploys what this repository describes, so there is no image to build and no container to write.

File What it is
system.json The system: images, network, access. Includes cuos-release/release.json for the pinned CuOS versions.
docker-compose.yml The services. Here: a welcome page on port 80, plus the WebUI, the fleet agent and the dev container from cuos-release.

The repository is its own deployment source. iac_repo_url in system.json points back here, so the running system pulls its service definitions from the same place its configuration came from. Push to the branch named in iac_repo_branch, and the system follows.

Build it

git clone --recurse-submodules https://github.com/cuos-dev/iac-hello-world-system.git
cd iac-hello-world-system
./cuos-release/tool.sh image system.json

cuos-release is a submodule of this repository — that is the recommended way to consume it, so your system definition and the tooling that builds it are versioned together.

The result lands in output/; ./cuos-release/tool.sh name system.json prints the file name. Writing it to a disk, wrapping it in an ISO installer or exporting it as an LXC container is all in the cuos-release README.

Make it yours

  • Replace the welcome service in docker-compose.yml.
  • Point iac_repo_url at your own fork, and os_root_authorized_keys at your own SSH key — the one committed here is the maintainer's.
  • os_ssh_server and dev-keys are on for convenience. Turn them off for anything that is not a toy.

Next


License

MIT-0 — see LICENSE.txt. MIT without the attribution clause: copy this, change it, ship it, and you owe nothing — no notice to carry, no credit to give.

That is deliberate. This repository exists to be taken. CuOS itself is Apache-2.0; only the boiler plates and the example are MIT-0.

About

Hello world system for CuOS IaC

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors