-
Notifications
You must be signed in to change notification settings - Fork 84
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
2d0bfb9
commit 5bc8229
Showing
4 changed files
with
27 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM ubuntu:22.04 | ||
|
||
RUN apt update && apt install apt-transport-https curl gnupg -y && \ | ||
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg &&\ | ||
mv bazel-archive-keyring.gpg /usr/share/keyrings && \ | ||
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list && \ | ||
apt update &&\ | ||
apt install net-tools iproute2 can-utils bazel clang-15 -y | ||
|
||
ADD docker-entrypoint.sh . | ||
|
||
ENTRYPOINT ["sh", "docker-entrypoint.sh"] |
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 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# Display configuration | ||
echo Using following configuration | ||
echo VCAN_INTERFACE: "${VCAN_INTERFACE:=vcan0}" | ||
|
||
# Setting up vcan | ||
ip link add "$VCAN_INTERFACE" type vcan | ||
ip link set up "$VCAN_INTERFACE" | ||
echo Created vcan | ||
|
||
$@ |
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,4 +1,5 @@ | ||
#include "tp.h" | ||
#include <assert.h> | ||
|
||
/** | ||
* @brief | ||
|