Skip to Content
OpenShift 운영
book

OpenShift 운영

by Rick Rackow, Manuel Dewald
May 2025
Beginner to intermediate
266 pages
4h 10m
Korean
O'Reilly Media, Inc.
Content preview from OpenShift 운영

5장. 빌드 자동화

이 작품은 AI를 사용하여 번역되었습니다. 여러분의 피드백과 의견을 환영합니다: translation-feedback@oreilly.com

3장에서는 명령을 실행하여 Kubernetes 객체를 생성하고 중앙 컨테이너 레지스트리에서 컨테이너 이미지를 가져와서 애플리케이션을 OpenShift 클러스터에 배포하는 방법을 살펴보았습니다. 그러나 대부분의 애플리케이션은 처음 배포된 후 시간이 지나면서 개발 및 업데이트됩니다.

특히 워드 프로세서와 같이 로컬 디바이스에서 실행되는 소프트웨어가 아니라 OpenShift 클러스터와 같은 Cloud 플랫폼에서 실행되는 소프트웨어의 경우 더욱 그렇습니다. 소프트웨어를 소비자 디바이스로 배송하는 것은 Cloud 소프트웨어를 업데이트하는 것보다 훨씬 더 복잡한 프로세스이기 때문에 많은 제품에서 Cloud 소프트웨어를 생산하기 위해 이동하는 이유 중 하나입니다.

웹 서비스로 실행되는 소프트웨어는 일반적으로 웹 브라우저 또는 클라이언트가 있는 소비자 디바이스에서 액세스합니다. 소프트웨어 자체는 개발 회사에서 언제든지 업그레이드할 수 있으며, 많은 회사에서 하루에 여러 번 업데이트를 배포하기도 합니다.

이 책에서 설명하는 예시 게임 개발사와 같이 모든 워크로드를 OpenShift에서 컨테이너로 실행하는 회사의 경우 컨테이너 이미지를 생성하고 업데이트하는 프로세스를 자동화하고 재현할 수 있어야 합니다. 하루 종일 앉아서 컨테이너 이미지를 생성하고 배포하고 싶어하는 사람은 아무도 없습니다.

이 장에서는 개발자가 자신의 컴퓨터에서 작성한 코드를 실행할 OpenShift 클러스터로 가져오는 자동화된 절차를 만드는 방법에 대해 설명합니다.

다행히 OpenShift는 이 프로세스에 도움이 되는 몇 가지 도구를 이미 제공하고 있습니다.

OpenShift 이미지 빌드

이 장에서 살펴보는 도구 중 첫 번째는 모든 OpenShift 설치와 함께 제공되는 기본 제공 빌드 머신입니다. 이미 3장에서 예제 애플리케이션의 하이스코어 서비스를 빌드하고 배포할 때 Git 저장소의 코드를 기반으로 컨테이너 이미지를 빌드하는 데 이 도구를 사용한 적이 있습니다.

OpenShift 는 세 가지 빌드 전략을 지원합니다:

  • Docker 빌드: Docker파일에서 컨테이너 이미지 빌드하기

  • S2I(소스에서 이미지로) 빌드: 빌더 이미지를 사용하여 소스 코드에서 컨테이너 이미지 빌드하기

  • 사용자 지정 빌드: 사용자 지정 컨테이너 이미지를 실행하여 애플리케이션 이미지를 빌드합니다.

다음 섹션에서는 이러한 전략에 대해 자세히 설명하고 사용 사례에 적합한 전략을 선택하는 데 도움을 줍니다.

Docker 빌드

먼저 Docker 빌드 전략( )을 사용해 보세요. 이미 Docker파일이 있는 컨테이너 이미지의 빌드를 쉽게 온보딩할 수 있습니다. Docker파일은 애플리케이션 컨테이너 이미지가 어떻게 빌드되어야 하는지를 설명합니다.

애플리케이션을 배포할 방법이 결정되기도 전에 애플리케이션을 개발하는 경우가 많습니다. 이 시점에서 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

프로덕션 Kubernetes

프로덕션 Kubernetes

Josh Rosso, Rich Lander, Alex Brand, John Harris
Docker: Up & Running, 제3판

Docker: Up & Running, 제3판

Sean P. Kane, Karl Matthias
Docker Containers

Docker Containers

Christopher Negus
Apache Hudi: The Definitive Guide

Apache Hudi: The Definitive Guide

Shiyan Xu, Prashant Wason, Bhavani Sudha Saktheeswaran, Rebecca Bilbro

Publisher Resources

ISBN: 9798341655492