Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
TMS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CC-IN2P3 Applications team
TMS
Commits
72a1004c
Commit
72a1004c
authored
5 years ago
by
Cyril L'Orphelin
Browse files
Options
Downloads
Patches
Plain Diff
Change directory of nginx configuration files
parent
8699436e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+6
-3
6 additions, 3 deletions
Dockerfile
with
6 additions
and
3 deletions
Dockerfile
+
6
−
3
View file @
72a1004c
...
...
@@ -28,9 +28,12 @@ RUN addgroup nginx root
# support running as arbitrary user which belongs to the root group
RUN
chmod
g+rwx /var/cache /var/run /var/log
# users are not allowed to listen on priviliged ports
RUN
sed
-i
.bak
's/listen\(.*\)80;/listen 8081;/'
/etc/nginx/conf.d/default.conf
#RUN sed -i.bak 's/listen\(.*\)80;/listen 8081;/' /etc/nginx/conf.d/default.conf
RUN
sed
-i
.bak
's/listen\(.*\)80;/listen 8081;/'
/opt/nginx/conf/nginx.conf
# comment user directive as master process is run as user in OpenShift anyhow
RUN
sed
-i
.bak
's/^user/#user/'
/etc/nginx/nginx.conf
#RUN sed -i.bak 's/^user/#user/' /etc/nginx/nginx.conf
RUN
sed
-i
.bak
's/^user/#user/'
/opt/nginx/nginx.conf
# forward request and error logs to docker log collector
RUN
ln
-sf
/dev/stdout /var/log/nginx/access.log
&&
ln
-sf
/dev/stderr /var/log/nginx/error.log
######################
...
...
@@ -60,7 +63,7 @@ EXPOSE 80
EXPOSE
8081
RUN
ls
-alh
RUN
mv
symfony.conf /
etc
/nginx/conf.d/default.conf
RUN
mv
symfony.conf /
opt
/nginx/conf.d/default.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