Initial BitNet s9pk package with SSH access
This commit is contained in:
29
Makefile
Normal file
29
Makefile
Normal file
@@ -0,0 +1,29 @@
|
||||
# BitNet s9pk Makefile
|
||||
PKG_ID := bitnet
|
||||
PKG_VERSION := 1.0.0
|
||||
TS_FILES := $(shell find . -name '*.ts' 2>/dev/null)
|
||||
|
||||
.PHONY: all clean install
|
||||
|
||||
# Default image
|
||||
all: $(PKG_ID).s9pk
|
||||
|
||||
install: $(PKG_ID).s9pk
|
||||
start-cli package install $(PKG_ID).s9pk
|
||||
|
||||
clean:
|
||||
rm -f $(PKG_ID).s9pk
|
||||
rm -f image.tar
|
||||
|
||||
# Build Docker image using remote Docker on MacBook
|
||||
image.tar: Dockerfile docker_entrypoint.sh
|
||||
@echo "Building Docker image on remote Docker (macbook)..."
|
||||
docker -H ssh://macbook build --platform linux/amd64 --tag start9/$(PKG_ID)/main:$(PKG_VERSION) -o type=docker,dest=image.tar .
|
||||
|
||||
# Pack the s9pk
|
||||
$(PKG_ID).s9pk: manifest.yaml image.tar instructions.md scripts/*.sh
|
||||
@echo "Packing s9pk..."
|
||||
start-cli s9pk pack \
|
||||
--arch aarch64 \
|
||||
--arch x86_64 \
|
||||
.
|
||||
Reference in New Issue
Block a user