mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 02:05:41 +01:00
Install psycopg2 via photon's repo (#7018)
The psycopg2 installed by pip has very old `.so` files. This commit will mitigate such issue by using `tdnf` to install this package. Signed-off-by: Daniel Jiang <jiangd@vmware.com>
This commit is contained in:
parent
894f3774b1
commit
091ed91ad8
@ -8,8 +8,8 @@ RUN tdnf distro-sync -y \
|
||||
&& tdnf install -y sed shadow procps-ng gawk gzip sudo net-tools glibc-i18n >> /dev/null\
|
||||
&& groupadd -r -g 10000 mysql && useradd --no-log-init -r -g 10000 -u 10000 mysql \
|
||||
&& tdnf install -y mariadb-server mariadb mariadb-devel python2 python2-devel python-pip gcc \
|
||||
linux-api-headers glibc-devel binutils zlib-devel openssl-devel postgresql >> /dev/null \
|
||||
&& pip install mysqlclient alembic psycopg2 \
|
||||
linux-api-headers glibc-devel binutils zlib-devel openssl-devel postgresql python-psycopg2 >> /dev/null \
|
||||
&& pip install mysqlclient alembic \
|
||||
&& mkdir /docker-entrypoint-initdb.d /docker-entrypoint-updatedb.d \
|
||||
&& rm -fr /var/lib/mysql \
|
||||
&& mkdir -p /var/lib/mysql /var/run/mysqld \
|
||||
|
Loading…
Reference in New Issue
Block a user