-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix style.sh, add venv to gitignore, update dockerfile, comment ansib…
…le, make dev.yml perform sysstem upgrade, make ansible handle python virtualenv instead of bootstrap, specify versions exactly in pyproject, format some code in auton
- Loading branch information
Showing
15 changed files
with
96 additions
and
82 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 |
---|---|---|
|
@@ -32,4 +32,7 @@ logs/ | |
moteus-cal* | ||
|
||
# CSV | ||
*.csv | ||
*.csv | ||
|
||
# Virtual Environment | ||
venv/ |
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,33 +1,26 @@ | ||
FROM ros:noetic | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
# Add apt repo for latest version of Git | ||
RUN apt-get install software-properties-common -y && add-apt-repository ppa:git-core/ppa -y | ||
RUN apt-get update && apt-get install -y \ | ||
zsh neovim sudo git git-lfs \ | ||
clang-format-12 clang-tidy-12 \ | ||
python3-catkin-tools python3-pip | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install keyboard-configuration -y | ||
RUN apt-get update -y && apt-get upgrade -y && apt-get install software-properties-common -y | ||
RUN apt-add-repository ppa:ansible/ansible -y | ||
RUN apt-add-repository ppa:git-core/ppa -y | ||
RUN apt install -y ansible git git-lfs | ||
|
||
RUN useradd --create-home --groups sudo --shell /bin/zsh mrover | ||
# Give mrover user sudo access with no password | ||
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
USER mrover | ||
RUN mkdir -p ~/catkin_ws/src/mrover | ||
RUN mkdir -p /home/mrover/catkin_ws/src/mrover | ||
WORKDIR /home/mrover/catkin_ws/src/mrover | ||
# ROS package manager (rosdep) reads this file to install dependencies | ||
ADD ./package.xml . | ||
# Python package manager (pip) reads this file to install dependencies | ||
ADD ./requirements.txt . | ||
# Install ROS packages | ||
RUN rosdep update && rosdep install --from-paths . --ignore-src -y --rosdistro=noetic | ||
ADD ./pyproject.toml . | ||
ADD ./ansible ./ansible | ||
ADD ./ansible.sh . | ||
RUN ./ansible.sh build.yml | ||
|
||
USER root | ||
# Remove apt cache to free up space in the image | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
# Install Python packags, sudo so it is a global install | ||
RUN pip3 install -r ./requirements.txt | ||
|
||
USER mrover | ||
ENTRYPOINT [ "/bin/zsh" ] |
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
Empty file.
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
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
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
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
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
Oops, something went wrong.