-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Dockerfile and requirements.txt, used by the Dockerfile in settin… (
#192) * add Dockerfile and requirements.txt, used by the Dockerfile in setting up python dependencies. This container allows building and running of the tests and coverage report generation. * update REDME to include docker based instructions.
- Loading branch information
1 parent
b313f0b
commit 34c3272
Showing
3 changed files
with
73 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ENV UID=1000 | ||
ENV GID=1000 | ||
ENV USER=ubuntu | ||
|
||
WORKDIR /tmp | ||
COPY requirements.txt . | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
RUN apt-get clean \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
build-essential \ | ||
clang-format cmake gcc-11 g++-11 gdb \ | ||
git \ | ||
lcov \ | ||
libfmt-dev \ | ||
libpython3-dev \ | ||
libspdlog-dev \ | ||
locales \ | ||
ninja-build \ | ||
packaging-dev \ | ||
python3-pip \ | ||
python3-venv \ | ||
ruby \ | ||
software-properties-common \ | ||
tmux \ | ||
uncrustify \ | ||
&& pip3 install -r requirements.txt \ | ||
&& wget --progress=dot:giga https://github.com/danmar/cppcheck/archive/2.6.tar.gz \ | ||
&& tar xvzf 2.6.tar.gz \ | ||
&& mkdir cppcheck-2.6/build \ | ||
&& cd cppcheck-2.6/build \ | ||
&& cmake .. -GNinja \ | ||
&& ninja \ | ||
&& ninja install \ | ||
&& groupadd $USER -g $GID \ | ||
&& adduser $USER --gid $UID --uid 1000 \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& locale-gen en_US.UTF-8 \ | ||
&& echo "${USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | ||
|
||
|
||
USER $USER | ||
|
||
RUN wget -qO - https://sh.rustup.rs | sh -s -- --no-modify-path -y | ||
|
||
ENV PATH="/home/${USER}/.cargo/bin:${PATH}" | ||
|
||
RUN rustup component add rustfmt clippy |
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,13 @@ | ||
black | ||
check-manifest | ||
cookiecutter | ||
flake8 | ||
mypy | ||
nox | ||
pre-commit | ||
pybind11 | ||
pylint | ||
pytest | ||
pyyaml | ||
setuptools | ||
setuptools-rust |