Skip to content

Commit

Permalink
refactor: simulator parts of the repo (#362)
Browse files Browse the repository at this point in the history
* style: rename simulator service

* feat: add runit finish script
  • Loading branch information
Devdutt Shenoi authored Oct 9, 2024
1 parent fb082a8 commit 8528898
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:alpine as builder
FROM rust:alpine AS builder

RUN apk add build-base openssl-dev
WORKDIR "/usr/share/bytebeam/uplink"
Expand Down Expand Up @@ -28,4 +28,3 @@ CMD ["/usr/bin/runsvdir", "/etc/runit"]

COPY paths/ paths
COPY simulator.sh .

6 changes: 6 additions & 0 deletions runit/simulator/finish
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

cd /usr/share/bytebeam/uplink

exec ./simulator.sh kill_devices
echo "Killed all simulated devices"
File renamed without changes.

0 comments on commit 8528898

Please sign in to comment.