Commit c65e4622 authored by Ralf Baussenwein's avatar Ralf Baussenwein 🐞
Browse files

initial commit

parents
Pipeline #22554 passed with stage
in 3 minutes and 47 seconds
.git
.idea
\ No newline at end of file
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: "/certs"
stages:
- build
services:
- docker:stable:dind
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build:
stage: build
script:
- docker build -t $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:latest
- docker image rm $CI_REGISTRY_IMAGE:latest
tags:
- dind
- build
- docker
- linux
\ No newline at end of file
FROM php:7.4.4
# Install packages
RUN apt-get -y update \
&& apt-get install -y \
apt-transport-https \
build-essential \
git \
gnupg \
libfreetype6-dev \
libicu-dev \
libjpeg62-turbo-dev \
libpng-dev \
libzip-dev \
wget \
zip unzip \
zlibc \
zlib1g
# Install phpunit, the tool that we will use for testing
RUN curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit-9.phar \
&& chmod +x /usr/local/bin/phpunit
# Install PHP extensions
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-install \
bcmath \
exif \
gd \
iconv \
intl \
pdo_mysql \
zip
COPY config/php.ini $PHP_INI_DIR/conf.d/user.ini
# Install composer
COPY --from=composer /usr/bin/composer /usr/local/bin/composer
# Install deployer
RUN curl -LO https://deployer.org/deployer.phar \
&& mv deployer.phar /usr/local/bin/dep \
&& chmod +x /usr/local/bin/dep
# Install deployer recipes
RUN composer global require deployer/recipes --dev
RUN composer global require eikona-media/deployer-recipes --dev
# Install yarn + nodejs
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - \
&& apt-get update \
&& apt-get install -y nodejs yarn
\ No newline at end of file
[PHP]
memory_limit = 2048M
[Date]
date.timezone = Europe/Berlin
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment