mirror of
https://github.com/Portabase/agent.git
synced 2026-09-10 01:57:10 +00:00
29ca5a317b
* fix: refactoring * chore: add google-cloud-storage and google-cloud-auth deps * feat: add GCS provider config model * feat: add GCS credential, client, and stream-source helpers StreamSource bridges build_stream's Send-only byte stream into the SDK's StreamingSource (which send_buffered requires to be Send+Sync+'static) via a bounded mpsc channel, avoiding any change to the shared UploadStream type. * feat: implement GCS StorageProvider upload * feat: register google-cloud-storage provider in factory * test: GCS upload roundtrip against fake-gcs-server * fix: format GCS bucket as projects/_/buckets/<name> in upload_with_client write_object rejects the bare bucket id with "malformed bucket name"; the production provider passed config.bucket_name unformatted, so real uploads would always fail. Format once in upload_with_client so prod and the fake-gcs-server test share the corrected path. * style: cargo fmt GCS provider files * fix: gcs
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
services:
|
|
rust-app:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile
|
|
target: dev
|
|
container_name: rust-dev
|
|
volumes:
|
|
- .:/app
|
|
- cargo-registry:/usr/local/cargo/registry
|
|
- cargo-git:/usr/local/cargo/git
|
|
- ./databases.json:/config/config.json
|
|
#- ./databases.toml:/config/config.toml
|
|
#- /var/run/docker.sock:/var/run/docker.sock
|
|
# - cargo-target:/app/target
|
|
- databases_sqlite-data:/sqlite-data/workspace/data
|
|
- ./scripts/sqlite/test-db:/sqlite-data-2/workspace/data
|
|
environment:
|
|
APP_ENV: development
|
|
LOG: debug
|
|
TZ: "Europe/Paris"
|
|
EDGE_KEY: "eyJzZXJ2ZXJVcmwiOiJodHRwOi8vbG9jYWxob3N0Ojg4ODciLCJhZ2VudElkIjoiNzY1OGIzYjctNjg5MC00MjllLThkN2QtNjU2ZjlmYTJlMDRjIiwibWFzdGVyS2V5QjY0IjoiQlhWM1hvbEM2NTZTVjdkTmdjV1BHUWxrKytycExJNmxHRGk3Q1BCNWllbz0ifQ=="
|
|
#CHUNK_SIZE_MB: "1"
|
|
#POOLING: 1
|
|
#DATABASES_CONFIG_FILE: "config.toml"
|
|
extra_hosts:
|
|
- "localhost:host-gateway"
|
|
networks:
|
|
- portabase
|
|
cpus: "1.50"
|
|
mem_limit: 4g
|
|
memswap_limit: 4g
|
|
pids_limit: 512
|
|
|
|
|
|
volumes:
|
|
cargo-registry:
|
|
cargo-git:
|
|
# cargo-target:
|
|
databases_sqlite-data:
|
|
external: true
|
|
|
|
networks:
|
|
portabase:
|
|
name: portabase_network
|
|
external: true
|
|
|