Skip to content

Commit 28e3a47

Browse files
Merge pull request #268 from pffijt/task/updated-sphinx-build-and-added-some-documentation
Added additional documentation on containers
2 parents 6046ad6 + dcce762 commit 28e3a47

26 files changed

+244
-94
lines changed

.github/workflows/main.yml

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,40 @@ on:
66
branches: [ master ]
77

88
jobs:
9+
sphinx:
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
python-version:
14+
- "3.7"
15+
- "3.8"
16+
- "3.9"
17+
- "3.10"
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Setup python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Cache Python dependencies
26+
uses: actions/cache@v2
27+
with:
28+
path: ~/.cache/pip
29+
key: ${{ runner.os }}-pip-${{ hashFiles(format('requirements/{0}.txt', matrix.python-version)) }}
30+
restore-keys: |
31+
${{ runner.os }}-pip-
32+
${{ runner.os }}-
33+
- name: Install Python dependencies
34+
run: |
35+
python -m pip install --upgrade pip
36+
pip install wheel
37+
pip install -r requirements/${{ matrix.python-version }}.txt
38+
- name: Build documentation
39+
run: sphinx-build -nW docs docs/_build/html
40+
- name: Run doctests
41+
run: sphinx-build -b doctest docs docs/_build/html
42+
943
build:
1044
strategy:
1145
fail-fast: false
@@ -62,10 +96,6 @@ jobs:
6296
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock --network=bridge testcontainers-python python diagnostics.py
6397
echo "Container diagnostics with host network"
6498
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock --network=host testcontainers-python python diagnostics.py
65-
- name: Build documentation
66-
run: sphinx-build -nW docs docs/_build/html
67-
- name: Run doctests
68-
run: sphinx-build -b doctest docs docs/_build/html
6999
- name: Lint the code
70100
run: flake8
71101
- name: Run tests

docs/aws.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
AWS Emulators
2+
===================
3+
4+
Allows to spin up AWS emulators, such as the LocalStackContainer.
5+
6+
.. autoclass:: testcontainers.localstack.LocalStackContainer

docs/azure.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Azure Emulators
2+
===================
3+
4+
Allows to spin up Azure emulators, such as the Azurite emulator.
5+
6+
.. autoclass:: testcontainers.azurite.AzuriteContainer

docs/database.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Allows to spin up database images such as MySQL, PostgreSQL, MariaDB, Oracle XE,
77
.. autoclass:: testcontainers.mysql.MariaDbContainer
88
.. autoclass:: testcontainers.postgres.PostgresContainer
99
.. autoclass:: testcontainers.oracle.OracleDbContainer
10-
.. autoclass:: testcontainers.elasticsearch.ElasticSearchContainer
1110
.. autoclass:: testcontainers.mongodb.MongoDbContainer
1211
.. autoclass:: testcontainers.mssql.SqlServerContainer
1312
.. autoclass:: testcontainers.clickhouse.ClickHouseContainer

docs/elasticsearch.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Elastic Search Container
2+
===========================
3+
4+
Allows to spin up Elastic Search Container.
5+
6+
.. autoclass:: testcontainers.elasticsearch.ElasticSearchContainer

docs/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,11 @@ Usage modes
1515
Selenium containers <selenium>
1616
Docker Compose <compose>
1717
Google Cloud Emulators <google-cloud-emulators>
18+
Azure Emulators <azure>
19+
AWS Emulators <aws>
20+
Elastic Search <elasticsearch>
21+
Kafka container <kafka>
22+
Keycloak container <keycloak>
23+
RabbitMQ container <rabbitmq>
24+
Redis container <redis>
25+

docs/kafka.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Kafka Container
2+
===================
3+
4+
Allows to spin up Kafka Container.
5+
6+
.. autoclass:: testcontainers.kafka.KafkaContainer

docs/keycloak.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Keycloak Container
2+
===================
3+
4+
Allows to spin up Keycloak container.
5+
6+
.. autoclass:: testcontainers.keycloak.KeycloakContainer

docs/rabbitmq.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
RabbitMQ Container
2+
===================
3+
4+
Allows to spin up RabbitMQ container.
5+
6+
.. autoclass:: testcontainers.rabbitmq.RabbitMqContainer

docs/redis.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Redis Container
2+
===================
3+
4+
Allows to spin up Redis container.
5+
6+
.. autoclass:: testcontainers.redis.RedisContainer

0 commit comments

Comments
 (0)