This commit is contained in:
parent
019099aa74
commit
1ab3715897
18
.drone.yml
18
.drone.yml
@ -1,20 +1,16 @@
|
|||||||
pipeline:
|
pipeline:
|
||||||
|
|
||||||
build:
|
|
||||||
image: alpine:edge
|
|
||||||
commands:
|
|
||||||
- sed -i 's@<TAG>@${BUILD_VERSION}@' Dockerfile
|
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
repo: bunix42/ttrss
|
repo: bunix42/ttrss
|
||||||
|
build_args:
|
||||||
|
- TTRSS_GIT_TAG=${TTRSS_GIT_TAG}
|
||||||
tags:
|
tags:
|
||||||
- ${BUILD_VERSION}
|
- ${TTRSS_GIT_TAG}
|
||||||
secrets: [ docker_username, docker_password ]
|
secrets: [ docker_username, docker_password ]
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
BUILD_VERSION:
|
TTRSS_GIT_TAG:
|
||||||
- master
|
- master
|
||||||
- 17.4
|
- 18.12
|
||||||
- 17.12
|
- 19.2
|
||||||
- 18.12
|
|
33
Dockerfile
33
Dockerfile
@ -1,12 +1,23 @@
|
|||||||
FROM ubuntu:14.04
|
FROM ubuntu:18.04
|
||||||
MAINTAINER Hanjo Meinhardt <hanjo@bunix.de>
|
MAINTAINER Hanjo Meinhardt <hanjo@bunix.de>
|
||||||
|
|
||||||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
|
ARG TTRSS_GIT_TAG=master
|
||||||
nginx supervisor php5-fpm php5-cli php5-curl php5-gd php5-json \
|
|
||||||
php5-pgsql php5-mysql php5-mcrypt && apt-get clean && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y \
|
||||||
|
nginx \
|
||||||
|
supervisor \
|
||||||
|
php7.2-fpm \
|
||||||
|
php7.2-cli \
|
||||||
|
php7.2-curl \
|
||||||
|
php7.2-gd \
|
||||||
|
php7.2-json \
|
||||||
|
php7.2-pgsql \
|
||||||
|
php7.2-mysql \
|
||||||
|
curl \
|
||||||
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# enable the mcrypt module
|
# enable the mcrypt module
|
||||||
RUN php5enmod mcrypt
|
#RUN php7enmod mcrypt
|
||||||
|
|
||||||
# add ttrss as the only nginx site
|
# add ttrss as the only nginx site
|
||||||
ADD ttrss.nginx.conf /etc/nginx/sites-available/ttrss
|
ADD ttrss.nginx.conf /etc/nginx/sites-available/ttrss
|
||||||
@ -15,11 +26,13 @@ RUN rm /etc/nginx/sites-enabled/default
|
|||||||
|
|
||||||
# install ttrss and patch configuration
|
# install ttrss and patch configuration
|
||||||
WORKDIR /var/www
|
WORKDIR /var/www
|
||||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl --no-install-recommends && rm -rf /var/lib/apt/lists/* \
|
|
||||||
&& curl -SL https://git.tt-rss.org/git/tt-rss/archive/<TAG>.tar.gz | tar xzC /var/www --strip-components 1 \
|
#RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl --no-install-recommends && rm -rf /var/lib/apt/lists/* \
|
||||||
&& apt-get purge -y --auto-remove curl \
|
# && apt-get purge -y --auto-remove curl \
|
||||||
&& chown www-data:www-data -R /var/www
|
|
||||||
RUN cp config.php-dist config.php
|
RUN curl -SL https://git.tt-rss.org/git/tt-rss/archive/$TTRSS_GIT_TAG.tar.gz | tar xzC /var/www --strip-components 1 \
|
||||||
|
&& chown www-data:www-data -R /var/www \
|
||||||
|
&& cp config.php-dist config.php
|
||||||
|
|
||||||
# expose only nginx HTTP port
|
# expose only nginx HTTP port
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
Loading…
x
Reference in New Issue
Block a user