Merge pull request #4332 from ryanpetrello/roll-back-fedora

Roll back the dev environment to CentOS 7 and build a newer sqlite3

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot]
2019-07-16 15:19:45 +00:00
committed by GitHub

View File

@@ -1,9 +1,11 @@
FROM fedora:27 FROM centos:7
ARG UID=0 ARG UID=0
RUN yum -y update && yum -y install epel-release
# sync with installer/roles/image_build/templates/Dockerfile.j2 # sync with installer/roles/image_build/templates/Dockerfile.j2
RUN dnf -y install acl \ RUN yum -y install acl \
alsa-lib \ alsa-lib \
ansible \ ansible \
atk \ atk \
@@ -12,15 +14,12 @@ RUN dnf -y install acl \
curl \ curl \
cyrus-sasl \ cyrus-sasl \
cyrus-sasl-devel \ cyrus-sasl-devel \
findutils \
gcc \ gcc \
gcc-c++ \ gcc-c++ \
GConf2 \ GConf2 \
git \ git \
glibc-locale-source \
gtk3 \ gtk3 \
ipa-gothic-fonts \ ipa-gothic-fonts \
iproute \
krb5-devel \ krb5-devel \
krb5-libs \ krb5-libs \
krb5-workstation \ krb5-workstation \
@@ -53,9 +52,10 @@ RUN dnf -y install acl \
python-psutil \ python-psutil \
python-psycopg2 \ python-psycopg2 \
python-setuptools \ python-setuptools \
python3-devel \ python36-devel \
python3-setuptools \ python36-setuptools \
rsync \ rsync \
setools-libs \
subversion \ subversion \
sudo \ sudo \
swig \ swig \
@@ -106,6 +106,14 @@ RUN cd /tmp && VENV_BASE="/venv" make requirements_dev
RUN npm install -g n RUN npm install -g n
RUN n 10.15.0 RUN n 10.15.0
# Install a newer SQLite to make Django happy (centos7 has a really old one,
# and we can probably stop doing this in centos8)
RUN curl -O "https://sqlite.org/2019/sqlite-autoconf-3290000.tar.gz"
RUN tar zxvf sqlite-autoconf-3290000.tar.gz
RUN cd sqlite-autoconf-3290000 && ./configure && make && make install
RUN mv -f /usr/local/lib/libsqlite3.so.0 /lib64/
RUN mv -f /usr/local/lib/libsqlite3.so.0.8.6 /lib64/
RUN yum -y remove cyrus-sasl-devel \ RUN yum -y remove cyrus-sasl-devel \
gcc \ gcc \
gcc-c++ \ gcc-c++ \