Skip to content

Commit

Permalink
update for celestial v2
Browse files Browse the repository at this point in the history
  • Loading branch information
pfandzelter committed Apr 18, 2024
1 parent 1fcbfcd commit 0cf64c5
Show file tree
Hide file tree
Showing 14 changed files with 2,056 additions and 961 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*.img
*.bin

traj*.zip
test.sh

~$*
Expand Down
23 changes: 13 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,40 +18,43 @@

.PHONY: all

all: client.img server.img tracker.img alt-tracker.img
all: traj-cloud.zip traj-satellite.zip client.img server.img tracker.img tracker-alt.img

traj-%.zip: videoconference-%.toml
@docker run --rm -v $(PWD):/app satgen-docker /app/$< /app/$@

client.img: client/client.sh client/client-base.sh client/workload.csv client/ultra_ping
@docker run --rm \
-v $(PWD)/client/client.sh:/app.sh \
-v $(PWD)/client/client-base.sh:/base.sh \
-v $(PWD)/client/workload.csv:/files/workload.csv \
-v $(PWD)/client/ultra_ping:/files/ultra_ping \
-v $(PWD)/client:/opt/code \
-v $(PWD):/opt/code \
--privileged rootfsbuilder $@

alt-tracker.img: tracker/tracker.bin tracker/alt-tracker.sh
tracker-alt.img: tracker/tracker.bin tracker/alt-tracker.sh tracker/tracker-base.sh
@docker run --rm \
-v $(PWD)/tracker/alt-tracker.sh:/app.sh \
-v $(PWD)/tracker/tracker-base.sh:/base.sh \
-v $(PWD)/tracker/tracker.bin:/files/tracker.bin \
-v $(PWD)/tracker:/opt/code \
-v $(PWD):/opt/code \
--privileged rootfsbuilder $@

tracker.img: tracker/tracker.bin tracker/tracker.sh
tracker.img: tracker/tracker.bin tracker/tracker.sh tracker/tracker-base.sh
@docker run --rm \
-v $(PWD)/tracker/tracker.sh:/app.sh \
-v $(PWD)/tracker/tracker-base.sh:/base.sh \
-v $(PWD)/tracker/tracker.bin:/files/tracker.bin \
-v $(PWD)/tracker:/opt/code \
-v $(PWD):/opt/code \
--privileged rootfsbuilder $@

tracker/tracker.bin: tracker/cmd/tracker tracker/go.mod
@cd tracker ; GOOS=linux GOARCH=amd64 go build -o tracker.bin ./cmd/tracker
@cd tracker ; GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o tracker.bin ./cmd/tracker

server.img: server/server.sh server/multiply.nft server/server-base.sh
@docker run --rm \
-v $(PWD)/server/server.sh:/app.sh \
-v $(PWD)/server/server-base.sh:/base.sh \
-v $(PWD)/server/multiply.nft:/files/multiply.nft
-v $(PWD)/server:/opt/code \
--privileged rootfsbuilder $@
-v $(PWD)/server/multiply.nft:/files/multiply.nft \
-v $(PWD):/opt/code \
--privileged rootfsbuilder $@
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ build `client-linux.bin` and `server-linux.bin` Linux kernels.
Note that using off-the-shelf kernels will not work in most situations since
the server needs support for `NFTables` duplication and clients need to trust
the host's randomness pool.
However, you can use the [default Celestial kernel](https://openfogstack.github.io/celestial/kernel.html)
for clients.

### Copying Everything Over

Expand Down
Loading

0 comments on commit 0cf64c5

Please sign in to comment.