Skip to content

Commit

Permalink
Merge pull request #145 from f-lab-edu/infra/redis
Browse files Browse the repository at this point in the history
[#17] Redis 세션 클러스터링, [#107] WAS에 의존적인 Session을 걷어내는 작업
  • Loading branch information
EcoFriendlyAppleSu authored Jun 14, 2023
2 parents 46074e5 + bdc6799 commit 2b10487
Show file tree
Hide file tree
Showing 68 changed files with 1,417 additions and 2,088 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,17 @@ permissions:

jobs:
build:

runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379:6379
options:
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5

steps:

Expand Down Expand Up @@ -38,4 +47,7 @@ jobs:
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: build
env:
REDIS_HOST: localhost
REDIS_PORT: 6379

2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ dependencies {
testImplementation 'org.testcontainers:testcontainers:1.17.6'
testImplementation 'org.testcontainers:junit-jupiter:1.17.6'
testImplementation 'org.testcontainers:mysql:1.17.6'
implementation 'com.redis.testcontainers:testcontainers-redis-junit-jupiter:1.4.6'

// DB 관련
implementation 'mysql:mysql-connector-java'
implementation "org.flywaydb:flyway-mysql"
implementation 'org.springframework.boot:spring-boot-starter-data-redis'

// Help
compileOnly 'org.projectlombok:lombok'
Expand Down
Loading

0 comments on commit 2b10487

Please sign in to comment.