Slide 31
Slide 31 text
サンプルサービス
● https://github.com/tobachi/aws-copilot-sample-service
31
CopilotでECSを構築してみる
$ cat app/Dockerfile
FROM amazoncorretto:11-alpine
VOLUME /tmp
COPY build/libs/*.jar app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
$ cd app/
$ ./gradlew build
$ docker build -t aws-copilot-sample-service/app .
$ docker run -d -p 80:80 aws-copilot-sample-service/app
$ curl http://localhost:80/actuator/health
{"status":"UP"}
Spring Boot Application
(Backend Service)
ヘルスチェック用の
パスを用意