반응형
참고
마크다운(Markdown) 사용법
마크다운(Markdown) 사용법. GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
MarkDown 파일은 아래와 같습니다.
# Hello server
A simple web server that responds to the resource path `/hello/<name>` with a web page that displays a greeting and timestamp.
## Illustration
Build the image:
```
docker build -t hello-server .
```
Run the server as follows:
```
docker run -p 8080:80 --name my-hello-server hello-server
```
Test the health check endpoint:
```
curl localhost:8080/ping
```
This should return the response `ok`.
Test the `/hello` endpoint:
```
curl localhost:8080/hello/bob
```
This should return:
```
Hi there bob<br>
<i>1617809127162</i>
```
To cleanup:
```
docker kill my-hello-server
docker rm my-hello-server
```
이제 이거를 사용해서 Codecommit 리포지토리에 README.md 파일을 올립니다. 그럼 Codecommit에서는 아래와 같이 확인하실 수 있습니다.
반응형
'2022년 전에 정리한 문서들' 카테고리의 다른 글
ECS CI/CD Workshop 정리(4) - Blue Green Deployment (0) | 2022.08.23 |
---|---|
ECS CI/CD Workshop 정리(3) - Rolling Deploy (0) | 2022.08.23 |
ECS CI/CD Workshop 정리(2) (0) | 2022.08.23 |
ECS CI/CD Workshop 정리(1) (0) | 2022.08.23 |
ECS CI/CD Workshop 정리(0) (0) | 2022.08.23 |