2.3. 정의 파일 빌드
Ansible Builder가 설치되면 Ansible Builder에서 자동화 실행 환경 이미지를 생성하는 데 사용하는 정의 파일을 생성할 수 있습니다. 자동화 실행 환경 이미지를 빌드하는 상위 수준 프로세스는 Ansible Builder에서 정의 파일을 읽고 검증한 다음 을 Podman에 생성한 다음, 자동화 실행 환경 이미지를 패키징하고 생성하는 것입니다. 생성된 정의 파일은 Containerfile yaml 형식이며 다른 섹션이 포함되어 있습니다. 정의 파일 콘텐츠에 대한 자세한 내용은 정의 파일 내용 중단 을 참조하십시오.
다음은 정의 파일의 예입니다.
예 2.1. 정의 파일
version: 1 build_arg_defaults: 1 ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: "-v" dependencies: 2 galaxy: requirements.yml python: requirements.txt system: bindep.txt additional_build_steps: 3 prepend: | RUN whoami RUN cat /etc/os-release append: - RUN echo This is a post-install command! - RUN ls -la /etc
이러한 정의 파일 매개변수에 대한 자세한 내용은 정의 파일 콘텐츠 분석기를 참조하십시오.