Skip to content

Commit ab8a570

Browse files
just switch to port 80
1 parent 6645194 commit ab8a570

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
config.txt
22
__pycache__
3+
4+
# Ignore local Ruby config necessary for our custom AWS auth solution
5+
.ruby-version

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ COPY ./test /app/test
1111
COPY ./lib /app/lib
1212
COPY ./src /app/src
1313

14-
EXPOSE 5000
15-
CMD ["waitress-serve", "--host=0.0.0.0", "--port=5000", "--call", "src:create_app"]
14+
EXPOSE 80
15+
CMD ["waitress-serve", "--host=0.0.0.0", "--port=80", "--call", "src:create_app"]

cicd/3-app/aiproxy/template.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Resources:
9292
- !ImportValue VPC-SubnetC
9393
LoadBalancers:
9494
- ContainerName: aiproxy
95-
ContainerPort: 5000
95+
ContainerPort: 80
9696
TargetGroupArn: !Ref ECSTargetGroup
9797

9898
ECSSecurityGroup:
@@ -119,7 +119,7 @@ Resources:
119119
Cpu: 256
120120
Essential: true
121121
PortMappings:
122-
- ContainerPort: 5000
122+
- ContainerPort: 80
123123
LogConfiguration:
124124
LogDriver: awslogs
125125
Options:

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ services:
44
build: .
55
env_file: "config.txt"
66
ports:
7-
- "5000:5000"
7+
- "80:80"

test/assessment-test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# standard one in Ruby, but we wanted this test to work with
66
# a stock install for the sake of quick testing.
77

8-
uri = URI('http://localhost:5000')
8+
uri = URI('http://localhost:80')
99
uri.path = '/assessment'
1010

1111
code = File.read('test/data/u3l23_01.js')

0 commit comments

Comments
 (0)