Skip to content

Commit

Permalink
Merge branch 'master' into azurite
Browse files Browse the repository at this point in the history
  • Loading branch information
tillahoffmann committed Sep 21, 2022
2 parents bc82e46 + f899846 commit fffc733
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Expand Up @@ -32,7 +32,7 @@ jobs:
- keycloak.py
- arangodb.py
- azurite.py
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi-release.yml
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
env:
python-version: 3.8
steps:
Expand Down
7 changes: 5 additions & 2 deletions testcontainers/mongodb.py
Expand Up @@ -50,10 +50,13 @@ class MongoDbContainer(DbContainer):
MONGO_INITDB_ROOT_PASSWORD = os.environ.get("MONGO_INITDB_ROOT_PASSWORD", "test")
MONGO_DB = os.environ.get("MONGO_DB", "test")

def __init__(self, image="mongo:latest", **kwargs):
def __init__(self,
image: str = "mongo:latest",
port_to_expose: int = 27017,
**kwargs):
super(MongoDbContainer, self).__init__(image=image, **kwargs)
self.command = "mongo"
self.port_to_expose = 27017
self.port_to_expose = port_to_expose
self.with_exposed_ports(self.port_to_expose)

def _configure(self):
Expand Down

0 comments on commit fffc733

Please sign in to comment.