-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update for EmbassyOS v0.3.0 release (#12)
* initial commit * Minor updates * Attempting to make * Manifest updates * More manifest updates * Did that just work? * Icon * add more descriptions for service packagers * notes * use embassy-cli * Adding simple clean to Makefile * image tag fix * Parse version from manifest.yaml * spaces are bad :) * Update README.md for 0.3.0 * changed git pull to git checkout for integration/0.3.0 * update commentary and simplify layout * update verify command * update dependency section for accuracy * move and clarify config rules * update version description and clean up makefile * move config rules * cleanup * Refactor project structure and configuration files to correlate with EOSv0.3.0 release * remove unecessary compression build line * fix sdk install instructions * update sdk build steps * revert port * add details to backup section of manifest * proper release version Co-authored-by: kn0wmad <[email protected]> Co-authored-by: Mariusz Kogen <[email protected]> Co-authored-by: kn0wmad <[email protected]> Co-authored-by: Dme1sc <[email protected]>
- Loading branch information
1 parent
a499891
commit 1c561d0
Showing
12 changed files
with
272 additions
and
109 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 |
---|---|---|
@@ -1,28 +1,26 @@ | ||
ASSETS := $(shell yq e '.assets.[].src' manifest.yaml) | ||
ASSET_PATHS := $(addprefix assets/,$(ASSETS)) | ||
VERSION := $(shell toml get hello-world/Cargo.toml package.version) | ||
VERSION := $(shell yq e ".version" manifest.yaml) | ||
HELLO_WORLD_SRC := $(shell find ./hello-world/src) hello-world/Cargo.toml hello-world/Cargo.lock | ||
S9PK_PATH=$(shell find . -name hello-world.s9pk -print) | ||
|
||
# delete the target of a rule if it has changed and its recipe exits with a nonzero exit status | ||
.DELETE_ON_ERROR: | ||
|
||
all: hello-world.s9pk | ||
all: verify | ||
|
||
install: hello-world.s9pk | ||
appmgr install hello-world.s9pk | ||
verify: hello-world.s9pk $(S9PK_PATH) | ||
embassy-sdk verify s9pk $(S9PK_PATH) | ||
|
||
hello-world.s9pk: manifest.yaml config_spec.yaml config_rules.yaml image.tar instructions.md $(ASSET_PATHS) | ||
appmgr -vv pack $(shell pwd) -o hello-world.s9pk | ||
appmgr -vv verify hello-world.s9pk | ||
clean: | ||
rm -f image.tar | ||
rm -f hello-world.s9pk | ||
|
||
instructions.md: README.md | ||
cp README.md instructions.md | ||
hello-world.s9pk: manifest.yaml assets/compat/config_spec.yaml assets/compat/config_rules.yaml image.tar instructions.md $(ASSET_PATHS) | ||
embassy-sdk pack | ||
|
||
image.tar: Dockerfile docker_entrypoint.sh hello-world/target/armv7-unknown-linux-musleabihf/release/hello-world | ||
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --tag start9/hello-world --platform=linux/arm/v7 -o type=docker,dest=image.tar . | ||
image.tar: Dockerfile docker_entrypoint.sh hello-world/target/aarch64-unknown-linux-musl/release/hello-world | ||
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --tag start9/hello-world/main:$(VERSION) --platform=linux/arm64 -o type=docker,dest=image.tar . | ||
|
||
hello-world/target/armv7-unknown-linux-musleabihf/release/hello-world: $(HELLO_WORLD_SRC) | ||
docker run --rm -it -v ~/.cargo/registry:/root/.cargo/registry -v "$(shell pwd)"/hello-world:/home/rust/src start9/rust-musl-cross:armv7-musleabihf cargo +beta build --release | ||
docker run --rm -it -v ~/.cargo/registry:/root/.cargo/registry -v "$(shell pwd)"/hello-world:/home/rust/src start9/rust-musl-cross:armv7-musleabihf musl-strip target/armv7-unknown-linux-musleabihf/release/hello-world | ||
|
||
manifest.yaml: hello-world/Cargo.toml | ||
yq e -i '.version = $(VERSION)' manifest.yaml | ||
hello-world/target/aarch64-unknown-linux-musl/release/hello-world: $(HELLO_WORLD_SRC) | ||
docker run --rm -it -v ~/.cargo/registry:/root/.cargo/registry -v "$(shell pwd)"/hello-world:/home/rust/src start9/rust-musl-cross:aarch64-musl cargo build --release |
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,3 @@ | ||
# This is where any configuration rules related to the configuration would go. These ensure that the user can only create a valid config. | ||
|
||
[] |
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,13 @@ | ||
# To utilize the default config system built in the compat system image, this file is required. It defines the *structure* of the configuration file. These structured options display as changeable UI elements within the "Config" section of the service details page in the Embassy UI. | ||
|
||
# Example: | ||
# tor-address: | ||
# name: Network Tor Address | ||
# description: The Tor address for the network interface. | ||
# type: pointer | ||
# subtype: package | ||
# package-id: hello-world | ||
# target: tor-address | ||
# interface: main | ||
|
||
{} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#!/bin/sh | ||
|
||
export HOST_IP=$(ip -4 route list match 0/0 | awk '{print $3}') | ||
|
||
exec tini hello-world |
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
# Instructions for Hello World | ||
|
||
Instructions go here. These appear to the user in the UI on the Service page under 'Instructions.' |
Oops, something went wrong.