Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Proxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
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
Proxy
Merge requests
!28
Something went wrong on our end
Resolve "optimize pipeline"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "optimize pipeline"
29-optimize-pipeline
into
master
Overview
0
Commits
20
Pipelines
0
Changes
1
Merged
Dominik Hebeler
requested to merge
29-optimize-pipeline
into
master
3 years ago
Overview
0
Commits
20
Pipelines
0
Changes
1
Expand
Closes
#29 (closed)
Edited
3 years ago
by
Dominik Hebeler
0
0
Merge request reports
Viewing commit
d55aa34a
Show latest version
1 file
+
12
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
d55aa34a
combined composer and nodejs containers
· d55aa34a
Dominik Hebeler
authored
3 years ago
chart/templates/deployment.yaml
+
12
−
7
Options
@@ -67,10 +67,20 @@ spec:
persistentVolumeClaim
:
claimName
:
packages
initContainers
:
-
name
:
{{
.Chart.Name
}}
-
nodej
s
-
name
:
{{
.Chart.Name
}}
-
asset
s
image
:
{{
template "imagename" .
}}
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
command
:
[
'
sh'
,
'
-c'
,
'
cp
-a
/node_modules/.
./node_modules/
&&
npm
i
--cache
.npm
--prefer-offline
--no-audit
--progress=false
&&
npm
run
prod
&&
cp
-au
./node_modules/.
/node_modules/
&&
cp
-a
./public/.
/public/'
]
command
:
[
'
sh'
,
'
-c'
]
args
:
-
cp -a /node_modules/. ./node_modules/ &&
npm i --cache .npm --prefer-offline --no-audit --progress=false &&
npm run prod &&
cp -au ./node_modules/. /node_modules/ &&
cp -a ./public/. /public/ &&
export COMPOSER_HOME=.composer &&
cp -au /vendor/. ./vendor/ &&
composer install --no-dev &&
cp -a ./vendor/. /vendor/
volumeMounts
:
-
mountPath
:
/html/node_modules
name
:
node-modules
@@ -82,11 +92,6 @@ spec:
-
mountPath
:
/node_modules
name
:
packages
subPath
:
node_modules
-
name
:
{{
.Chart.Name
}}
-composer
image
:
{{
template "imagename" .
}}
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
command
:
[
'
sh'
,
'
-c'
,
'
export
COMPOSER_HOME=.composer
&&
cp
-au
/vendor/.
./vendor/
&&
composer
install
--no-dev
&&
cp
-a
./vendor/.
/vendor/'
]
volumeMounts
:
-
mountPath
:
/html/vendor
name
:
vendor
-
mountPath
:
/html/.composer
Loading