Skip to content

Commit

Permalink
package to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed Dec 7, 2024
1 parent e990b38 commit 371e443
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ prepare:
mkdir -p data/databend

up: prepare
docker compose up --quiet-pull -d databend --wait
docker-compose -f docker-compose.yaml up --quiet-pull -d databend --wait
curl -u root: -XPOST "http://localhost:8000/v1/query" -H 'Content-Type: application/json' -d '{"sql": "select version()", "pagination": { "wait_time_secs": 10}}'

start: up
Expand Down
24 changes: 24 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
services:
minio:
image: docker.io/minio/minio
command: server /data
network_mode: "host"
volumes:
- ./data:/data
databend:
image: docker.io/datafuselabs/databend:nightly
environment:
- QUERY_STORAGE_TYPE=s3
- QUERY_DATABEND_ENTERPRISE_LICENSE
- AWS_S3_ENDPOINT=http://localhost:9000
- AWS_ACCESS_KEY_ID=minioadmin
- AWS_SECRET_ACCESS_KEY=minioadmin
network_mode: "host"
depends_on:
- minio
healthcheck:
test: "curl -f localhost:8080/v1/health || exit 1"
interval: 2s
retries: 10
start_period: 2s
timeout: 1s

0 comments on commit 371e443

Please sign in to comment.