Comments (3)
- step:
name: Database Tests
script:
- supabase init
- supabase db start
- supabase test db
services:
- docker
You need to add docker to services on bitbucket pipeline.
Also version 1.123.4 is quite behind. Try upgrading to latest cli 1.172.2.
from cli.
I should have mentioned it doesn't work with the current cli either. See this output log from bitbucket:
npx supabase db test --db-url $STAGING_DB
npm WARN exec The following package was not found and will be installed: [email protected]
Connecting to remote database...
3.36: Pulling from supabase/pg_prove
dcccee43ad5d: Pulling fs layer
06d62d0de6d7: Pulling fs layer
a22cb17b3b93: Pulling fs layer
4f4fb700ef54: Pulling fs layer
4f4fb700ef54: Waiting
a22cb17b3b93: Download complete
4f4fb700ef54: Verifying Checksum
4f4fb700ef54: Download complete
dcccee43ad5d: Verifying Checksum
dcccee43ad5d: Download complete
dcccee43ad5d: Pull complete
06d62d0de6d7: Verifying Checksum
06d62d0de6d7: Download complete
06d62d0de6d7: Pull complete
a22cb17b3b93: Pull complete
4f4fb700ef54: Pull complete
Digest: sha256:eda7c5e68719e9c8287e78c017118407b48df904a51c935f5ab6098b8c0bc6bc
Status: Downloaded newer image for public.ecr.aws/supabase/pg_prove:3.36
failed to create docker container: Error response from daemon: cannot share the host's network namespace when user namespaces are enabled
Try rerunning the command with --debug to troubleshoot the error.
make: *** [Makefile:23: install] Error 1
Notice it is using a recent version of supabase. The corresponding bit bucket pipeline (excerpt):
pipelines:
branches:
master:
- step:
name: Push to Staging and Test
deployment: staging
services:
- docker
script:
- npx supabase db test --db-url $STAGING_DB
These commands work just fine locally. So I'm at a loss on how to debug this.
from cli.
And I also just checked that this doesn't work either:
script:
- npx supabase init
- npx supabase db test --db-url $STAGING_DB
from cli.
Related Issues (20)
- Supabase cli cannot load migrations HOT 1
- test db --db-url fails in Bitbucket Pipelines HOT 11
- PostgREST 12.1 frequently stuck in "Attempting to connect to the database..." (Local Development) HOT 14
- Ability to choose image versions HOT 3
- "Computed field" is included in generated TypeScript type
- Missing GoTrue environment variables in config.toml
- Generate concrete typescript types for JSON columns based on pg_jsonschema
- MFA enrollment not detecting AAL properly in CLI version HOT 4
- Don't download excluded container images HOT 2
- Error with import_map.json. - import_map.json includes invalid characters for a local volume name HOT 4
- Support declaring storage buckets in config.toml
- Cannot resolve (maybe corrupted) local database HOT 10
- Updating to v1.176.4 breaks `db pull` HOT 2
- `supabase status` outputs only the DB URL and shows most services as stopped HOT 3
- Cannot start local supabase instance after latest version of cli (or functions container?) HOT 2
- `supabase_vector` not healthy when trying to start in GHA HOT 1
- Api gateway idle request timeout is set to 60s in local stack HOT 4
- Save image versions to `config.toml` so they can be checked into version control HOT 5
- Pooler container error on start: `Tenant or user not found` HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.