-
vmware tanzu - Azure Spring Apps seminarSemina/Spring 2023. 4. 25. 13:59
세미나 소개
https://connect.tanzu.vmware.com/Simplify-and-Scale-Enterprise-Spring-Apps-KR.html
VMware Tanzu
VMware Tanzu portfolio is a family of products and services for modernizing your applications and infrastructure with a common goal: deliver better software to production, continuously.
connect.tanzu.vmware.com
10개의 Hands-on 으로 구성되어 있습니다.
https://github.com/eggboy/azurespringapps-workshop-kr
단점 : Azure 계정 지급, 쿼터 늘리는데, 시간 소요가 많이돼, 10개 중 2개 까지밖에 못함
장점 : Azure Spring Apps 에서 사용한 BuildService, Spring Cloud Gateway 등의 기술 동향 파악
vmware tanzu 가 아래처럼 spring.io 를 lead 하고 있다고 소개하고 있습니다.
spring blog 에도 기고
Azure Spring Apps : https://spring.io/blog/2022/05/24/azure-spring-apps-enterprise-is-now-generally-available
Spring | Home
Cloud Your code, any cloud—we’ve got you covered. Connect and scale your services, whatever your platform.
spring.io
Azure 에서 Azure Spring Apps 서비스 + VMware Tanzu 로 만들면, 아래와 같이 VMware Tanzu 서비스가 노출됩니다.
그 중 저는 Build Service 와 Spring Cloud Gateway 가 관심 기술이라 좀 더 찾아 봤습니다.
BuildService
아래가 VMware Tanzu 에서 소개하는 Build Service 입니다.
https://docs.vmware.com/en/VMware-Tanzu-Build-Service/index.html
VMware Tanzu Build Service Documentation
VMware Tanzu Build Service automates container creation, management, and governance at enterprise scale.
docs.vmware.com
기본이 되는 기술은 Cloud Native buildpacks 입니다.
https://buildpacks.io/docs/app-journey/
An App's Brief Journey from Source to Image · Cloud Native Buildpacks
Pack for the journey In this tutorial, we’ll explain how to use pack and buildpacks to create a runnable app image from source code. In order to run the build process in an isolated fashion,…
buildpacks.io
buildpacks 설치하고, sample build 해서 이미지 만드는 과정이 쉽습니다.
brew install buildpacks/tap/pack git clone https://github.com/buildpacks/samples cd samples/apps/java-maven pack build myapp --builder cnbs/sample-builder:jammy https://github.com/buildpacks/samples
참석자 중에 googld 의 JIB 을 사용한다고 의견 주신 분이 있었는데, 매우 흥미로운 기술로 추후 찾아보려 한다
docs : https://cloud.google.com/java/getting-started/jib?hl=ko
Jib로 자바 컨테이너 빌드 | Google Cloud
이 가이드에서는 Jib를 사용하여 최적의 자바 컨테이너를 빌드하고 Cloud Run에 배포하는 방법을 보여줍니다.
cloud.google.com
플러그인 추가후
plugins { id 'com.google.cloud.tools.jib' version '3.3.1' } https://github.com/GoogleContainerTools/jib/tree/master/jib-gradle-plugin#quickstart
한 줄로 image 생성이 가능하다
gradle jib --image=<MY IMAGE>
image registry 설정을 해야하는데 이건 skip
Spring Cloud Gateway
https://cloud.spring.io/spring-cloud-gateway/reference/html/
Spring Cloud Gateway
This project provides an API Gateway built on top of the Spring Ecosystem, including: Spring 5, Spring Boot 2 and Project Reactor. Spring Cloud Gateway aims to provide a simple, yet effective way to route to APIs and provide cross cutting concerns to them
cloud.spring.io
custom route
github : https://github.com/spring-cloud-samples/spring-cloud-gateway-sample
github : https://github.com/spring-cloud/spring-cloud-gateway/tree/main/spring-cloud-gateway-sample
https://docs.vmware.com/en/Spring-Cloud-Gateway-for-VMware-Tanzu/index.html
Spring Cloud Gateway for VMware Tanzu