diff --git a/images/ckan/2.7/Dockerfile.focal b/images/ckan/2.7/Dockerfile.focal index 8ac2824..b1a6500 100644 --- a/images/ckan/2.7/Dockerfile.focal +++ b/images/ckan/2.7/Dockerfile.focal @@ -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 +# 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}" && \ diff --git a/images/ckan/2.8/Dockerfile.focal b/images/ckan/2.8/Dockerfile.focal index 1fbbe09..5fc56f2 100644 --- a/images/ckan/2.8/Dockerfile.focal +++ b/images/ckan/2.8/Dockerfile.focal @@ -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}" && \ diff --git a/images/ckan/2.9/Dockerfile.focal b/images/ckan/2.9/Dockerfile.focal index 375c321..6d96f94 100644 --- a/images/ckan/2.9/Dockerfile.focal +++ b/images/ckan/2.9/Dockerfile.focal @@ -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