Skip to content

Commit

Permalink
Changed airflow files location (#2803)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharpz7 authored Jul 31, 2023
1 parent e4ad098 commit 221db1c
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ typings.py
third_party/airflow/docs/build/
third_party/airflow/build/
build/ssl/certs/ca-certificates.crt
localdev/volumes/go/pkg/
developer/volumes/go/pkg/
.coverage
coverage.xml

# Yarn
localdev/yarn.lock
localdev/node_modules/
developer/yarn.lock
developer/node_modules/

# Vim
.*.sw*
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions magefiles/airflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,36 +39,36 @@ func Airflow(arg string) error {
func startAirflow() error {
fmt.Println("Starting airflow...")

err := sh.Run("mkdir", "-p", "localdev/airflow/opt")
err := sh.Run("mkdir", "-p", "developer/airflow/opt")
if err != nil {
return err
}

// Copy aramda python packages to be used within airflow docker image.
err = sh.Run("cp", "-r", "client/python", "localdev/airflow/opt/client")
err = sh.Run("cp", "-r", "client/python", "developer/airflow/opt/client")
if err != nil {
return err
}

err = sh.Run("cp", "-r", "third_party/airflow", "localdev/airflow/opt/airflow")
err = sh.Run("cp", "-r", "third_party/airflow", "developer/airflow/opt/airflow")
if err != nil {
return err
}

// Arise
return dockerRun("compose", "--project-directory", "./localdev/airflow/",
return dockerRun("compose", "--project-directory", "./developer/airflow/",
"up", "--build", "--always-recreate-deps", "-d")
}

func stopAirflow() error {
fmt.Println("Stopping airflow...")

err := dockerRun("compose", "-f", "localdev/airflow/docker-compose.yaml", "down")
err := dockerRun("compose", "-f", "developer/airflow/docker-compose.yaml", "down")
if err != nil {
return err
}

return sh.Run("rm", "-rf", "localdev/airflow/opt/")
return sh.Run("rm", "-rf", "developer/airflow/opt/")
}

// AirflowOperator builds the Airflow Operator
Expand Down

0 comments on commit 221db1c

Please sign in to comment.