Skip to content

Commit

Permalink
Make codespace run successfully (apache#25251)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hasan-J authored Aug 26, 2022
1 parent 210443e commit 5b9aa48
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"name": "Apache Airflow - sqlite",
"dockerComposeFile": [
"../scripts/ci/docker-compose/devcontainer.yml",
"../scripts/ci/docker-compose/local.yml",
"../scripts/ci/docker-compose/backend-sqlite.yml",
"../scripts/ci/docker-compose/backend-sqlite.yml"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "bash"
},
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
Expand Down
10 changes: 6 additions & 4 deletions .devcontainer/mysql/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"name": "Apache Airflow - mysql",
"dockerComposeFile": [
"../scripts/ci/docker-compose/devcontainer.yml",
"../scripts/ci/docker-compose/local.yml",
"../scripts/ci/docker-compose/backend-mysql.yml",
"../scripts/ci/docker-compose/devcontainer-mysql.yml"
"../../scripts/ci/docker-compose/devcontainer.yml",
"../../scripts/ci/docker-compose/backend-mysql.yml",
"../../scripts/ci/docker-compose/devcontainer-mysql.yml"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "bash"
},
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
Expand Down
10 changes: 6 additions & 4 deletions .devcontainer/postgres/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"name": "Apache Airflow - postgres",
"dockerComposeFile": [
"../scripts/ci/docker-compose/devcontainer.yml",
"../scripts/ci/docker-compose/local.yml",
"../scripts/ci/docker-compose/backend-postgres.yml",
"../scripts/ci/docker-compose/devcontainer-postgres.yml"
"../../scripts/ci/docker-compose/devcontainer.yml",
"../../scripts/ci/docker-compose/backend-postgres.yml",
"../../scripts/ci/docker-compose/devcontainer-postgres.yml"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "bash"
},
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
Expand Down
1 change: 1 addition & 0 deletions scripts/ci/docker-compose/devcontainer.env
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ VERBOSE="false"
VERBOSE_COMMANDS="false"
VERSION_SUFFIX_FOR_PYPI=
WHEEL_VERSION=0.36.2
AIRFLOW_SOURCES=/workspaces/airflow
5 changes: 5 additions & 0 deletions scripts/ci/docker-compose/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
version: "3.7"
services:
airflow:
stdin_open: true # docker run -i
tty: true # docker run -t
image: ghcr.io/apache/airflow/main/ci/python3.7
env_file: devcontainer.env
ports:
Expand All @@ -31,3 +33,6 @@ services:
# 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
# Mount the cloned repo from codspaces docker host into the container,
# this will keep /workspaces/airflow and /opt/airflow in sync.
- /var/lib/docker/codespacemount/workspace/airflow:/opt/airflow

0 comments on commit 5b9aa48

Please sign in to comment.