Giter VIP home page Giter VIP logo

githubaction-beanstalk-practice's Introduction

기록

1차 시도

jib를 이용해 Docker Build 후 이미지를 도커 허브에 푸시 한 후 ElasticBeanstalk 에서 풀 받아 Run 하려고 시도.
이미지 푸시 까지는 성공 했으나 빈스톡에서 도커 이미지를 풀 받을 수 있는 플러그인을 찾지 못해 실패.


더 공부 해보니 빈스톡이 기본적으로 ebextension의 스크립트를 Procfile실행으로 돌린다는것을 알게 되었음.
이를 조작 하여 docker pull & run 을 할 수 있을지 추후에 시도


2차 시도

일반적인 방법으로 시도.
jar 파일을 빈스톡으로 그대로 보내 실행.

workflows/deploy.yml의 32라인에서
cp target deploy/application.jar 가 디렉토리가 아니라는 에러와 함께 계속 실패

알고보니 빌드시 -plain.jar가 함께 생성 되어 cp 명령어 실행시 두 파일이 함께 옮겨져 에러가 났던것. 스크린샷 2021-08-07 오전 3 15 52

tasks.getByName<Jar>("jar") {
    enabled = false
}

위 태스크를 gradle에 추가 하여 plain.jar 생성 안되도록 변경 후 성공

githubaction-beanstalk-practice's People

Contributors

lee-garden avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.