File tree Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ management tool for equipment and book rental
9
9
10
10
## Development environment
11
11
12
- ### Setup with docker and docker- compose
12
+ ### Setup with docker ( compose)
13
13
14
14
#### First Up (or entirely rebuild)
15
15
@@ -38,3 +38,14 @@ $ docker compose -f docker/test/docker-compose.yml up --abort-on-container-exit
38
38
39
39
` docker compose down -v `
40
40
41
+ ### Setup VSCode
42
+
43
+ write it down in your ` .vscode/settings.json `
44
+
45
+ ``` json
46
+ {
47
+ "go.testEnvVars" : {
48
+ "MYSQL_DATABASE" : " test"
49
+ }
50
+ }
51
+ ```
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ services:
8
8
MYSQL_USERNAME : root
9
9
MYSQL_PASSWORD : password
10
10
volumes :
11
- - booq-db:/var/lib/mysql
12
11
- ./docker/init.sql:/docker-entrypoint-initdb.d/init.sql
13
12
expose :
14
13
- ' 3306'
@@ -31,8 +30,6 @@ services:
31
30
MINIO_ROOT_PASSWORD : password
32
31
MINIO_ACCESS_KEY : minio_access_key
33
32
MINIO_SECRET_KEY : minio_secret_key
34
- volumes :
35
- - booq-s3:/data
36
33
s3-init :
37
34
image : minio/mc
38
35
depends_on :
@@ -81,7 +78,3 @@ services:
81
78
restart : always
82
79
ports :
83
80
- 8000:8080
84
-
85
- volumes :
86
- booq-db :
87
- booq-s3 :
Original file line number Diff line number Diff line change 3
3
4
4
SET
5
5
collation_server = ' utf8mb4_general_ci' ;
6
+
7
+ CREATE DATABASE IF NOT EXISTS ` test` ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments