Skip to content

Commit

Permalink
Add explicit volume driver to allow for rebuilding w/out kill
Browse files Browse the repository at this point in the history
  • Loading branch information
andscoop committed Aug 21, 2018
1 parent c87a92b commit e4feb13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions airflow/docker.go
Expand Up @@ -148,8 +148,8 @@ func Start(airflowHome string) error {
os.Exit(1)
}
}

err = project.Start(context.Background())
imageBuild(airflowHome, imageName(projectName, "latest"))
err = project.Up(context.Background(), options.Up{})
if err != nil {
return errors.Wrap(err, messages.COMPOSE_RECREATE_ERROR)
}
Expand Down
6 changes: 4 additions & 2 deletions airflow/include/composeyml.go
Expand Up @@ -11,8 +11,10 @@ networks:
driver: bridge
volumes:
postgres_data: {}
airflow_logs: {}
postgres_data:
driver: local
airflow_logs:
driver: local
services:
postgres:
Expand Down

0 comments on commit e4feb13

Please sign in to comment.