-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d07cd13
commit cbfe6a2
Showing
3 changed files
with
39 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# | ||
# docker buildx build --tag keesverruijt/mayara-demo:latest . | ||
# | ||
# docker buildx build --platform linux/arm64,linux/amd64 --tag keesverruijt/mayara-demo:latest --push . | ||
# | ||
|
||
FROM wdantuma/signalk-radar-demo:latest AS build | ||
|
||
RUN apk add --no-cache git curl bash g++ | ||
|
||
WORKDIR /src | ||
|
||
RUN curl -sSf https://sh.rustup.rs | bash -s -- -y | ||
|
||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
RUN git clone https://github.com/keesverruijt/mayara.git && \ | ||
cd mayara && cargo build --release | ||
|
||
FROM wdantuma/signalk-radar-demo:latest | ||
|
||
RUN apk add --no-cache tcpreplay curl unzip | ||
|
||
WORKDIR /app | ||
|
||
COPY start.sh . | ||
COPY samples/halo_and_0183.pcap . | ||
|
||
RUN chmod +x start.sh | ||
|
||
COPY --from=build /src/mayara/target/release/mayara /app/mayara | ||
|
||
RUN apk add strace tcpdump | ||
|
||
CMD [ "/app/start.sh"] |
Binary file not shown.
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,4 @@ | ||
#!/bin/sh | ||
./mayara -i lo -p 3001 --replay & | ||
signalk-server/bin/signalk-server -c signalk/ & | ||
tcpreplay -q -T select -l 0 -i lo /app/halo_and_0183.pcap |