forked from cundd/rest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
55 lines (41 loc) · 1.34 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
##
# Docker file for cundd/rest testing
#
# Build:
# > docker build -t cundd/rest .
#
# Build for TYPO3 7.6:
# > docker build -t cundd/rest --build-arg TYPO3=TYPO3_7-6 .
#
# Run tests:
# > docker-compose run test
#
FROM php:7.1-cli
# -----------------------------------------------------------------
# PREPARE THE OS
RUN apt-get update && apt-get install -y git zip mysql-client
RUN docker-php-ext-install opcache mysqli
#RUN docker-php-ext-install iconv mcrypt zip opcache mysqli pdo_mysql gd
# -----------------------------------------------------------------
# INSTALL COMPOSER
COPY ./Resources/Private/Scripts/composer-install.sh /app/Resources/Private/Scripts/composer-install.sh
RUN bash /app/Resources/Private/Scripts/composer-install.sh
# -----------------------------------------------------------------
# INSTALL TYPO3
# Install TYPO3 master branch
ARG TYPO3=master
# MariaDB is linked as host "db" (see docker-composer.yml)
ARG typo3DatabaseHost=db
# Export arguments to ENV
ENV TYPO3=${TYPO3}
ENV typo3DatabaseHost=${typo3DatabaseHost}
COPY ./Build /app/Build
RUN bash /app/Build/install.sh install_typo3 && bash /app/Build/install.sh prepare_database
VOLUME /app
WORKDIR /app
# Defaults for which tests to run
ENV FUNCTIONAL_TESTS=yes
ENV UNIT_TESTS=yes
ENV DOCUMENTATION_TESTS=yes
ENV MANUAL_TESTS=no
ENTRYPOINT [ "bash", "/app/Build/test.sh" ]