Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

テスト周りのリファクタ #11

Merged
merged 1 commit into from
Dec 19, 2024
Merged
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
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ management tool for equipment and book rental

## Development environment

### Setup with docker and docker-compose
### Setup with docker (compose)

#### First Up (or entirely rebuild)

Expand Down Expand Up @@ -38,3 +38,14 @@ $ docker compose -f docker/test/docker-compose.yml up --abort-on-container-exit

`docker compose down -v`

### Setup VSCode

write it down in your `.vscode/settings.json`

```json
{
"go.testEnvVars": {
"MYSQL_DATABASE": "test"
}
}
```
7 changes: 0 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ services:
MYSQL_USERNAME: root
MYSQL_PASSWORD: password
volumes:
- booq-db:/var/lib/mysql
- ./docker/init.sql:/docker-entrypoint-initdb.d/init.sql
expose:
- '3306'
Expand All @@ -31,8 +30,6 @@ services:
MINIO_ROOT_PASSWORD: password
MINIO_ACCESS_KEY: minio_access_key
MINIO_SECRET_KEY: minio_secret_key
volumes:
- booq-s3:/data
s3-init:
image: minio/mc
depends_on:
Expand Down Expand Up @@ -81,7 +78,3 @@ services:
restart: always
ports:
- 8000:8080

volumes:
booq-db:
booq-s3:
2 changes: 2 additions & 0 deletions docker/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ SET

SET
collation_server = 'utf8mb4_general_ci';

CREATE DATABASE IF NOT EXISTS `test`;
File renamed without changes.
Loading