Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
163
Issues
163
List
Boards
Labels
Service Desk
Milestones
Merge Requests
49
Merge Requests
49
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Compare Revisions
2de6fdd598ba525b90dbae4c9e331aaf469b55ca...19bd374064becfc161950664d457c95bd23e42f3
Source
19bd374064becfc161950664d457c95bd23e42f3
Select Git revision
...
Target
2de6fdd598ba525b90dbae4c9e331aaf469b55ca
Select Git revision
Compare
Commits (2)
(feat): upload all docker images
· 17393d01
Mark Harding
authored
2 hours ago
17393d01
(chore): move aws cli step to minds/php image
· 19bd3740
Mark Harding
authored
1 hour ago
19bd3740
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
25 deletions
+30
-25
.gitlab-ci.yml
.gitlab-ci.yml
+26
-9
Dockerfile
containers/php-fpm/Dockerfile
+0
-4
Dockerfile
containers/php-guid/Dockerfile
+0
-4
Dockerfile
containers/php-runners/Dockerfile
+0
-4
Dockerfile
containers/php/Dockerfile
+4
-0
Dockerfile
containers/transcoder/Dockerfile
+0
-4
No files found.
.gitlab-ci.yml
View file @
19bd3740
...
...
@@ -6,6 +6,7 @@ services:
stages
:
-
build
-
test
-
prepare
-
deploy
cache
:
...
...
@@ -35,14 +36,32 @@ test:
-
docker-php-ext-install gd
-
bin/phpspec run
prepare:fpm
:
stage
:
prepare
image
:
minds/ci:latest
script
:
-
$(aws ecr get-login --no-include-email --region us-east-1)
-
docker build -t $REPOSITORY_URL_FPM-$CI_BUILD_REF -f containers/php-fpm/Dockerfile .
-
docker push $REPOSITORY_URL_FPM-$CI_BUILD_REF
environment
:
name
:
staging
prepare:runners
:
stage
:
prepare
image
:
minds/ci:latest
script
:
-
$(aws ecr get-login --no-include-email --region us-east-1)
-
docker build -t $REPOSITORY_URL_RUNNERS-$CI_BUILD_REF -f containers/php-runners/Dockerfile .
-
docker push $REPOSITORY_URL_RUNNERS-$CI_BUILD_REF
environment
:
name
:
staging
deploy:fpm
:
stage
:
deploy
image
:
docker
:latest
image
:
minds/ci
:latest
script
:
-
apk add --no-cache curl jq python py-pip
-
pip install awscli
-
docker build -t $REPOSITORY_URL_FPM -f containers/php-fpm/Dockerfile .
-
$(aws ecr get-login --no-include-email --region us-east-1)
-
docker tag $REPOSITORY_URL_FPM-$CI_BUILD_REF $REPOSITORY_URL_FPM
-
docker push $REPOSITORY_URL_FPM
-
aws ecs update-service --service=$SERVICE_FPM --force-new-deployment --region us-east-1 --cluster=$CLUSTER
only
:
...
...
@@ -54,12 +73,10 @@ deploy:fpm:
deploy:runners
:
stage
:
deploy
image
:
docker
:latest
image
:
minds/ci
:latest
script
:
-
apk add --no-cache curl jq python py-pip
-
pip install awscli
-
docker build -t $REPOSITORY_URL_RUNNERS -f containers/php-runners/Dockerfile .
-
$(aws ecr get-login --no-include-email --region us-east-1)
-
docker tag $REPOSITORY_URL_RUNNERS-$CI_BUILD_REF $REPOSITORY_URL_RUNNERS
-
docker push $REPOSITORY_URL_RUNNERS
-
aws ecs update-service --service=$SERVICE_RUNNERS --force-new-deployment --region us-east-1 --cluster=$CLUSTER
only
:
...
...
@@ -67,4 +84,4 @@ deploy:runners:
-
master
-
test/gitlab-ci
environment
:
name
:
production
\ No newline at end of file
name
:
production
This diff is collapsed.
Click to expand it.
containers/php-fpm/Dockerfile
View file @
19bd3740
...
...
@@ -13,10 +13,6 @@ ADD --chown=www-data . /var/www/Minds/engine
RUN
rm
-f
/var/www/Minds/engine/settings.php
# Install awscli
RUN
apk update
&&
apk add
--no-cache
py-pip
&&
pip
install
--upgrade
pip
&&
pip
install
awscli
# Copy secrets script
COPY
containers/php-fpm/pull-secrets.sh pull-secrets.sh
...
...
This diff is collapsed.
Click to expand it.
containers/php-guid/Dockerfile
View file @
19bd3740
...
...
@@ -8,10 +8,6 @@ ADD --chown=www-data . /var/www/Minds/engine
RUN
rm
-f
/var/www/Minds/engine/settings.php
# Install awscli
RUN
apk update
&&
apk add
--no-cache
py-pip
&&
pip
install
--upgrade
pip
&&
pip
install
awscli
# Setup our supervisor service
RUN
apk add
--no-cache
\
...
...
This diff is collapsed.
Click to expand it.
containers/php-runners/Dockerfile
View file @
19bd3740
...
...
@@ -8,10 +8,6 @@ ADD --chown=www-data . /var/www/Minds/engine
RUN
rm
-f
/var/www/Minds/engine/settings.php
# Install awscli
RUN
apk update
&&
apk add
--no-cache
py-pip
&&
pip
install
--upgrade
pip
&&
pip
install
awscli
# Setup our supervisor service
RUN
apk add
--no-cache
\
...
...
This diff is collapsed.
Click to expand it.
containers/php/Dockerfile
View file @
19bd3740
...
...
@@ -84,6 +84,10 @@ RUN apk add --update --no-cache nodejs
RUN
apk add
--no-cache
ffmpeg
# Install awscli
RUN
apk update
&&
apk add
--no-cache
py-pip
&&
pip
install
--upgrade
pip
&&
pip
install
awscli
# PHP INI
COPY
php.ini /usr/local/etc/php/
...
...
This diff is collapsed.
Click to expand it.
containers/transcoder/Dockerfile
View file @
19bd3740
...
...
@@ -8,10 +8,6 @@ ADD --chown=www-data . /var/www/Minds/engine
RUN
rm
-f
/var/www/Minds/engine/settings.php
# Install awscli
RUN
apk update
&&
apk add
--no-cache
py-pip
&&
pip
install
--upgrade
pip
&&
pip
install
awscli
# Setup our supervisor service
RUN
apk add
--no-cache
\
...
...
This diff is collapsed.
Click to expand it.