Compare commits
No commits in common. "44ac3694cb3dd4fdd1dfd8e55aaa66de417f0c1e" and "aca207246d6cb4d15cb15de787bb9338f04a0539" have entirely different histories.
44ac3694cb
...
aca207246d
5 changed files with 0 additions and 46 deletions
|
|
@ -1,19 +0,0 @@
|
||||||
FROM debian:stable-slim
|
|
||||||
|
|
||||||
# set up base package requirements for can device
|
|
||||||
RUN ( \
|
|
||||||
set -e; \
|
|
||||||
apt-get --yes --quiet update; \
|
|
||||||
apt-get install --yes --quiet \
|
|
||||||
tio \
|
|
||||||
; \
|
|
||||||
apt-get --yes --quiet clean; \
|
|
||||||
)
|
|
||||||
|
|
||||||
# set workdir to /usr/src/env
|
|
||||||
WORKDIR /usr/src/env
|
|
||||||
|
|
||||||
# copy init.sh to workdir
|
|
||||||
COPY init.sh ./
|
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash", "init.sh"]
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
docker build --platform arm64 --tag inspect/serial-log .
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -x
|
|
||||||
|
|
||||||
SERIAL_DEV=$1
|
|
||||||
DEV_NAME=$(basename "${SERIAL_DEV}")
|
|
||||||
tio -m INLCRNL --log --log-file "serial-log.${DEV_NAME}" "${SERIAL_DEV}"
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -x
|
|
||||||
|
|
||||||
SERIAL_DEV="$1"
|
|
||||||
DEV="--device $1:$1"
|
|
||||||
docker run --rm -it --network=host --privileged ${DEV} -v $PWD:/usr/src/env/ext-dir inspect/serial-log $1
|
|
||||||
13
run-remote
13
run-remote
|
|
@ -1,13 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
IMAGE="$1"
|
|
||||||
shift
|
|
||||||
|
|
||||||
TARGET="$1"
|
|
||||||
shift
|
|
||||||
|
|
||||||
IMAGE_BASENAME=$(basename "${IMAGE}")
|
|
||||||
docker save -o "/tmp/${IMAGE_BASENAME}" "${IMAGE}"
|
|
||||||
rsync -av --progress "/tmp/${IMAGE_BASENAME}" "${IMAGE}/run.sh" "${TARGET}:/tmp"
|
|
||||||
ssh "${TARGET}" docker load -i "/tmp/${IMAGE_BASENAME}"
|
|
||||||
ssh -t "${TARGET}" /tmp/run.sh $@
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue