* adds git to main images

* fixes timezone issue on 2.7
* minor formatting changes
This commit is contained in:
blagoja.stojkoski 2020-12-02 15:06:37 +01:00
parent f7d1fedd15
commit 35b390499a
3 changed files with 21 additions and 20 deletions

View File

@ -34,8 +34,8 @@ RUN apt-get install -y \
# Packages to build CKAN requirements and plugins
RUN apt-get install -y \
git \
wget \
gnupg \
wget \
gnupg \
curl \
python \
linux-headers-generic \
@ -122,6 +122,10 @@ FROM ubuntu:focal-20201106
MAINTAINER Keitaro Inc <info@keitaro.com>
# Set timezone
ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Set Locale
ENV LC_ALL=en_US.UTF-8
@ -147,8 +151,9 @@ RUN apt-get update && \
apt-get install -y \
gettext \
curl \
wget \
gnupg \
git \
wget \
gnupg \
python \
libpython2.7 \
libmagic1 \
@ -192,8 +197,6 @@ RUN pip install -e /srv/app/src/ckan && \
# Install default CKAN extensions
pip install --no-index --find-links=/srv/app/ext_wheels ckanext-envvars && \
# Create and update CKAN config
# Set timezone
echo "UTC" > /etc/timezone && \
# Generate CKAN config
paster --plugin=ckan make-config ckan ${APP_DIR}/production.ini && \
paster --plugin=ckan config-tool ${APP_DIR}/production.ini "ckan.plugins = ${CKAN__PLUGINS}" && \

View File

@ -143,6 +143,7 @@ RUN apt-get update && \
apt-get install -y \
gettext \
curl \
git \
libpq5 \
postgresql-client \
python \
@ -181,8 +182,6 @@ RUN pip install -e /srv/app/src/ckan && \
# Install default CKAN extensions
pip install --no-index --find-links=/srv/app/ext_wheels ckanext-envvars && \
# Create and update CKAN config
# Set timezone
echo "UTC" > /etc/timezone && \
# Generate CKAN config
paster --plugin=ckan make-config ckan ${APP_DIR}/production.ini && \
paster --plugin=ckan config-tool ${APP_DIR}/production.ini "ckan.plugins = ${CKAN__PLUGINS}" && \

View File

@ -38,12 +38,12 @@ RUN apt-get install -y \
python3 \
libpq-dev \
linux-headers-generic \
gcc-10 \
make \
g++-10 \
autoconf \
automake \
libtool \
gcc-10 \
make \
g++-10 \
autoconf \
automake \
libtool \
patch \
libpcre3-dev \
libpcre3 \
@ -151,12 +151,13 @@ WORKDIR ${APP_DIR}
RUN apt-get update && \
apt-get install -y \
gettext \
curl \
curl \
libpq5 \
postgresql-client \
git \
postgresql-client \
python3 \
python3-distutils \
libpython3.8 \
python3-distutils \
libpython3.8 \
libmagic1 \
libpcre3 \
libxslt1.1 \
@ -193,8 +194,6 @@ RUN pip install -e /srv/app/src/ckan && \
# Install default CKAN extensions
pip install --no-index --find-links=/srv/app/ext_wheels ckanext-envvars && \
# Create and update CKAN config
# Set timezone
echo "UTC" > /etc/timezone && \
# Generate CKAN config
ckan generate config ${APP_DIR}/production.ini && \
# Configure plugins