Skip to content

Commit

Permalink
test additional image ecr - fix 3
Browse files Browse the repository at this point in the history
  • Loading branch information
brayan9413 committed Jul 21, 2024
1 parent 0757f33 commit 8a4c7e8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions helm/templates/deployment-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,17 @@ spec:
image: 533267176850.dkr.ecr.us-east-1.amazonaws.com/sample-api-nginx:dev-nginx-latest
ports:
- containerPort: 8080
env:
- name: NGINX_PORT
value: "8080"
command: ["/bin/sh"]
args:
- "-c"
- |
sed -i 's/listen 80;/listen 8080;/' /etc/nginx/conf.d/default.conf
echo "server {
listen 8080;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
}" > /etc/nginx/conf.d/default.conf
nginx -g 'daemon off;'
{{- with .Values.volumes }}
volumes:
Expand Down

0 comments on commit 8a4c7e8

Please sign in to comment.