Use repos, Dockerfile if exists #951

Open
VPhung24 wants to merge 2 commits from snowball/stack-orchestrator:main into main
Owner

This pull request

  • builds the app using the repo's Dockerfile if it exists in its root
  • takes an optional env param in format KEY1=VALUE1,KEY2=VALUE2) and creates an .env file in its root
  • NOTE: the Dockerfile should be exposed at port80 (future: dynamic)

example repo: https://github.com/VPhung24/litprotocol.com-v2
command:

laconic-so build-webapp --source-repo ~/litprotocol.com-v2 --env "GHOST_ADMIN_API_KEY=670408dc663ff5000190c568:6b8ddccd2fe2d74fa80a78b6ba5bcef5b3647c3a3df9678a09e491f850a6604b,GHOST_API_URL=https://snowball-tools.ghost.io"

then

laconic-so run-webapp --image cerc/litprotocol.com-v2:local --env-file ~/litprotocol.com-v2/.env 
This pull request - builds the app using the repo's `Dockerfile` if it exists in its root - takes an optional `env` param in format `KEY1=VALUE1,KEY2=VALUE2)` and creates an `.env` file in its root - NOTE: the `Dockerfile` should be exposed at port`80` (future: dynamic) example repo: https://github.com/VPhung24/litprotocol.com-v2 command: ```sh laconic-so build-webapp --source-repo ~/litprotocol.com-v2 --env "GHOST_ADMIN_API_KEY=670408dc663ff5000190c568:6b8ddccd2fe2d74fa80a78b6ba5bcef5b3647c3a3df9678a09e491f850a6604b,GHOST_API_URL=https://snowball-tools.ghost.io" ``` then ``` laconic-so run-webapp --image cerc/litprotocol.com-v2:local --env-file ~/litprotocol.com-v2/.env ```
VPhung24 added 1 commit 2024-10-07 18:28:26 +00:00
run dockerfile if exists
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 37s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m16s
Smoke Test / Run basic test suite (pull_request) Successful in 5m6s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m47s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 12m26s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 14m54s
bca332b598
AFDudley requested review from ashwin 2024-10-07 18:44:33 +00:00
AFDudley requested review from dboreham 2024-10-07 18:44:34 +00:00
VPhung24 added 1 commit 2024-10-07 18:55:55 +00:00
env
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 39s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m3s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m0s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 6m56s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 8m37s
Smoke Test / Run basic test suite (pull_request) Successful in 4m5s
dceda936b7
Member

try using build-webapp.sh in the root of the repo, like https://git.vdb.to/cerc-io/snowballtools-base-mirror/src/branch/main/build-webapp.sh

try using `build-webapp.sh` in the root of the repo, like https://git.vdb.to/cerc-io/snowballtools-base-mirror/src/branch/main/build-webapp.sh
Member
https://github.com/zramsay/loro-image-uploader/blob/main/build-webapp.sh
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 39s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m3s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m0s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 6m56s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 8m37s
Smoke Test / Run basic test suite (pull_request) Successful in 4m5s
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u main:snowball-main
git checkout snowball-main
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/stack-orchestrator#951
No description provided.