Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MetaGer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
open-source
MetaGer
Commits
cf3797fc
Commit
cf3797fc
authored
5 years ago
by
Dominik Hebeler
Browse files
Options
Downloads
Patches
Plain Diff
Added Container
parent
5364a9bd
No related branches found
No related tags found
2 merge requests
!1541
Development
,
!1534
Resolve "Optimize Deployment"
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
Dockerfile.dev
+1
-1
1 addition, 1 deletion
Dockerfile.dev
chart/templates/deployment.yaml
+36
-6
36 additions, 6 deletions
chart/templates/deployment.yaml
docker-compose.yml
+1
-1
1 addition, 1 deletion
docker-compose.yml
with
39 additions
and
9 deletions
Dockerfile
+
1
−
1
View file @
cf3797fc
...
@@ -68,4 +68,4 @@ EXPOSE 80
...
@@ -68,4 +68,4 @@ EXPOSE 80
CMD
chown -R root:nginx storage/logs/metager bootstrap/cache && \
CMD
chown -R root:nginx storage/logs/metager bootstrap/cache && \
chmod -R g+w storage/logs/metager bootstrap/cache && \
chmod -R g+w storage/logs/metager bootstrap/cache && \
crond -L /dev/stdout && \
crond -L /dev/stdout && \
nginx
php-fpm7
This diff is collapsed.
Click to expand it.
Dockerfile.dev
+
1
−
1
View file @
cf3797fc
...
@@ -64,4 +64,4 @@ EXPOSE 80
...
@@ -64,4 +64,4 @@ EXPOSE 80
CMD chown -R root:nginx storage/logs/metager bootstrap/cache && \
CMD chown -R root:nginx storage/logs/metager bootstrap/cache && \
chmod -R g+w storage/logs/metager bootstrap/cache && \
chmod -R g+w storage/logs/metager bootstrap/cache && \
crond -L /dev/stdout && \
crond -L /dev/stdout && \
nginx
php-fpm7
This diff is collapsed.
Click to expand it.
chart/templates/deployment.yaml
+
36
−
6
View file @
cf3797fc
...
@@ -39,6 +39,42 @@ spec:
...
@@ -39,6 +39,42 @@ spec:
persistentVolumeClaim
:
persistentVolumeClaim
:
claimName
:
mglogs
claimName
:
mglogs
containers
:
containers
:
# Main PHP-FPM Container
-
name
:
{{
.Chart.Name
}}
-phpfpm
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.tag
}}"
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
{{
- if .Values.application.secretName
}}
envFrom
:
-
secretRef
:
name
:
{{
.Values.application.secretName
}}
{{
- end
}}
env
:
-
name
:
DATABASE_URL
value
:
{{
.Values.application.database_url | quote
}}
-
name
:
GITLAB_ENVIRONMENT_NAME
value
:
{{
.Values.gitlab.envName
}}
-
name
:
GITLAB_ENVIRONMENT_URL
value
:
{{
.Values.gitlab.envURL
}}
ports
:
-
name
:
"
{{
.Values.service.name
}}-phpfpm"
containerPort
:
9000
livenessProbe
:
tcpSocket
:
port
:
"
{{
.Values.service.name
}}-phpfpm"
initialDelaySeconds
:
{{
.Values.livenessProbe.initialDelaySeconds
}}
timeoutSeconds
:
{{
.Values.livenessProbe.timeoutSeconds
}}
readinessProbe
:
tcpSocket
:
port
:
"
{{
.Values.service.name
}}-phpfpm"
initialDelaySeconds
:
{{
.Values.readinessProbe.initialDelaySeconds
}}
timeoutSeconds
:
{{
.Values.readinessProbe.timeoutSeconds
}}
volumeMounts
:
-
name
:
mglogs-persistent-storage
mountPath
:
/html/storage/logs/metager
readOnly
:
false
resources
:
{{
toYaml .Values.resources | indent 12
}}
# Nginx Container
-
name
:
{{
.Chart.Name
}}
-
name
:
{{
.Chart.Name
}}
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.tag
}}"
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.tag
}}"
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
...
@@ -81,10 +117,4 @@ spec:
...
@@ -81,10 +117,4 @@ spec:
{{
- end
}}
{{
- end
}}
initialDelaySeconds
:
{{
.Values.readinessProbe.initialDelaySeconds
}}
initialDelaySeconds
:
{{
.Values.readinessProbe.initialDelaySeconds
}}
timeoutSeconds
:
{{
.Values.readinessProbe.timeoutSeconds
}}
timeoutSeconds
:
{{
.Values.readinessProbe.timeoutSeconds
}}
volumeMounts
:
-
name
:
mglogs-persistent-storage
mountPath
:
/html/storage/logs/metager
readOnly
:
false
resources
:
{{
toYaml .Values.resources | indent 12
}}
{{
- end -
}}
{{
- end -
}}
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
1
−
1
View file @
cf3797fc
...
@@ -43,7 +43,6 @@ services:
...
@@ -43,7 +43,6 @@ services:
context
:
.
context
:
.
dockerfile
:
Dockerfile.dev
dockerfile
:
Dockerfile.dev
image
:
metager:latest
image
:
metager:latest
command
:
php-fpm7
working_dir
:
/html
working_dir
:
/html
volumes
:
volumes
:
-
.:/html
-
.:/html
...
@@ -53,6 +52,7 @@ services:
...
@@ -53,6 +52,7 @@ services:
restart
:
on-failure
restart
:
on-failure
image
:
metager:latest
image
:
metager:latest
working_dir
:
/html
working_dir
:
/html
command
:
nginx
volumes
:
volumes
:
-
.:/html
-
.:/html
-
./config/nginx.conf:/etc/nginx/nginx.conf
-
./config/nginx.conf:/etc/nginx/nginx.conf
...
...
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