2022년 전에 정리한 문서들

Md를 사용해서 Codecommit에 Docker Push 까지 명령어 보여주기

반가운사람2 2022. 8. 23. 20:54
반응형

참고

 

마크다운(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에서는 아래와 같이 확인하실 수 있습니다.

반응형