Skip to content

Commit

Permalink
add requirements.txt to fix python package versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Arkenau committed Jan 5, 2023
1 parent a61196b commit b71bbc3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,14 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 2
# check if Dockerfile has changed
# check if files have changed
- name: Get changed files
id: changed-files-specific-docker-base
uses: tj-actions/changed-files@v34
with:
files: |
docker/base/Dockerfile
docker/base/requirements.txt
-
name: Set up Docker Buildx
if: github.ref_type == 'tag' || steps.changed-files-specific-docker-base.outputs.any_changed == 'true'
Expand Down
8 changes: 6 additions & 2 deletions docker/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ RUN apt-get -qq update && apt-get -qq install -y --no-install-recommends -y \
bison \
&& rm -rf /var/lib/apt/lists/*

RUN pip3 install --upgrade pip
#Install seerep dependencies from apt
COPY docker/base/requirements.txt /tmp/requirements.txt
RUN pip3 install --upgrade pip \
&& pip3 install -r /tmp/requirements.txt \
&& rm /tmp/requirements.txt

#Install seerep dependencies from apt
RUN apt-get -qq update && apt-get -qq install -y --no-install-recommends -y \
ros-noetic-tf \
ros-noetic-vision-msgs \
Expand Down
10 changes: 10 additions & 0 deletions docker/base/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pre-commit==2.21.0
flatbuffers==22.12.6
protobuf== 4.21.12
grpcio-tools==1.51.1
grpcio==1.51.1
imageio==2.20.0
numpy==1.17.4
numpy-quaternion==2022.4.2
mkdocs==1.4.2
mkdocs-material==9.0.2

0 comments on commit b71bbc3

Please sign in to comment.