Skip to content

Commit

Permalink
job-builder-secure: add support for pymssql (#2908)
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]

Signed-off-by: Miroslav Ivanov [email protected]
  • Loading branch information
mivanov1988 authored Nov 16, 2023
1 parent 45f2268 commit b739832
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.4
1.3.5

0 comments on commit b739832

Please sign in to comment.