Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Python Package and build Docker Image at the same time #518

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
a412b3b
Updated and fixed typo due to recent change in API - Aquired --> Acqu…
jasworks Apr 12, 2023
32e02c5
Add necessary build instructions to allow the docker image to be buil…
jasworks Apr 12, 2023
68e3092
Merge branch 'flobz:master' into master
jasworks Apr 13, 2023
70300a9
Merge branch 'flobz:master' into master
jasworks Apr 14, 2023
3ab7c06
Merge branch 'flobz:master' into master
jasworks Apr 15, 2023
3c1db1a
Merge branch 'flobz:master' into master
jasworks May 24, 2023
915014d
Merge branch 'flobz:master' into master
jasworks Jun 23, 2023
a7817d2
Merge branch 'flobz:master' into master
jasworks Aug 23, 2023
a6f86dd
Merge branch 'flobz:master' into master
jasworks Nov 3, 2023
1393138
Merge branch 'flobz:master' into master
jasworks Nov 12, 2023
daebdd3
Merge branch 'flobz:master' into master
jasworks Nov 15, 2023
a3f815f
Merge branch 'flobz:master' into master
jasworks Nov 27, 2023
fc2eab2
Merge branch 'flobz:master' into master
jasworks Jan 14, 2024
3470a97
Merge branch 'flobz:master' into master
jasworks Jan 19, 2024
d89469f
Merge branch 'flobz:master' into master
jasworks Feb 19, 2024
afb0793
Merge branch 'flobz:master' into master
jasworks Feb 25, 2024
0255ac5
Merge branch 'flobz:master' into master
jasworks Feb 25, 2024
59eeb3d
Merge branch 'flobz:master' into master
jasworks Feb 29, 2024
63a19c6
Merge branch 'flobz:master' into master
jasworks Mar 5, 2024
4e48233
Merge branch 'flobz:master' into master
jasworks Mar 11, 2024
39952c9
Merge branch 'flobz:master' into master
jasworks Mar 21, 2024
cbc1a24
Merge branch 'flobz:master' into master
jasworks Apr 5, 2024
a4f8b81
Updated to build.
jasworks Apr 5, 2024
25e126f
Merge branch 'master' of https://github.com/jasworks/psa_car_controller
jasworks Apr 5, 2024
10cfc2a
Merge branch 'flobz:master' into master
jasworks Apr 19, 2024
315bd35
Merge branch 'master' of https://github.com/jasworks/psa_car_controller
jasworks Apr 19, 2024
72ed922
Merge branch 'flobz:master' into master
jasworks May 17, 2024
6cd02d0
Merge branch 'master' of https://github.com/jasworks/psa_car_controller
jasworks May 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
FROM debian:bullseye-slim AS builder
ARG PSACC_VERSION="0.0.0"
ARG PYTHON_DEP
WORKDIR /psa_car_controller
RUN BUILD_DEP='python3-pip python3-setuptools python3-dev libblas-dev liblapack-dev gfortran libffi-dev libxml2-dev libxslt1-dev make automake gcc g++ subversion' ; \
apt-get update && apt-get install -y --no-install-recommends $BUILD_DEP $PYTHON_DEP;
RUN pip3 install --upgrade pip && mkdir psa-car-controller && pip3 install poetry
COPY ./dist/psa_car_controller-${PSACC_VERSION}-py3-none-any.whl .
RUN pip3 install --no-cache-dir psa_car_controller-${PSACC_VERSION}-py3-none-any.whl
RUN pip3 install --upgrade pip build poetry

Check warning on line 9 in Dockerfile

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

Dockerfile#L9

Pin versions in pip. Instead of `pip install <package>` use `pip install <package>==<version>`
ADD ./ .

Check failure on line 10 in Dockerfile

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

Dockerfile#L10

Use COPY instead of ADD for files and folders
#RUN python3 -m build
RUN poetry build
RUN pip3 install --no-cache-dir dist/psa_car_controller-${PSACC_VERSION}-py3-none-any.whl

Check warning on line 13 in Dockerfile

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

Dockerfile#L13

Pin versions in pip. Instead of `pip install <package>` use `pip install <package>==<version>`
EXPOSE 5000

FROM debian:bullseye-slim
Expand Down