DevOps/Docker

    NET5.0 으로 작성한 App CI/CD 구현하기 [2] - Github Action 을 이용한 DockerHub Push 자동화 하기

    NET5.0 으로 작성한 App CI/CD 구현하기 [2] - Github Action 을 이용한 DockerHub Push 자동화 하기

    본인의 프로젝트가 Github 에 올라와 있어야 합니다. 1. 작업할 Github repository Settings 으로 진입하여 Secrets 로 탭을 눌러줍니다. 2. New repository secret 버튼을 눌러줍니다. 3. 2개의 secret 를 만들어야 합니다. 아래의 secret name을 참고하여 Name 을 기입하고, Value 에는 DockerHub ID와 비밀번호를 기입하여줍니다. 4. {GithubRepositoryName}/.github/workflows/docker-publish.yml 생성 name: Docker on: push: branches: - master tags: - v* # master 로 푸시된 모든 것을 대상으로 실행하며, Docker 에서는 latest ..

    NET5.0 으로 작성한 App CI/CD 구현하기 [1] - Dockerfile 생성하기

    root 위치에 Dockerfile 파일을 생성해주고 아래와 같이 내용을 넣어줍니다. # builds our image using dotnet's sdk FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build WORKDIR /source # copy everything else and build app COPY . ./app/ WORKDIR /source/app RUN dotnet restore RUN dotnet publish -c release --runtime ubuntu.20.04-x64 -p:ImportByWildcardBeforeSolution=false -o /app -f net5.0 # runs it using aspnet runtime FROM mcr.micr..

    error during connect: Post .... LinuxEngine: The system cannot find the file specified. 에러 해결하기

    error during connect: Post .... LinuxEngine: The system cannot find the file specified. 에러 해결하기

    순간 에러를 보고 당황스러웠다. 처음 보는 에러였고, 검색을 해도 그다지 솔루션을 금방 찾을 수 없었다. 그리하여 생각을 하던 도중... Docker Desktop 이 실행되고 있지 않았다는 사실을 떠올렸다. 평소에 Docker 를 이용하지 않다보니 WSLv2 특성상 메모리를 과도하게 잡아먹어서 평소에는 Docker Desktop 을 꺼두고 있었다. Docker Desktop 실행 후 문제 해결.

    Docker for Windows! 윈도우 10 에서 도커 설치하기

    Docker for Windows! 윈도우 10 에서 도커 설치하기

    https://docs.docker.com/docker-for-windows/install/ 이곳에 접속하여 다운로드 해주고, 인스톨러를 실행합니다. 인스톨러를 이용해 설치한 후 설치를 완료해줍니다. 이러한 화면이 나오는 사람은 https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi 위 인스톨러를 설치해준 뒤 아래의 명령어를 차례대로 입력해 줍니다. dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism.exe /online /enable-feature /featurename:VirtualMachinePla..