We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want the list of directories that feed scans to be an airflow variable.
feed
Github copilot starts with this approach.
To initialize Airflow variables when running in a Docker container, you can use the Airflow CLI within the container. Here is a step-by-step guide:
Create a JSON file with the variables you want to initialize. For example, variables.json:
variables.json
{ "key1": "value1", "key2": "value2" }
Copy the JSON file into the Docker container. You can do this using the docker cp command:
docker cp
docker cp variables.json <container_id>:/path/to/variables.json
Use the Airflow CLI to import the variables from the JSON file. Execute the following command inside the container:
docker exec -it <container_id> airflow variables import /path/to/variables.json
Here is a complete example:
Create variables.json:
Copy the file into the container:
docker cp variables.json <container_id>:/opt/airflow/variables.json
Import the variables using the Airflow CLI:
docker exec -it <container_id> airflow variables import /opt/airflow/variables.json
Replace <container_id> with the actual ID of your Airflow container. This will initialize the Airflow variables from the JSON file.
<container_id>
The text was updated successfully, but these errors were encountered:
jimk-bdrc
No branches or pull requests
I want the list of directories that
feed
scans to be an airflow variable.Github copilot starts with this approach.
To initialize Airflow variables when running in a Docker container, you can use the Airflow CLI within the container. Here is a step-by-step guide:
Create a JSON file with the variables you want to initialize. For example,
variables.json
:Copy the JSON file into the Docker container. You can do this using the
docker cp
command:Use the Airflow CLI to import the variables from the JSON file. Execute the following command inside the container:
Here is a complete example:
Create
variables.json
:Copy the file into the container:
Import the variables using the Airflow CLI:
Replace
<container_id>
with the actual ID of your Airflow container. This will initialize the Airflow variables from the JSON file.The text was updated successfully, but these errors were encountered: