diff options
author | VirtualTam <virtualtam@flibidi.net> | 2017-05-30 23:45:17 +0200 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2017-09-18 21:13:59 +0200 |
commit | d691604080cc920e7d1d7ad5c98f4e3fae779524 (patch) | |
tree | 56a576fa9350f468c9fcfa7db9f8e2ed8e4ff2df /docker/test/ubuntu16 | |
parent | ceb738c59163b47e9c875764c9d3223bbc1eba24 (diff) | |
download | Shaarli-d691604080cc920e7d1d7ad5c98f4e3fae779524.tar.gz Shaarli-d691604080cc920e7d1d7ad5c98f4e3fae779524.tar.zst Shaarli-d691604080cc920e7d1d7ad5c98f4e3fae779524.zip |
docker: add alpine,debian,ubuntu test images
Relates to https://github.com/shaarli/Shaarli/issues/843
Added:
- Makefile target to run commands in a Docker test context
- Docker images to run Shaarli test suites:
- Alpine 3.6
- Debian 8
- Debian 9
- Ubuntu 16.04
- Documentation
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'docker/test/ubuntu16')
-rw-r--r-- | docker/test/ubuntu16/Dockerfile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/docker/test/ubuntu16/Dockerfile b/docker/test/ubuntu16/Dockerfile new file mode 100644 index 00000000..e53ed9e3 --- /dev/null +++ b/docker/test/ubuntu16/Dockerfile | |||
@@ -0,0 +1,36 @@ | |||
1 | FROM ubuntu:16.04 | ||
2 | MAINTAINER Shaarli Community | ||
3 | |||
4 | ENV TERM dumb | ||
5 | ENV DEBIAN_FRONTEND noninteractive | ||
6 | ENV LANG en_US.UTF-8 | ||
7 | ENV LANGUAGE en_US:en | ||
8 | |||
9 | RUN apt-get update \ | ||
10 | && apt-get install --no-install-recommends -y \ | ||
11 | ca-certificates \ | ||
12 | curl \ | ||
13 | language-pack-de \ | ||
14 | language-pack-en \ | ||
15 | language-pack-fr \ | ||
16 | locales \ | ||
17 | make \ | ||
18 | php7.0 \ | ||
19 | php7.0-curl \ | ||
20 | php7.0-gd \ | ||
21 | php7.0-intl \ | ||
22 | php7.0-xml \ | ||
23 | php-xdebug \ | ||
24 | rsync \ | ||
25 | && apt-get clean | ||
26 | |||
27 | ADD https://getcomposer.org/composer.phar /usr/local/bin/composer | ||
28 | RUN chmod 755 /usr/local/bin/composer | ||
29 | |||
30 | RUN useradd -m dev \ | ||
31 | && mkdir /shaarli | ||
32 | USER dev | ||
33 | WORKDIR /shaarli | ||
34 | |||
35 | ENTRYPOINT ["make"] | ||
36 | CMD [] | ||