mirror of
https://github.com/mykitserver/docker-limesurvey.git
synced 2025-12-07 17:08:53 +01:00
Compare commits
9 Commits
3.15.9+190
...
3.17.3+190
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26a95472a7 | ||
|
|
423f4c6133 | ||
|
|
80bc3f4319 | ||
|
|
c30e0878e2 | ||
|
|
b44b4c2371 | ||
|
|
c655c4cf53 | ||
|
|
6f088023ae | ||
|
|
6531d6131f | ||
|
|
92548e8d6f |
@@ -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" && \
|
||||
|
||||
@@ -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/ && \
|
||||
\
|
||||
|
||||
@@ -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
8
makefile
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user