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
@@ -289,8 +297,9 @@ services:
289
297
"
290
298
291
299
nginx :
292
- image : " nginx:latest "
300
+ image : " localhost/galaxy_ng/galaxy_ng:nginx "
293
301
depends_on :
302
+ - base_img_nginx
294
303
- postgres
295
304
- migrations
296
305
- 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
@@ -308,8 +316,9 @@ services:
308
316
"
309
317
310
318
standalone-nginx :
311
- image : " nginx:latest "
319
+ image : " localhost/galaxy_ng/galaxy_ng:nginx "
312
320
depends_on :
321
+ - base_img_nginx
313
322
- standalone-postgres
314
323
- standalone-migrations
315
324
- standalone-api
@@ -527,8 +536,9 @@ services:
527
536
"
528
537
529
538
insights-nginx :
530
- image : " nginx:latest "
539
+ image : " localhost/galaxy_ng/galaxy_ng:nginx "
531
540
depends_on :
541
+ - base_img_nginx
532
542
- insights-postgres
533
543
- insights-migrations
534
544
- 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'
@@ -291,8 +299,9 @@ services:
291
299
"
292
300
293
301
nginx :
294
- image : " nginx:latest "
302
+ image : " localhost/galaxy_ng/galaxy_ng:nginx "
295
303
depends_on :
304
+ - base_img_nginx
296
305
- postgres
297
306
- migrations
298
307
- 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"
@@ -289,8 +297,9 @@ services:
289
297
"
290
298
291
299
nginx :
292
- image : " nginx:latest "
300
+ image : " localhost/galaxy_ng/galaxy_ng:nginx "
293
301
depends_on :
302
+ - base_img_nginx
294
303
- postgres
295
304
- migrations
296
305
- 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
@@ -293,8 +301,9 @@ services:
293
301
"
294
302
295
303
nginx :
296
- image : " nginx:latest "
304
+ image : " localhost/galaxy_ng/galaxy_ng:nginx "
297
305
depends_on :
306
+ - base_img_nginx
298
307
- postgres
299
308
- migrations
300
309
- 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