docker
-
Github Actions을 이용한 간단한 Docker 빌드/배포 자동화AI&ML 2023. 2. 7. 20:41
GitHub Actions는 CI/CD(Continuous Integration/Continuous Deployment) 플랫폼으로 개발자가 코드를 빌드, 테스트 및 배포하는 작업을 자동화할 수 있습니다. GitHub 저장소에 있는 이벤트에 응답하여 사용자 지정 스크립트 또는 미리 정의된 작업을 실행할 수 있습니다. GitHub Actions 워크플로우는 저장소의 .github/workflows 디렉토리에 있는 yml 파일의 YAML 구문을 사용하여 정의됩니다. 다음은 소스에 대한 푸시 이벤트에 대해 실행하는 간단한 워크플로의 예를 보여드릴게요. name: CI on: push: branches: - main jobs: build: runs-on: ubuntu-latest steps: - name: Ch..
-
Docker 도커 컨테이너 로컬 환경 설치Azure 2022. 11. 22. 10:13
도커(Docker) 가 나오게 된 배경을 간단하게 알아보고, 도커와 컨테이너 그리고 VM과 다른 점을 이해하고, 내 컴퓨터에서 도커를 개발하기 위해 도커 엔진을 설치하는 법을 5분이면 이해할 수 있게 설명하였다. 도커(Docker)가 나오게된 배경 개발자 입장에서 보면, 일반적으로 프로젝트에 투입되고, 일주일은 개발환경 셋팅 하는데 시간을 보낸다 라는 말이 있다. 그만큼 개발환경 셋팅이 어렵고, 많은 소프트웨어를 설치해야 하고, 환경설정을 맞추는데 많은 시간과 비용이 든다. 개발을 하다 보면 여러 다른 라이브러리들을 설치하고 설정 값들이 변하게 된다. 이렇게 복잡한 환경에서 개발한다음 서버에 배포를 해야 한다고 생각하면 아마 배포 담당자는 서버에 같은 환경을 설치하는데 엄청나게 골치가 아플 것이다. 그래..