Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎉 Feature: support dockerized execution with single command 🐳 #825

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on Sep 13, 2023

  1. ⬇️ 🐛 Downgrade npm dependency in package.json

    Deprecated APIs are still being used in the app. Using npm@7
    so that we can get the app dockerized.
    
    https://stackoverflow.com/questions/74935310/creation-of-probot-github-app-failing-with-error-the-programmatic-api-was-remov
    
    $ docker run -ti marcellodesales/create-probot-app node ./bin/create-probot-app.js
    create-probot-app [options] <destination>
    
      Argument <destination> is required.
    
      Example:
        create-probot-app my-first-app
    
      Run create-probot-app --help to see all options.
    (devsecops-platform-artifactory-manager)
    marcellodesales committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    23a0bab View commit details
    Browse the repository at this point in the history
  2. 🐳 🏗️ Add docker-compose.yaml

    $ docker compose build
    [+] Building 28.3s (14/14) FINISHED                                                                                                                                                                                       docker:desktop-linux
     => [create-probot-app internal] load .dockerignore                                                                                                                                                                                       0.0s
     => => transferring context: 88B                                                                                                                                                                                                          0.0s
     => [create-probot-app internal] load build definition from Dockerfile                                                                                                                                                                    0.0s
     => => transferring dockerfile: 700B                                                                                                                                                                                                      0.0s
     => [create-probot-app internal] load metadata for docker.io/library/node:20-slim                                                                                                                                                         1.3s
     => [create-probot-app base 1/4] FROM docker.io/library/node:20-slim@sha256:2dab2d0e8813ee1601f8d25a8e4aa5530ffc4d0cc16600ec4fd080263b5b1ccd                                                                                              0.0s
     => [create-probot-app internal] load build context                                                                                                                                                                                       0.0s
     => => transferring context: 5.03kB                                                                                                                                                                                                       0.0s
     => CACHED [create-probot-app base 2/4] RUN corepack enable                                                                                                                                                                               0.0s
     => [create-probot-app base 3/4] COPY . /app                                                                                                                                                                                              0.1s
     => [create-probot-app base 4/4] WORKDIR /app                                                                                                                                                                                             0.0s
     => [create-probot-app app-dependencies 1/3] WORKDIR /github.com/marcellodesales/probot                                                                                                                                                   0.0s
     => [create-probot-app app-dependencies 2/3] COPY package* .                                                                                                                                                                              0.0s
     => [create-probot-app app-dependencies 3/3] RUN pnpm install                                                                                                                                                                            12.9s
     => [create-probot-app stage-5 1/2] COPY . .                                                                                                                                                                                              0.1s
     => [create-probot-app stage-5 2/2] RUN pnpm run build                                                                                                                                                                                   11.1s
     => [create-probot-app] exporting to image                                                                                                                                                                                                2.6s
     => => exporting layers                                                                                                                                                                                                                   2.6s
     => => writing image sha256:e793d3fee03df8abd57909c5d9b1cdc96aad8a135185e3c44661823fb4a58042                                                                                                                                              0.0s
     => => naming to docker.io/marcellodesales/create-probot-app
    marcellodesales committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    31b9db1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c2b661f View commit details
    Browse the repository at this point in the history
  4. 🐳 fix gitignore and dockerfile entrypoint

    $ docker run -ti marcellodesales/create-probot-app myapp
    
    Let's create a Probot app!
    Hit enter to accept the suggestion.
    
    ? App name: (myapp)
    marcellodesales committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    7e7f1fd View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. Configuration menu
    Copy the full SHA
    3aab31f View commit details
    Browse the repository at this point in the history