Coder Social home page Coder Social logo

Comments (3)

sweatybridge avatar sweatybridge commented on August 24, 2024
      - 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.

swamidass avatar swamidass commented on August 24, 2024

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.

swamidass avatar swamidass commented on August 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.