generated from owasp-sbot/OSBot__Repo_Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
starting exploring the use of prefect server
- Loading branch information
Showing
6 changed files
with
86 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: "docker__start-lambda-docker" | ||
description: "Start Lambda Docker" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
# Set up Docker Buildx for better build performance and features | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
|
||
# # Install Docker Compose | ||
# - name: Install Docker Compose | ||
# run: sudo apt-get update && sudo apt-get install -y docker-compose | ||
|
||
# Navigate to the docker-compose file location and start the services | ||
- name: Start Docker Compose | ||
shell: bash | ||
working-directory: ./deploy/docker/prefect-server-v2 | ||
run: | | ||
docker-compose up -d | ||
# # Wait for services to be up and running | ||
# - name: Wait for services | ||
# run: | | ||
# echo "Waiting for services to be up..." | ||
# sleep 30 | ||
|
||
# # Test Prefect service to see if it's running | ||
# - name: Test Prefect API | ||
# run: curl --retry 5 --retry-delay 10 -v http://localhost:4200/api/health |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
services: | ||
prefect: | ||
image: prefecthq/prefect:2-latest | ||
container_name: prefect-orion | ||
environment: | ||
- PREFECT_API_HOST=0.0.0.0 | ||
- PREFECT_API_PORT=4200 | ||
ports: | ||
- "4200:4200" | ||
command: prefect server start --host 0.0.0.0 --port 4200 | ||
|
||
postgres: | ||
image: postgres:13 | ||
container_name: prefect-postgres | ||
environment: | ||
POSTGRES_USER: prefect | ||
POSTGRES_PASSWORD: prefect | ||
POSTGRES_DB: prefect_db | ||
volumes: | ||
- prefect_postgres_data:/var/lib/postgresql/data | ||
ports: | ||
- "5432:5432" | ||
|
||
volumes: | ||
prefect_postgres_data: |
This file contains 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
This file contains 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