Skip to content

Commit

Permalink
[AIRFLOW-6575] Entropy source for CI tests is changed to unblocking (a…
Browse files Browse the repository at this point in the history
…pache#7185)

On Travis CI blocking entropy source slows startup time of a number of
containers. This change changes the entropy source to unblocking one.

(cherry picked from commit f39f26e)
(cherry picked from commit 310cb42)
  • Loading branch information
potiuk authored and kaxil committed Mar 29, 2020
1 parent 3ba5c8d commit 2ff7a06
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/ci/docker-compose/backend-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ services:
- MYSQL_DATABASE=airflow
volumes:
- ../mysql/conf.d:/etc/mysql/conf.d:ro
- /dev/urandom:/dev/random # Required to get non-blocking entropy source
ports:
- "${MYSQL_HOST_PORT}:3306"
2 changes: 2 additions & 0 deletions scripts/ci/docker-compose/backend-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@ services:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=airflow
- POSTGRES_DB=airflow
volumes:
- /dev/urandom:/dev/random # Required to get non-blocking entropy source
ports:
- "${POSTGRES_HOST_PORT}:5432"
1 change: 1 addition & 0 deletions scripts/ci/docker-compose/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ services:
volumes:
# Pass docker to inside of the container so that Kind and Moto tests can use it.
- /var/run/docker.sock:/var/run/docker.sock
- /dev/urandom:/dev/random # Required to get non-blocking entropy source
2 changes: 2 additions & 0 deletions scripts/ci/docker-compose/integration-cassandra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ version: "2.2"
services:
cassandra:
image: cassandra:3.0
volumes:
- /dev/urandom:/dev/random # Required to get non-blocking entropy source
airflow-testing:
environment:
- INTEGRATION_CASSANDRA=true
Expand Down
2 changes: 2 additions & 0 deletions scripts/ci/docker-compose/integration-kerberos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ services:
image: godatadriven/krb5-kdc-server
hostname: kerberos
domainname: example.com
volumes:
- /dev/urandom:/dev/random # Required to get non-blocking entropy source
airflow-testing:
depends_on:
- kerberos
Expand Down
2 changes: 2 additions & 0 deletions scripts/ci/docker-compose/integration-mongo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ version: "2.2"
services:
mongo:
image: mongo:3
volumes:
- /dev/urandom:/dev/random # Required to get non-blocking entropy source
airflow-testing:
environment:
- INTEGRATION_MONGO=true
Expand Down
1 change: 1 addition & 0 deletions scripts/ci/docker-compose/integration-openldap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ services:
- LDAP_CONFIG_PASSWORD=insecure
volumes:
- ../openldap/ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom:ro
- /dev/urandom:/dev/random # Required to get non-blocking entropy source
airflow-testing:
environment:
- INTEGRATION_OPENLDAP=true
Expand Down
2 changes: 2 additions & 0 deletions scripts/ci/docker-compose/integration-rabbitmq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ version: "2.2"
services:
rabbitmq:
image: rabbitmq:3.7
volumes:
- /dev/urandom:/dev/random # Required to get non-blocking entropy source
airflow-testing:
environment:
- INTEGRATION_RABBITMQ=true
Expand Down
2 changes: 2 additions & 0 deletions scripts/ci/docker-compose/integration-redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ version: "2.2"
services:
redis:
image: redis:5.0.1
volumes:
- /dev/urandom:/dev/random # Required to get non-blocking entropy source
airflow-testing:
environment:
- INTEGRATION_REDIS=true
Expand Down

0 comments on commit 2ff7a06

Please sign in to comment.