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

Updates to readme and local development docs #17

Merged
merged 6 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,6 @@ jobs:
run: ruff check .
secrets: inherit

black:
name: Lint with black
uses: ./.github/workflows/python-job.yml
with:
run: black --check .
secrets: inherit

isort:
name: Lint with isort
uses: ./.github/workflows/python-job.yml
with:
run: isort --check .
secrets: inherit

test:
name: Run tests
uses: ./.github/workflows/python-job.yml
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ Join our [Slack community](https://data-observability-slack.datakitchen.io/join)

## Code Submission

We are currently working on our development and CI process. Stay tuned for our developer contribution guide for working with the repository code and submitting pull requests.
Follow our [development guide](docs/local_development.md) to work with the repository code locally and submit contributions.
428 changes: 76 additions & 352 deletions README.md

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: local-testgen-db

services:
local-postgres:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=${TESTGEN_USERNAME}
- POSTGRES_PASSWORD=${TESTGEN_PASSWORD}
ports:
- 5432:5432
volumes:
- local_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${TESTGEN_USERNAME}"]
interval: 8s
timeout: 5s
retries: 3

volumes:
local_postgres_data:
36 changes: 21 additions & 15 deletions deploy/docker-compose.yml → docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.8"

name: testgen

x-common-variables: &common-variables
Expand All @@ -9,31 +9,24 @@ x-common-variables: &common-variables
TG_METADATA_DB_HOST: postgres
TG_TARGET_DB_TRUST_SERVER_CERTIFICATE: yes
TG_EXPORT_TO_OBSERVABILITY_VERIFY_SSL: no
TG_DOCKER_RELEASE_CHECK_ENABLED: no
TG_DOCKER_RELEASE_CHECK_ENABLED: yes


services:
engine:
image: datakitchen/dataops-testgen:v2
container_name: testgen
environment: *common-variables
volumes:
- testgen_data:/var/lib/testgen
ports:
- 8501:8501
extra_hosts:
- host.docker.internal:host-gateway
depends_on:
- startup

startup:
image: datakitchen/dataops-testgen:v2
restart: "no"
environment: *common-variables
entrypoint: ["/bin/sh","-c"]
command:
- |
testgen setup-system-db --yes
testgen upgrade-system-version
depends_on:
- postgres
- postgres
networks:
- datakitchen

postgres:
image: postgres:14.1-alpine
Expand All @@ -43,6 +36,19 @@ services:
- POSTGRES_PASSWORD=${TESTGEN_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${TESTGEN_USERNAME}"]
interval: 8s
timeout: 5s
retries: 3
networks:
- datakitchen

volumes:
postgres_data:
testgen_data:

networks:
datakitchen:
name: datakitchen-network
external: true
Loading