Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 32 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,43 @@
## 주제 : 도커를 사용해 봅시다
## 요구사항

도커는 요즘 개발에 안쓰이는 곳이 없을 정도로 많이 쓰이고 있는데요!
### 1. 수행 조건

이번주차는 도커를 실제로 실행시키는 겁니다.
- 로컬 환경에서 `Docker`를 이용하여 서버를 띄웠습니다.
- `Spring Boot` 애플리케이션과 `MySQL` 모두 Docker 컨테이너로 구동하였습니다.

아마 4주차 과제로 모두 Spring 어플리케이션이 하나씩 있으실텐데요.
### 2. 과제 제출 조건

이걸 docker image로 만들고 실제로 실행시키는 것이 이번 주차 과제입니다.
- `docker ps -a` 명령어 실행 결과를 캡처하여 첨부하였습니다.
- `Postman`을 이용해 회원가입 & 로그인 API 테스트 결과 캡처하여 첨부하였습니다.

---

## 요구사항
## Docker 실행 결과

도커 컨테이너가 정상적으로 실행된 모습입니다.
Spring 앱과 MySQL 모두 컨테이너로 잘 올라왔습니다.

![docker ps 결과](./sceenshots/docker-ps.jpg)

---

## API 테스트 결과 (Postman)

### 회원가입 (Register)
`POST /api/users/register`
이메일과 비밀번호를 전송하여 회원가입 성공하였습니다.

**수행 조건**
![회원가입](./sceenshots/postman-register.jpg)

1. 로컬환경에서 docker를 이용하여 서버를 띄웁니다.
2. Spring application과 mysql 모두 docker 환경에서 구동되어야 합니다.
### 로그인 (Login)
`POST /api/users/login`
로그인 성공 확인 가능합니다.

**과제 제출 조건**
![로그인](./sceenshots/postman-login.jpg)

1. docker ps -a 명령어를 이용하여 현재 실행중인 컨테이너를 스크린샷 찍어 pr에 첨부합니다.
2. postman과 같은 api 테스트 도구를 이용하여 api를 직접 보내보고 결과를 스크린샷으로 첨부합니다.
---

아마 처음에는 docker 이미지를 만드는 과정부터 막힐 것이라고 생각이 들어요
이런저런 자료를 다 참고해도 괜찮습니다. 한 번 해내면 다음에는 쉬우니까요.
## 정리

## 제출 방법
- README 파일에 도커를 띄운 사진을 첨부한 후 PR을 올려주세요!
- 도커로 Spring 서버 + MySQL 정상 실행됩니다.
- Postman으로 회원가입/로그인 테스트 성공하였습니다.
Binary file added sceenshots/docker-ps.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sceenshots/postman-login.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sceenshots/postman-register.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions todo-list
Submodule todo-list added at d70c28