File tree 9 files changed +71
-9
lines changed
9 files changed +71
-9
lines changed Original file line number Diff line number Diff line change
1
+ # This Dockerfile is meant to extract the nginx snippets from Dockerfile.rhel8
2
+ FROM localhost/galaxy_ng/galaxy_ng:base as builder
3
+
4
+ USER root
5
+ RUN mkdir -p /etc/nginx/pulp \
6
+ && ln $(pip show pulp_ansible | sed -n -e 's/Location: //p' )/pulp_ansible/app/webserver_snippets/nginx.conf /etc/nginx/pulp/pulp_ansible.conf \
7
+ && ln $(pip show pulp_container | sed -n -e 's/Location: //p' )/pulp_container/app/webserver_snippets/nginx.conf /etc/nginx/pulp/pulp_container.conf \
8
+ && cp /app/galaxy_ng/app/webserver_snippets/nginx.conf /etc/nginx/pulp/galaxy.conf
9
+
10
+ FROM docker.io/nginx:latest
11
+
12
+ RUN mkdir -p /etc/nginx/pulp
13
+ COPY --from=builder /etc/nginx/pulp/*.conf /etc/nginx/pulp
14
+
15
+ # Run script uses standard ways to run the application
16
+ CMD nginx -g "daemon off;"
Original file line number Diff line number Diff line change @@ -101,6 +101,14 @@ services:
101
101
<< : *common-env
102
102
image : " localhost/galaxy_ng/galaxy_ng:dev"
103
103
104
+ base_img_nginx : # Extracts nginx files from base_img
105
+ depends_on :
106
+ - base_img
107
+ build :
108
+ context : .
109
+ dockerfile : Dockerfile.nginx
110
+ image : " localhost/galaxy_ng/galaxy_ng:nginx"
111
+
104
112
redis :
105
113
image : " redis:5"
106
114
@@ -286,8 +294,9 @@ services:
286
294
"
287
295
288
296
nginx :
289
- image : " nginx:latest "
297
+ image : " localhost/galaxy_ng/galaxy_ng:nginx "
290
298
depends_on :
299
+ - base_img_nginx
291
300
- postgres
292
301
- migrations
293
302
- api
Original file line number Diff line number Diff line change @@ -122,6 +122,14 @@ services:
122
122
<< : *common-env
123
123
image : " localhost/galaxy_ng/galaxy_ng:dev"
124
124
125
+ base_img_nginx : # Extracts nginx files from base_img
126
+ depends_on :
127
+ - base_img
128
+ build :
129
+ context : .
130
+ dockerfile : Dockerfile.nginx
131
+ image : " localhost/galaxy_ng/galaxy_ng:nginx"
132
+
125
133
redis :
126
134
image : " redis:5"
127
135
@@ -305,8 +313,9 @@ services:
305
313
"
306
314
307
315
standalone-nginx :
308
- image : " nginx:latest "
316
+ image : " localhost/galaxy_ng/galaxy_ng:nginx "
309
317
depends_on :
318
+ - base_img_nginx
310
319
- standalone-postgres
311
320
- standalone-migrations
312
321
- standalone-api
@@ -524,8 +533,9 @@ services:
524
533
"
525
534
526
535
insights-nginx :
527
- image : " nginx:latest "
536
+ image : " localhost/galaxy_ng/galaxy_ng:nginx "
528
537
depends_on :
538
+ - base_img_nginx
529
539
- insights-postgres
530
540
- insights-migrations
531
541
- insights-api
Original file line number Diff line number Diff line change @@ -111,6 +111,14 @@ services:
111
111
<< : *common-env
112
112
image : " localhost/galaxy_ng/galaxy_ng:dev"
113
113
114
+ base_img_nginx : # Extracts nginx files from base_img
115
+ depends_on :
116
+ - base_img
117
+ build :
118
+ context : .
119
+ dockerfile : Dockerfile.nginx
120
+ image : " localhost/galaxy_ng/galaxy_ng:nginx"
121
+
114
122
github :
115
123
build :
116
124
context : ' ../../profiles/community/github_mock'
@@ -288,8 +296,9 @@ services:
288
296
"
289
297
290
298
nginx :
291
- image : " nginx:latest "
299
+ image : " localhost/galaxy_ng/galaxy_ng:nginx "
292
300
depends_on :
301
+ - base_img_nginx
293
302
- postgres
294
303
- migrations
295
304
- api
Original file line number Diff line number Diff line change @@ -102,6 +102,14 @@ services:
102
102
<< : *common-env
103
103
image : " localhost/galaxy_ng/galaxy_ng:dev"
104
104
105
+ base_img_nginx : # Extracts nginx files from base_img
106
+ depends_on :
107
+ - base_img
108
+ build :
109
+ context : .
110
+ dockerfile : Dockerfile.nginx
111
+ image : " localhost/galaxy_ng/galaxy_ng:nginx"
112
+
105
113
proxy :
106
114
build :
107
115
context : " ../../profiles/insights/proxy"
@@ -286,8 +294,9 @@ services:
286
294
"
287
295
288
296
nginx :
289
- image : " nginx:latest "
297
+ image : " localhost/galaxy_ng/galaxy_ng:nginx "
290
298
depends_on :
299
+ - base_img_nginx
291
300
- postgres
292
301
- migrations
293
302
- api
Original file line number Diff line number Diff line change @@ -107,6 +107,14 @@ services:
107
107
<< : *common-env
108
108
image : " localhost/galaxy_ng/galaxy_ng:dev"
109
109
110
+ base_img_nginx : # Extracts nginx files from base_img
111
+ depends_on :
112
+ - base_img
113
+ build :
114
+ context : .
115
+ dockerfile : Dockerfile.nginx
116
+ image : " localhost/galaxy_ng/galaxy_ng:nginx"
117
+
110
118
redis :
111
119
image : " redis:5"
112
120
@@ -290,8 +298,9 @@ services:
290
298
"
291
299
292
300
nginx :
293
- image : " nginx:latest "
301
+ image : " localhost/galaxy_ng/galaxy_ng:nginx "
294
302
depends_on :
303
+ - base_img_nginx
295
304
- postgres
296
305
- migrations
297
306
- api
Original file line number Diff line number Diff line change 73
73
proxy_pass http://pulp-api;
74
74
}
75
75
76
- # include pulp/*.conf;
76
+ include pulp/*.conf;
77
77
78
78
location / {
79
79
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Original file line number Diff line number Diff line change 73
73
proxy_pass http://pulp-api;
74
74
}
75
75
76
- # include pulp/*.conf;
76
+ include pulp/*.conf;
77
77
78
78
location / {
79
79
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Original file line number Diff line number Diff line change 73
73
proxy_pass http://pulp-api;
74
74
}
75
75
76
- # include pulp/*.conf;
76
+ include pulp/*.conf;
77
77
78
78
location / {
79
79
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
You can’t perform that action at this time.
0 commit comments