Skip to content

Commit

Permalink
Fix devcontainer sqlite (apache#38316)
Browse files Browse the repository at this point in the history
* fix: sqlite url in docker-compose

* feat: devcontainer upgrade to python 3.10

* Changed devcontainer.env back to python 3.8

* Changed devcontainer.yml back to python 3.8

---------

Co-authored-by: Lukas Verret <[email protected]>
  • Loading branch information
Lukas1v and Lukas Verret authored Mar 20, 2024
1 parent d224ff6 commit 83f8a2e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Apache Airflow - sqlite",
"dockerComposeFile": [
"../scripts/ci/docker-compose/devcontainer.yml",
"../scripts/ci/docker-compose/backend-sqlite.yml"
"../scripts/ci/docker-compose/devcontainer-sqlite.yml"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "bash"
Expand Down
26 changes: 26 additions & 0 deletions scripts/ci/docker-compose/devcontainer-sqlite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
---
services:
airflow:
environment:
- BACKEND=sqlite
- AIRFLOW__DATABASE__SQL_ALCHEMY_CONN=sqlite:////root/airflow/sqlite/airflow.db
volumes:
- sqlite-db-volume:/root/airflow/sqlite
volumes:
sqlite-db-volume:

0 comments on commit 83f8a2e

Please sign in to comment.