Coder Social home page Coder Social logo

Comments (6)

marcuspoehls avatar marcuspoehls commented on June 12, 2024

@enyo Hey Matias, are you running your tests locally on your machine? What operating system are you using? Windows?

from mongodb-github-action.

enyo avatar enyo commented on June 12, 2024

Hey, I tried running them on GitHub actions first, and then started working on running them locally, but realised that the problem was, that I'm starting two docker containers that need to interact with one another.

from mongodb-github-action.

enyo avatar enyo commented on June 12, 2024

To explain it a bit better: I want to run my tests in the google/dart docker container. So I have:

container:
  image: google/dart:latest

in my workflow yaml file.

This causes my steps to run inside a docker container themselves instead of the virtual machine directly. Since my steps are now inside a docker container themselves, they can't connect to localhost:27017 anymore.

from mongodb-github-action.

marcuspoehls avatar marcuspoehls commented on June 12, 2024

@enyo Ah, now I understand your setup. What I’m thinking of is GitHub Actions Services.

Here’s a short description from the docs:

Used to host service containers for a job in a workflow. Service containers are useful for creating databases or cache services like Redis. The runner automatically creates a Docker network and manages the life cycle of the service containers.

I guess the Docker network part is important to have all services and apps connect to each other.

Did you already try services?

from mongodb-github-action.

enyo avatar enyo commented on June 12, 2024

Hi! Thanks, that was exactly what I was looking for.

from mongodb-github-action.

marcuspoehls avatar marcuspoehls commented on June 12, 2024

@enyo Sweet! Good to hear you found a solution πŸ‘

from mongodb-github-action.

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.