A minimal Galaxy for Cosmos used to demonstrate local and offline installation flows.
This repository contains a basic working Galaxy with a small, statically linked hello binary and a sample Nebula (core-stack) to show how a Cosmos install flow works.
helloβ statically linked binary, installs to/usr/bin/hellocore-stackβ a Nebula that depends onhello, simulates a base install stack
example-galaxy/
βββ meta.toml
βββ stars/
β βββ hello.toml
β βββ core-stack.toml
βββ packages/
β βββ hello-0.1.0.tar.gz- Add this Galaxy to your
config.toml:
[galaxies]
example = "file:///path/to/example-galaxy"- Run a test install:
cosmos install core-stack --root ./test-root- Inspect:
ls ./test-root/usr/bin
./test-root/usr/bin/helloRun it if youβre brave:
chroot ./test-root /usr/bin/hello- A working example of a local/offline Cosmos Galaxy
- A reference for Galaxy structure and metadata layout
- A testable install target for Stellar-built packages
- Secure
- Signed
- Maintained for long-term use
- A full Linux base system (see LFS Galaxy)
To build a new package:
stellar new-star mypkg
# edit star.toml and files/
stellar build-star ./mypkg
# move the .tar.gz to packages/ and star.toml to stars/Then update meta.toml to include the new Star and version.
If you can install this, you can install the world.