Skip to content

Commit

Permalink
job-builder-secure: add suport for pymssql
Browse files Browse the repository at this point in the history
Why
Currently, the base secure image does not contain the required libraries for `pymssql` Python package.

What
Installed required native dependencies.

Testing Done
Locally through the following command:

```
docker buildx build -f versatile-data-kit/projects/control-service/projects/job-builder-secure/Dockerfile.python.vdk -t test-image-tag . --build-arg job_githash=localhsh1 --build-arg base_image=registry.hub.docker.com/versatiledatakit/data-job-base-python-3.9-secure:latest --build-arg job_name="data_job_name" --progress=plain
```

Signed-off-by: Miroslav Ivanov [email protected]
  • Loading branch information
mivanov1988 committed Nov 16, 2023
1 parent 45f2268 commit 752b019
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ RUN : \
&& if grep -q -E "^pyodbc" "$job_name/$requirements_file"; then \
echo "Installing native dependencies related to support for pyodbc python library ..." \
&& yum install unixodbc -y; fi \
&& if grep -q -E "^pymssql" "$job_name/$requirements_file"; then \
echo "Installing native dependencies related to support for pymssql python library ..." \
&& yum install freetds -y; fi \
&& if [ -f "$job_name/$requirements_file" ]; then \
echo "Installing native dependencies ..." \
&& yum install build-essential gcc glibc-devel git freetype2-devel libpng-devel -y \
Expand Down

0 comments on commit 752b019

Please sign in to comment.