Compare commits

...

9 Commits

Author SHA1 Message Date
Markus Opolka
26a95472a7 Upgrading to Version 3.17.3+190429 2019-05-31 09:03:27 +02:00
Markus Opolka
423f4c6133 Add makefile 2019-05-09 10:30:38 +02:00
Markus Opolka
80bc3f4319 Upgrading to Version 3.17.1+190408 2019-04-30 08:37:21 +02:00
Markus Opolka
c30e0878e2 Upgrading to 3.17.0+190402 2019-04-10 18:51:43 +02:00
Markus Opolka
b44b4c2371 Merge pull request #16 from martialblog/checksum
Fix sha256sum check
2019-04-04 09:10:31 +02:00
Markus Opolka
c655c4cf53 Fix sha256sum check
- Its two spaces... TWO SPACES!
 - https://github.com/gliderlabs/docker-alpine/issues/174#issuecomment-222951567
2019-04-04 09:02:47 +02:00
Markus Opolka
6f088023ae Upgrading to Version 3.16.1+190314 2019-04-04 08:36:55 +02:00
Markus Opolka
6531d6131f Upgrading to Version 3.16.1+190225 2019-03-15 14:48:29 +01:00
Markus Opolka
92548e8d6f Fix upgrade script 2019-03-15 14:46:48 +01:00
5 changed files with 21 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
FROM php:7.2-apache
LABEL maintainer="markus@martialblog.de"
ARG version='3.15.9+190214'
ARG sha256_checksum='cf3c49425119f627e92a69d43f9d869fdb1c56d6b152adb7853e6b138edd1eed'
ARG version='3.17.3+190429'
ARG sha256_checksum='daee6d4a767d91a044cf33e1e36befbfe7efe2c1b779abc55afe52bbe22cfca2'
# Install OS dependencies
RUN set -ex; \
@@ -57,7 +57,7 @@ RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
ADD "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" /tmp
RUN set -ex; \
echo "${sha256_checksum} /tmp/${version}.tar.gz" | sha256sum -c - && \
echo "${sha256_checksum} /tmp/${version}.tar.gz" | sha256sum -c - && \
\
tar xzvf "/tmp/${version}.tar.gz" --strip-components=1 -C /var/www/html/ && \
rm -f "/tmp/${version}.tar.gz" && \

View File

@@ -1,7 +1,7 @@
FROM php:7.2-fpm-alpine
LABEL maintainer="markus@martialblog.de"
ARG version='3.15.9+190214'
ARG sha256_checksum='cf3c49425119f627e92a69d43f9d869fdb1c56d6b152adb7853e6b138edd1eed'
ARG version='3.17.3+190429'
ARG sha256_checksum='daee6d4a767d91a044cf33e1e36befbfe7efe2c1b779abc55afe52bbe22cfca2'
# Install OS dependencies
RUN set -ex; \
@@ -30,7 +30,7 @@ RUN set -ex; \
ADD "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" /tmp
RUN set -ex; \
echo "${sha256_checksum} /tmp/${version}.tar.gz" | sha256sum -c - && \
echo "${sha256_checksum} /tmp/${version}.tar.gz" | sha256sum -c - && \
\
tar xzvf "/tmp/${version}.tar.gz" --strip-components=1 -C /var/www/html/ && \
\

View File

@@ -1,7 +1,7 @@
FROM php:7.2-fpm
LABEL maintainer="markus@martialblog.de"
ARG version='3.15.9+190214'
ARG sha256_checksum='cf3c49425119f627e92a69d43f9d869fdb1c56d6b152adb7853e6b138edd1eed'
ARG version='3.17.3+190429'
ARG sha256_checksum='daee6d4a767d91a044cf33e1e36befbfe7efe2c1b779abc55afe52bbe22cfca2'
# Install OS dependencies
RUN set -ex; \
@@ -44,7 +44,7 @@ ENV LIMESURVEY_VERSION=$version
ADD "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" /tmp
RUN set -ex; \
echo "${sha256_checksum} /tmp/${version}.tar.gz" | sha256sum -c - && \
echo "${sha256_checksum} /tmp/${version}.tar.gz" | sha256sum -c - && \
\
tar xzvf "/tmp/${version}.tar.gz" --strip-components=1 -C /var/www/html/ && \
rm -f "/tmp/${version}.tar.gz" && \

8
makefile Normal file
View File

@@ -0,0 +1,8 @@
.PHONY: apache fpm fpm-alpine
apache:
docker build --pull -t limesurvey:apache apache
fpm-alpine:
docker build --pull -t limesurvey:fpm-alpine fpm-alpine
fpm:
docker build --pull -t limesurvey:fpm fpm

View File

@@ -1,6 +1,8 @@
#!/usr/bin/env bash
# Upgrade script
set -x
if [ $# -eq 0 ]
then
echo 'Pass new LimeSurvey Version tag:'
@@ -20,7 +22,8 @@ fi
# Download, unzip and chmod LimeSurvey from official GitHub repository
wget -P /tmp "https://github.com/LimeSurvey/LimeSurvey/archive/${NEW_VERSION}.tar.gz"
SHA256_CHECKSUM=$(sha256 "${NEW_VERSION}.tar.gz")
SHA256_CHECKSUM=$(sha256sum "/tmp/${NEW_VERSION}.tar.gz" | awk '{ print $1 }')
# Update lines in the files
sed -r -i -e "s/[0-9]+(\.[0-9]+)+\+[0-9]+/$NEW_VERSION/" apache/Dockerfile fpm/Dockerfile fpm-alpine/Dockerfile