Skip to content

Commit

Permalink
Start fixing debian build
Browse files Browse the repository at this point in the history
  • Loading branch information
hipek8 committed Feb 4, 2025
1 parent ff00ce7 commit 4d2da37
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ Source: ralph
Section: python
Priority: extra
Maintainer: [email protected]
Build-Depends: debhelper (>= 9), dh-virtualenv, git, libmysqlclient-dev | default-libmysqlclient-dev, python3 (>=3.8), python3-dev (>=3.8), libffi-dev, nodejs, npm, sed
Build-Depends: debhelper (>= 9), dh-virtualenv, git, libmysqlclient-dev | default-libmysqlclient-dev, python3 (>=3.8), libffi-dev, nodejs, npm, sed
Standards-Version: 3.9.5

Package: ralph-core
Architecture: amd64
Depends: dpkg (>= 1.16.1), python3 (>=3.8), libmysqlclient20, python3-distutils, debconf ${misc:Pre-Depends}
Depends: dpkg (>= 1.16.1), python3 (>=3.8), libmysqlclient21, python3-distutils, debconf ${misc:Pre-Depends}
Description: Ralph is an DCIM/CMDB - asset management for Data Centers/ Back Office.
Homepage: http://ralph.allegrogroup.com
Suggests: mysql-server, redis
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ override_dh_virtualenv:
npm install
node_modules/bower/bin/bower --allow-root install
node_modules/gulp/bin/gulp.js
dh_virtualenv --python /usr/bin/python3.6 --upgrade-pip-to 19.3.1 --requirements requirements/prod.txt
dh_virtualenv --python /usr/bin/python3.8 --requirements requirements/prod.txt

override_dh_shlibdeps:
dh_shlibdeps --dpkg-shlibdeps-params="--ignore-missing-info" --exclude=PIL --exclude=_cffi_backend
Expand Down
8 changes: 3 additions & 5 deletions docker/Dockerfile-deb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:bionic
FROM ubuntu:focal

LABEL maintainer="Allegro.pl Sp. z o.o. [email protected]"
LABEL authors="Allegro.pl Sp. z o.o. and Contributors [email protected]"
Expand All @@ -23,10 +23,8 @@ RUN apt-get update && \

RUN apt-get update && \
apt-get -y install build-essential debhelper devscripts equivs dh-virtualenv \
# Newer version of mysqlclient-dev fails to install.
# Fixed version should be removed once this problem is fixed in Ubuntu.
libmysqlclient-dev=5.7.21-1ubuntu1 libmysqlclient20=5.7.21-1ubuntu1 \
python3 python3-dev libffi-dev nodejs npm git-buildpackage vim-tiny git && \
libmysqlclient-dev libmysqlclient21 \
python3.8 python3.8-dev libffi-dev nodejs npm git-buildpackage vim-tiny git && \
rm -rf /var/lib/apt/lists/* && \
git config --global user.name "$GIT_USER_NAME" && \
git config --global user.email "$GIT_USER_EMAIL"
Expand Down

0 comments on commit 4d2da37

Please sign in to comment.