새로운 도구를 사용하려고 할 때 기존의 방식은
download
-> install
-> Error
-> debug
-> install again
-> Error again
-> debug again....
-> Success!
Docker는 소프트웨어를 설치하고 실행하게 해줍니다. 설치된 종속성과 사용된 운영체제에 관계 없이. 에러 디버깅 같은 건 이제 더 이상 없습니다.
응용 프로그램을 설치하려면
######################################################
# AIRFLOW
######################################################
airflow:
build: ./docker/airflow # 빌드 도커 이미지
restart: always # 실패하면 자동 시작
container_name: airflow
volumes:
- ./mnt/airflow/airflow.cfg:/opt/airflow/airflow.cfg # 환경설정 파일 적용
- ./mnt/airflow/dags:/opt/airflow/dags # 마운트/에어플로에 있는 폴더가 dag
ports:
- 8080:8080
healthcheck:
test: [ "CMD", "nc", "-z", "airflow", "8080" ]
timeout: 45s
interval: 10s
retries: 10
Settings
-> Resources
를 클릭합니다.