Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-sendportal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
docker-sendportal
Commits
79f0890a
Verified
Commit
79f0890a
authored
3 years ago
by
Andrej Ramašeuski
Browse files
Options
Downloads
Patches
Plain Diff
Switch to SSL
parent
5e481b14
No related branches found
No related tags found
No related merge requests found
Pipeline
#7611
passed
3 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
Dockerfile
+11
-11
11 additions, 11 deletions
Dockerfile
with
12 additions
and
12 deletions
.gitlab-ci.yml
+
1
−
1
View file @
79f0890a
...
...
@@ -2,7 +2,7 @@ image: docker:20.10.12
variables
:
DOCKER_TLS_CERTDIR
:
"
/certs"
BUILD_VERSION
:
1
BUILD_VERSION
:
2
services
:
-
docker:20.10.12-dind
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
11
−
11
View file @
79f0890a
...
...
@@ -3,8 +3,12 @@ LABEL maintainer="andrej.ramaseuski@pirati.cz"
ARG
VERSION=2.0.4
ARG
REPO=https://github.com/mettle/sendportal.git
# Install composer
COPY
--from=composer:latest /usr/bin/composer /usr/local/bin/composer
# Install requirements
RUN
apt-get update
&&
apt-get
-y
--no-install-recommends
install
\
ssl-cert
\
libsodium-dev
\
libsodium23
\
libzip-dev
\
...
...
@@ -18,20 +22,16 @@ RUN apt-get update && apt-get -y --no-install-recommends install \
# Install PHP plugins
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
# RUN curl -sL "${APP}" | tar -xzC /var/www/html
RUN
cd
/var/www/html
&&
git clone
--depth
1
${
REPO
}
# Install SendPortal and its dependencies
RUN
cd
/var/www/html/sendportal
&&
\
RUN
cd
/var/www/html
&&
\
git clone
--depth
1
${
REPO
}
&&
\
cd
sendportal
&&
\
chown
-R
www-data storage
&&
\
composer
install
RUN
chown
-R
www-data /var/www/html/sendportal/storage
&&
\
a2en
mod rewrite
&&
\
sed
-i
"s#www/html#www/html/sendportal/public#"
/etc/apache2/sites-available/
000-
default.conf
RUN
a2enmod rewrite ssl
&&
\
a2en
site default-ssl
&&
\
sed
-i
"s#www/html#www/html/sendportal/public#"
/etc/apache2/sites-available/default
-ssl
.conf
COPY
entrypoint.sh entrypoint.sh
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment