Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
web-app
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
Container registry
Model registry
Operate
Environments
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
web-et-numerique-internet
data.grandlyon.com
web-portal
components
custom-apps
web-app
Commits
04041d1d
Commit
04041d1d
authored
7 years ago
by
ncastejon
Browse files
Options
Downloads
Patches
Plain Diff
Merge webapp & nginx Docker services into one.
parent
5f27e167
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile
+17
-1
17 additions, 1 deletion
Dockerfile
docker-compose-staging.yml
+0
-5
0 additions, 5 deletions
docker-compose-staging.yml
webapp-nginx.conf
+0
-1
0 additions, 1 deletion
webapp-nginx.conf
webapp/Dockerfile
+0
-22
0 additions, 22 deletions
webapp/Dockerfile
with
17 additions
and
29 deletions
Dockerfile
+
17
−
1
View file @
04041d1d
# Stage 0, based on Node.js, to build and compile Angular
FROM
node:8.10.0
as
builder
# Copy the current directory contents into the container at /app
COPY
./webapp /app/webapp
WORKDIR
/app/webapp
# Install npm dependencies
RUN
npm
install
# Building the Angular app /dist i18n
RUN
npm run build-i18n
# Stage 1, based on Nginx, to have only the compiled app
FROM
nginx
COPY
--from=builder /app/webapp/dist /usr/share/nginx/html
## Install dependency to get lua module in .conf
RUN
apt-get update
RUN
apt-get
--yes
--force-yes
install
nginx-extras
RUN
apt-get
--yes
--force-yes
install
nginx-extras
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker-compose-staging.yml
+
0
−
5
View file @
04041d1d
version
:
"
2"
services
:
node-server
:
build
:
./webapp
proxy-elasticsearch
:
image
:
nginx
volumes
:
...
...
@@ -17,7 +13,6 @@ services:
context
:
./
volumes
:
-
./webapp-nginx.conf:/etc/nginx/conf.d/default.conf
-
./webapp/dist:/usr/share/nginx/html
ports
:
-
8080:8080
This diff is collapsed.
Click to expand it.
webapp-nginx.conf
+
0
−
1
View file @
04041d1d
...
...
@@ -14,7 +14,6 @@ for lang in (ngx.var.http_accept_language .. ","):gmatch("([^,]*),") do
ngx
.
redirect
(
"/fr/"
)
end
end
ngx
.
redirect
(
"/en/"
)
'
;
#rewrite ^/$ /en/ permanent;
...
...
This diff is collapsed.
Click to expand it.
webapp/Dockerfile
deleted
100644 → 0
+
0
−
22
View file @
5f27e167
FROM
node:8.10.0
# Copy the current directory contents into the container at /app
COPY
. /app/webapp
#COPY ../node-server /app/node-server
WORKDIR
/app/webapp
# Install npm dependencies
RUN
npm
install
# Building the Angular app /dist i18n
RUN
npm run win-build-i18n:fr
#RUN cp -r ./dist ../node-server/dist
# Set the working directory to /node-server
#WORKDIR /app/node-server
# Install npm dependencies
#RUN npm install
#EXPOSE 8080
#CMD npm start
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