forked from neurobionics/rob311pi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
packages.Pifile
38 lines (30 loc) · 1.64 KB
/
packages.Pifile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Add bash commands to install required packages
RUN apt-get install -y python3-pip --upgrade
RUN apt-get install -y git
RUN apt install -y libnss-resolve
RUN apt-get install ufw -y
# Dephy Actpack and Flexsea
RUN bash -c "git clone https://github.com/imsenthur/Actuator-Package.git /home/${user}/Actuator-Package"
RUN apt-get install python3-scipy libatlas-base-dev -y # ufw is already listed
RUN apt-get install libc6 libgcc-s1 -y
RUN bash -c "python3 -m pip install flexsea"
RUN bash -c "python3 -m pip install numpy --upgrade"
# Gh
RUN bash -c "curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg"
RUN bash -c 'echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null'
RUN apt-get update
RUN apt-get install gh
# Python3-smbus (I2C Tools package is already installed)
RUN apt-get install -y python3-smbus
# Python plotting tool: rtplot
RUN bash -c "python3 -m pip install pyzmq"
RUN bash -c "git clone https://github.com/jmontp/rtplot.git /home/${user}/rtplot"
RUN bash -c "python3 -m pip install /home/${user}/rtplot/"
# Example code
RUN bash -c "git clone https://github.com/erouse/RPi_example_code /home/${user}/RPi_example_code"
# ROB311 Python packages
RUN bash -c "python3 -m pip install pyPS4Controller"
RUN bash -c "python3 -m pip install simple-pid"
RUN bash -c "python3 -m pip install adafruit-circuitpython-dotstar"
# ROB311
RUN bash -c "git clone https://github.com/neurobionics/rob311.git /home/${user}/rob311"