diff options
| author | David Siegfried <david.siegfried@uni-vechta.de> | 2022-06-21 09:04:10 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2022-06-21 09:04:10 +0000 |
| commit | 8ce1b740c144abf8855b5ea7580d09be6af467fa (patch) | |
| tree | ee0ec1e1f2a73ce40f3f046b0b8f44e823ad8fb2 /docker/tests | |
| parent | b333f3fa1ea4d661db10e88325152eb2ef5437f3 (diff) | |
add gitlab-ci, closes #606
Closes #606
Merge request studip/studip!574
Diffstat (limited to 'docker/tests')
| -rw-r--r-- | docker/tests/php72/Dockerfile | 24 | ||||
| -rw-r--r-- | docker/tests/php74/Dockerfile | 23 |
2 files changed, 47 insertions, 0 deletions
diff --git a/docker/tests/php72/Dockerfile b/docker/tests/php72/Dockerfile new file mode 100644 index 0000000..796d064 --- /dev/null +++ b/docker/tests/php72/Dockerfile @@ -0,0 +1,24 @@ +# Setup php, apache and stud.ip +FROM php:7.2-cli + +# Install system requirements +RUN apt update && apt install -y --no-install-recommends \ + default-mysql-client default-libmysqlclient-dev libcurl4-openssl-dev zlib1g-dev libpng-dev libjpeg-dev libonig-dev libzip-dev libicu-dev \ + lsb-release \ + zip \ + tar \ + && rm -rf /var/lib/apt/lists/* + +# Install php extensions +RUN docker-php-ext-configure gd --with-png-dir=/usr/include/ \ + --with-jpeg-dir=/usr/include/ +RUN docker-php-ext-install pdo gettext curl gd mbstring zip pdo pdo_mysql mysqli intl json + +# Install npm using nvm +RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - +RUN apt update && apt install -y --no-install-recommends nodejs \ + curl apt-transport-https ca-certificates gnupg unzip git \ + && rm -rf /var/lib/apt/lists/* + +# Install composer +COPY --from=composer /usr/bin/composer /usr/bin/composer diff --git a/docker/tests/php74/Dockerfile b/docker/tests/php74/Dockerfile new file mode 100644 index 0000000..7d77515 --- /dev/null +++ b/docker/tests/php74/Dockerfile @@ -0,0 +1,23 @@ +# Setup php, apache and stud.ip +FROM php:7.4-cli + +# Install system requirements +RUN apt update && apt install -y --no-install-recommends \ + default-mysql-client default-libmysqlclient-dev libcurl4-openssl-dev zlib1g-dev libpng-dev libjpeg-dev libonig-dev libzip-dev libicu-dev \ + lsb-release \ + zip \ + tar \ + && rm -rf /var/lib/apt/lists/* + +# Install php extensions +RUN docker-php-ext-configure gd --with-jpeg +RUN docker-php-ext-install pdo gettext curl gd mbstring zip pdo pdo_mysql mysqli intl json + +# Install npm using nvm +RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - +RUN apt update && apt install -y --no-install-recommends nodejs \ + curl apt-transport-https ca-certificates gnupg unzip git \ + && rm -rf /var/lib/apt/lists/* + +# Install composer +COPY --from=composer /usr/bin/composer /usr/bin/composer |
