🎉 Feature: support dockerized execution with single command 🐳 #825
Open
marcellodesales wants to merge 5 commits intoprobot:masterfrom
Open
🎉 Feature: support dockerized execution with single command 🐳 #825marcellodesales wants to merge 5 commits intoprobot:masterfrom
marcellodesales wants to merge 5 commits intoprobot:masterfrom
Conversation
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)
$ 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
$ docker run -ti marcellodesales/create-probot-app myapp Let's create a Probot app! Hit enter to accept the suggestion. ? App name: (myapp)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎉 Support for Dockerized execution
docker enginedocker run -ti -w$(pwd) -v $ (pwd):$(pwd) marcellodesales/create-probot-app vionix-ghas-manager