Comments (6)
@enyo Hey Matias, are you running your tests locally on your machine? What operating system are you using? Windows?
from mongodb-github-action.
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.
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.
@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.
Hi! Thanks, that was exactly what I was looking for.
from mongodb-github-action.
@enyo Sweet! Good to hear you found a solution π
from mongodb-github-action.
Related Issues (20)
- MongoDB 6.0 contains breaking changes that make the setup action fail HOT 3
- [BUG] Action does not fail in case of missing image HOT 13
- How can i add/implement health check using this approach? HOT 1
- `mongo` and `mongosh` disappeared? HOT 15
- How can I Restore Dump from external location HOT 3
- mongoimport command not found HOT 2
- Reaching Docker Hub limit HOT 7
- Cannot connect to mongodb from Springboot HOT 2
- Add action typing HOT 4
- Mongodb tools HOT 1
- Please update v1 tag to point to newest version HOT 2
- single-instance can complete before ready to accept connections HOT 1
- How do I bind to all available interfaces? HOT 2
- tags and releases HOT 2
- MongoServerError: Authentication failed. HOT 3
- Authentication failed. HOT 2
- Error: docker: command not found
- toomanyrequests: You have reached your pull rate limit. HOT 1
- Can we use any mongodb version before 3.4.0 HOT 12
- Action fails due to docker: toomanyrequests HOT 3
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 mongodb-github-action.