<file_sep>FROM python:3.6.2

# https://hub.docker.com/r/frolvlad/alpine-python3/

RUN apt-get update && \
    apt-get -y install can-utils && \
    pip install python-can

#ADD scripts/vcanup.bash /vcanup.bash
#RUN /vcanup.bash
<file_sep>#!/bin/bash

# install can-utils

git clone https://github.com/linux-can/can-utils.git
cd can-utils
./autogen.sh
./configure
make
sudo make install
<file_sep>#!/bin/bash
# Bring up a virtual can bus device
/sbin/modprobe can
/sbin/modprobe can_raw
/sbin/modprobe vcan

ip link add dev vcan0 type vcan
ip link set up vcan0