Configure endpoint for healthcheck
Configure endpoint for healthcheck Update healthcheck to run HOTFIX: Fix healthcheck protocol HOTFIX: Expose healthcheck port task HOTFIX: Make healthcheck UDP & remove TCP endpoint Reimplement healthcheck without forcing port Reimplement healthcheck without forcing port
This commit is contained in:
		@ -36,6 +36,9 @@ Resources:
 | 
				
			|||||||
        - HostPort: 0
 | 
					        - HostPort: 0
 | 
				
			||||||
          ContainerPort: 7777
 | 
					          ContainerPort: 7777
 | 
				
			||||||
          Protocol: udp
 | 
					          Protocol: udp
 | 
				
			||||||
 | 
					        - HostPort: 0
 | 
				
			||||||
 | 
					          ContainerPort: 80
 | 
				
			||||||
 | 
					          Protocol: tcp
 | 
				
			||||||
        LogConfiguration:
 | 
					        LogConfiguration:
 | 
				
			||||||
          LogDriver: awslogs
 | 
					          LogDriver: awslogs
 | 
				
			||||||
          Options:
 | 
					          Options:
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,7 @@
 | 
				
			|||||||
FROM fedora:32
 | 
					FROM fedora:32
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN /bin/bash -c "dnf install g++ enet-devel gtest gmock gmock-devel gtest-devel -y"
 | 
					# Build and setup app
 | 
				
			||||||
 | 
					RUN dnf install g++ enet-devel gtest gmock gmock-devel gtest-devel -y
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ADD / /dt
 | 
					ADD / /dt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -8,4 +9,12 @@ RUN cd /dt; /dt/build.sh
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CMD ["/dt/builds/server.out"]
 | 
					CMD ["/dt/builds/server.out"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Setup status endpoint
 | 
				
			||||||
 | 
					RUN dnf install nginx -y
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					COPY nginx.conf /etc/nginx/conf.d/nginx.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN systemctl enable nginx.service
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					EXPOSE 80/tcp
 | 
				
			||||||
EXPOSE 7777/udp
 | 
					EXPOSE 7777/udp
 | 
				
			||||||
							
								
								
									
										10
									
								
								server/nginx.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								server/nginx.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					server {
 | 
				
			||||||
 | 
					    location / {
 | 
				
			||||||
 | 
					        root /usr/share/nginx/html;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    location /health {
 | 
				
			||||||
 | 
					        return 200 'alive';
 | 
				
			||||||
 | 
					        add_header Content-Type text/plain;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user