Skip to content
Snippets Groups Projects
Verified Commit 79f0890a authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Switch to SSL

parent 5e481b14
No related branches found
No related tags found
No related merge requests found
Pipeline #7611 passed
...@@ -2,7 +2,7 @@ image: docker:20.10.12 ...@@ -2,7 +2,7 @@ image: docker:20.10.12
variables: variables:
DOCKER_TLS_CERTDIR: "/certs" DOCKER_TLS_CERTDIR: "/certs"
BUILD_VERSION: 1 BUILD_VERSION: 2
services: services:
- docker:20.10.12-dind - docker:20.10.12-dind
......
...@@ -3,8 +3,12 @@ LABEL maintainer="andrej.ramaseuski@pirati.cz" ...@@ -3,8 +3,12 @@ LABEL maintainer="andrej.ramaseuski@pirati.cz"
ARG VERSION=2.0.4 ARG VERSION=2.0.4
ARG REPO=https://github.com/mettle/sendportal.git ARG REPO=https://github.com/mettle/sendportal.git
# Install composer
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
# Install requirements # Install requirements
RUN apt-get update && apt-get -y --no-install-recommends install \ RUN apt-get update && apt-get -y --no-install-recommends install \
ssl-cert \
libsodium-dev \ libsodium-dev \
libsodium23 \ libsodium23 \
libzip-dev \ libzip-dev \
...@@ -18,20 +22,16 @@ RUN apt-get update && apt-get -y --no-install-recommends install \ ...@@ -18,20 +22,16 @@ RUN apt-get update && apt-get -y --no-install-recommends install \
# Install PHP plugins # Install PHP plugins
RUN docker-php-ext-install pcntl sodium zip pgsql pdo pdo_pgsql RUN docker-php-ext-install pcntl sodium zip pgsql pdo pdo_pgsql
# Install composer
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
# Download and unpack sendportal # Download and unpack sendportal
# RUN curl -sL "${APP}" | tar -xzC /var/www/html RUN cd /var/www/html && \
RUN cd /var/www/html && git clone --depth 1 ${REPO} git clone --depth 1 ${REPO} && \
cd sendportal && \
# Install SendPortal and its dependencies chown -R www-data storage && \
RUN cd /var/www/html/sendportal && \
composer install composer install
RUN chown -R www-data /var/www/html/sendportal/storage && \ RUN a2enmod rewrite ssl && \
a2enmod rewrite && \ a2ensite default-ssl && \
sed -i "s#www/html#www/html/sendportal/public#" /etc/apache2/sites-available/000-default.conf sed -i "s#www/html#www/html/sendportal/public#" /etc/apache2/sites-available/default-ssl.conf
COPY entrypoint.sh entrypoint.sh COPY entrypoint.sh entrypoint.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment