Skip to content

Commit

Permalink
Make container ports configurable to support unprivileged ports
Browse files Browse the repository at this point in the history
  • Loading branch information
nexcalmart committed Nov 20, 2023
1 parent 7b8f7d1 commit 32c80af
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions airbyte-webapp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG NGINX_IMAGE=nginx:alpine
FROM ${NGINX_IMAGE}

EXPOSE 80

COPY bin/build /usr/share/nginx/html
COPY bin/nginx/default.conf.template /etc/nginx/templates/default.conf.template


4 changes: 2 additions & 2 deletions airbyte-webapp/nginx/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ upstream keycloak {
}

server {
listen 80;
listen [::]:80;
listen ${NGINX_PORT};
listen [::]:${NGINX_PORT};
server_name localhost;

add_header Content-Security-Policy "script-src * 'unsafe-inline'; worker-src 'self' blob:;";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ spec:

ports:
- name: http
containerPort: 80
containerPort: {{ .Values.ports.http }}
protocol: TCP
{{- if .Values.debug.enabled }}
- name: debug
Expand Down
4 changes: 4 additions & 0 deletions charts/airbyte-connector-builder-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ image:
repository: airbyte/connector-builder-server
pullPolicy: IfNotPresent

## HTTP port of connector-builder-server container - option to switch to a non-privileged one
ports:
http: 80

## podAnnotations [object] Add extra annotations to the server pod
##
podAnnotations: {}
Expand Down
2 changes: 1 addition & 1 deletion charts/airbyte-webapp/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ spec:
{{- end }}
ports:
- name: http
containerPort: 80
containerPort: {{ .Values.ports.http }}
protocol: TCP
{{- if .Values.resources }}
resources: {{- toYaml .Values.resources | nindent 10 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/airbyte-webapp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ image:
repository: airbyte/webapp
pullPolicy: IfNotPresent

## HTTP port of webapp container - option to switch to a non-privileged one
ports:
http: 80

## webapp.podAnnotations [object] Add extra annotations to the webapp pod(s)
##
podAnnotations: {}
Expand Down

0 comments on commit 32c80af

Please sign in to comment.