Skip to content
This repository was archived by the owner on Aug 3, 2025. It is now read-only.

Commit 9eaaf4d

Browse files
Merge pull request #37 from acm-uiuc/rename_yaml_keys
Ruby services cleanup
2 parents b26494b + ef4fa12 commit 9eaaf4d

File tree

3 files changed

+21
-16
lines changed

3 files changed

+21
-16
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ services:
9797
groot-recruiters-service:
9898
build: groot-recruiters-service
9999
ports:
100-
- "3000:3000"
100+
- "4567:4567"
101101
depends_on:
102102
- db
103103
- groot-api-gateway

scripts/database_setup.sql

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
CREATE DATABASE IF NOT EXISTS groot_caffeine_service_dev;
21
CREATE DATABASE IF NOT EXISTS groot_credits_service;
32
CREATE DATABASE IF NOT EXISTS groot_gigs_service;
43
CREATE DATABASE IF NOT EXISTS groot_meme_service;
5-
CREATE DATABASE IF NOT EXISTS groot_merch_service_dev;
6-
CREATE DATABASE IF NOT EXISTS groot_quote_service_dev;
7-
CREATE DATABASE IF NOT EXISTS groot_recruiter_service_dev;
8-
CREATE DATABASE IF NOT EXISTS groot_user_service_dev;
4+
CREATE DATABASE IF NOT EXISTS groot_merch_service;
5+
CREATE DATABASE IF NOT EXISTS groot_quote_service;
6+
CREATE DATABASE IF NOT EXISTS groot_recruiter_service;
7+
CREATE DATABASE IF NOT EXISTS groot_user_service;
98
CREATE USER 'root'@'%' IDENTIFIED BY 'root';
109
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%';
1110
FLUSH PRIVILEGES;

scripts/docker_settings_init.sh

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ merch_pi:
6060
access_key: 'INSERT_TOKEN_HERE'
6161
ip_address: 'INSERT_IPADDRESS'
6262
63-
development:
63+
database:
6464
user: root
6565
password: root
6666
hostname: db
67-
name: groot_merch_service_dev"
67+
name: groot_merch_service"
6868
echo "$merch_secrets" > groot-merch-service/config/secrets.yaml
6969

7070
##### SETUP QUOTES #####
@@ -73,11 +73,11 @@ quotes_secrets="groot:
7373
access_key: 'GROOT_ACCESS_KEY'
7474
host: 'http://groot-api-gateway:8000'
7575
76-
development:
76+
database:
7777
user: root
7878
password: root
7979
hostname: db
80-
name: groot_quote_service_dev"
80+
name: groot_quote_service"
8181

8282
echo "$quotes_secrets" > groot-quotes-service/config/secrets.yaml
8383

@@ -88,17 +88,24 @@ recruiters_secrets="aws:
8888
secret_access_key: ''
8989
9090
groot:
91-
access_key: 'INSERT_TOKEN_HERE'
91+
access_key: 'GROOT_ACCESS_KEY'
9292
host: 'http://groot-api-gateway:8000'
9393
9494
jwt:
9595
secret: 'SECRET_JWT_TOKEN'
9696
97-
development:
97+
database:
98+
user: root
99+
password: root
100+
hostname: db
101+
name: groot_recruiter_service
102+
103+
test_database:
98104
user: root
99105
password: root
100106
hostname: db
101-
name: groot_recruiter_service_dev"
107+
name: groot_recruiter_service_test"
108+
102109
echo "$recruiters_secrets" > groot-recruiters-service/config/secrets.yaml
103110

104111
##### SETUP USERS #####
@@ -107,11 +114,11 @@ users_secrets="groot:
107114
access_key: 'GROOT_ACCESS_KEY'
108115
host: 'http://groot-api-gateway:8000'
109116
110-
development:
117+
database:
111118
user: root
112119
password: root
113120
hostname: db
114-
name: groot_user_service_dev"
121+
name: groot_user_service"
115122
echo "$users_secrets" > groot-users-service/config/secrets.yaml
116123

117124
##### SETUP DESKTOP #####
@@ -136,7 +143,6 @@ import (
136143
\"github.com/acm-uiuc/arbor/security\"
137144
)
138145
139-
const RecruiterToken string = \"\"
140146
const AuthPrefix = \"Basic \"
141147
const AuthURL string = \"http://groot-auth-stub-service:8008\"
142148
const AuthToken string = \"\"

0 commit comments

Comments
 (0)