Skip to content

Commit

Permalink
feat: Install pkg-config for IDA Dockerfile (#364)
Browse files Browse the repository at this point in the history
mysqlclient 2.2.0 requires Debian package pkg-config to be installed. In
some Dockerfiles this also leads to tzdata being installed, which prompts
for config and causes the image build to hang, so add
`DEBIAN_FRONTEND=noninteractive` to prevent the prompt.

Also organize packages by general purpose. (Would be nice to have comments
on all of the groups, but might as well start with this one.)

Fixes #363
  • Loading branch information
timmc-edx authored Jul 7, 2023
1 parent 64826fd commit d671c71
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ Change Log
This file loosely adheres to the structure of https://keepachangelog.com/,
but in reStructuredText instead of Markdown.
2023-07-07
**********

Fixed
=====

- Include ``pkg-config`` in apt-installed packages in IDA Dockerfile, allowing upgrade to mysqlclient 2.2.0

2023-06-21
**********

Expand Down
13 changes: 5 additions & 8 deletions cookiecutter-django-ida/{{cookiecutter.repo_name}}/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,11 @@ MAINTAINER [email protected]
# gcc; for compiling python extensions distributed with python packages like mysql-client

# If you add a package here please include a comment above describing what it is used for
RUN apt-get update && apt-get -qy install --no-install-recommends \
language-pack-en \
locales \
python3.8 \
python3-pip \
libmysqlclient-dev \
libssl-dev \
python3-dev \
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qy install --no-install-recommends \
language-pack-en locales \
python3.8 python3-dev python3-pip \
# The mysqlclient Python package has install-time dependencies
libmysqlclient-dev libssl-dev pkg-config \
gcc


Expand Down

0 comments on commit d671c71

Please sign in to comment.