Open in app

Sign in

Write

Sign in

Kevin Park
Kevin Park

65 Followers

Home

About

Jan 12

Jenkins on kubernetes 에서 Testcontainers 사용하기

안녕하세요. Kevin 입니다. Kubernetes에서 Jenkins를 사용할 때 Docker 사용을 위해 DooD 또는 DinD 방식을 사용하실겁니다. DooD와 DinD의 차이를 간략하게 설명 드리겠습니다. DooD는 host의 docker.sock을 공유하여 container를 실행하는 방식이며 DinD는 별도로 실행한 docker container에서 다른 container를 실행하는 방식 입니다. 기존에 DooD 방식을 사용하다가 kubernetes의 container runtime이 containerd로 넘어가게 되면서 docker.sock을 공유할 수 없게 되고 containerd.sock 을 공유하여도 Testcontainers를 사용할 수 없어 DinD 방식으로 변경하게 되었습니다. Jenkins 관리 > Configure Clouds 에서 Pod Templates 설정 하는 방법입니다.

Testcontainers

3 min read

Jenkins on kubernetes 에서 Testcontainers 사용하기
Jenkins on kubernetes 에서 Testcontainers 사용하기
Testcontainers

3 min read


Jan 11, 2022

Junit Test with Fixture Monkey

안녕하세요. Kevin 입니다. 테스트를 작성할 때 매번 테스트 객체 생성에 불편함이 있었는데 이를 쉽게 해결해주는 라이브러리가 있어 소개 드립니다. 네이버에서 공개한 Fixture Monkey 입니다. Fixture Monkey is a Java library for automatically generating …

Spring Boot

2 min read

Spring Boot

2 min read


Nov 26, 2021

Springboot 2.6.0 릴리즈

안녕하세요. Kevin 입니다. Spring Boot 2.6 릴리즈가 되었습니다. Circular References Prohibited by Default 순환참조 방지 property가 생겼으며 기본 true 입니다. 순환참조를 허용하고 싶을 경우 spring.main.allow-circular-references 를 변경하여 허용 할 수 있습니다. PathPattern Based Path Matching Strategy for Spring MVC Spring MVC 핸들러 매핑에 대해 요청 경로를 일치시키는 기본 전략이 AntPathMatcher에서 PathPatternParser로…

Spring

2 min read

Spring

2 min read


Sep 28, 2021

Springboot Java17 with jlink

안녕하세요. Kevin 입니다. 새로운 LTS 버전인 Java17이 GA 되고 Adoptium (구 AdoptOpenJDK)에서 17버전이 나왔습니다. sdkman을 사용하는 경우는 Vendor Temurin 으로 확인 할 수 있습니다. Java17을 기다리면 꾸준히 버전업을 해왔기에 바로 적용을 시도 했습니다 …

Springboot

4 min read

Springboot Java17 with jlink
Springboot Java17 with jlink
Springboot

4 min read


Jun 10, 2021

Springboot Webflux with Blockhound

안녕하세요. Kevin 입니다. 스프링 Webflux를 통해 리액티브 기반의 비동기 / 논블록킹 서비스를 개발할 수 있습니다. 점점 많은 곳에서 Webflux를 도입하고 있는데요. 동일한 Rest API를 MVC와 Webflux를 비교했을 때 Webflux의 처리량이 약 3배 정도 좋았습니다. 단일 건에 대한 응 …

Spring Boot

5 min read

Spring Boot

5 min read


Apr 19, 2021

WebClient Netty Logging

안녕하세요. Kevin 입니다. 스프링 WebClinet 사용 시 WebClint에 대한 로그가 예쁘게 나오지 않았었는데요. reactor 1.0.0 부터 AdvancedByteBufFormat.TEXTUAL 가 제공 되어 조금 더 plan text로 로그를 확인 할 수 있습니다. AdvancedByteBufFormat에는 SIMPLE, HEX_DUMP, TEXTUAL 3가지 타입을 ENUM으로 제공하고 있습니다. 그럼 WebClient 설정 시 AdvancedByteBufFormat.TEXTUAL 적용 하는 방법과 Proxy를 적용하는 방법 두가지로 작성해 보았습니다. WebClient는 JVM에 설정한 Proxy Properties를 이용하지 않기 때문에 Proxy가 필요한 경우 WebClient에 직접 설정 해주어야 합니다.

Webclient

2 min read

WebClient Netty Logging
WebClient Netty Logging
Webclient

2 min read


Apr 6, 2021

Springboot properties ConstructorBinding with Validated

안녕하세요. kevin 입니다. 스프링부트 2.2.0 부터 지원하고 있는 ConstructorBinding 을 이용하여 불변 properties를 생성하고 생성 시 validation을 통해 보다 안전한 방법으로 사용하는 방법을 추천 드립니다. properties에 값을 주입하는 방법은 여러 방법이 있으나 Con …

Spring Boot

5 min read

Spring Boot

5 min read


Nov 16, 2020

Springboot 2.4.0 변경 내용

Spring Boot 2.4 Release Notes JUnit 5’s Vintage Engine Removed from spring-boot-starter-test Config File Processing (application properties and YAML files) : Spring Boot Config Data Migration Guide - config 파일 처리 과정 변경 → 기존 방식 이용하려면 spring.config.use-legacy-processing 설정 필요 a. Multi-Document Files - YAML multi-document syntax 외 .profiles …

Springboot

1 min read

Springboot

1 min read


Mar 13, 2020

Springboot2 + log4j2 + slackappender

springboot2 의 logging 라이브러리를 log4j2로 변경하고 log를 slack으로 보내는 예제 입니다. spring은 기본 logging으로 logback을 사용하고 있습니다. log4j2는 예전 log4j의 단점을 보완하고 logback의 장점을 더욱 발전시켜 나온 것으로 알고 있습니다. Logging Library Performance Comparison 그래서 프로젝트의 logging 라이브러리를 log4j2로 변경하기로 했습니다. 1. 먼저 gradle 설정을 변경해야 합니다. 기존 spring-boot-starter-logging 라이브러리를 제외 시키고 spring-boot-starter-log4j2를 추가 합니다. 2. 프로퍼티에 log 설정파일의 위치를 설정값으로 입력합니다. 기본 위치에 등록하여 자동으로 처리하여도 되지만 profile 별로 설정을 하려면 logging.config 를 설정해주어야 합니다.

Springboot

3 min read

Springboot2 + log4j2 + slackappender
Springboot2 + log4j2 + slackappender
Springboot

3 min read


Feb 29, 2020

SpringBoot OAuth2.0 Reative Client With WebFlux Security

스프링부트 2.2.5 기반으로 작성 된 OAuth2.0 Reactive Client와 WebFlux Security 구현에 관련 된 글입니다. OAuth2 Client 의 구현은 스프링부터의 경우 설정만으로 거의 모든 부분이 해결 됩니다. 여기에서는 구글, 카카오, 네이버 OAuth Client 로그인 및 해당 …

Springboot

4 min read

SpringBoot OAuth2.0 Reative Client With Spring Security
SpringBoot OAuth2.0 Reative Client With Spring Security
Springboot

4 min read

Kevin Park

Kevin Park

65 Followers

Software Engineer

Following
  • jelly

    jelly

  • Netflix Technology Blog

    Netflix Technology Blog

  • John

    John

  • Pinterest Engineering

    Pinterest Engineering

  • 쿠팡 엔지니어링

    쿠팡 엔지니어링

See all (48)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams