Skip to content

Commit

Permalink
In migration images, reduce size by building atop Python images (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaldengeki authored Jun 26, 2024
1 parent 62705ad commit 03763fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fitbit_challenges/api/migrations/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ py_binary(

py_oci_image(
name = "base_image",
base = "//fitbit_challenges/api:image",
base = "@python3_image",
binary = ":binary",
cmd = [
"/fitbit_challenges/api/migrations/binary.runfiles/_main/scripts/wait_for_postgres",
Expand Down
2 changes: 1 addition & 1 deletion home_api/api/migrations/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ py_binary(

py_oci_image(
name = "base_image",
base = "//home_api/api:base_image",
base = "@python3_image",
binary = ":binary",
cmd = [
"/home_api/api/migrations/binary.runfiles/_main/scripts/wait_for_postgres",
Expand Down
2 changes: 1 addition & 1 deletion mc_manager/api/migrations/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ py_binary(

py_oci_image(
name = "base_image",
base = "//mc_manager/api:image",
base = "@python3_image",
binary = ":binary",
cmd = [
"/mc_manager/api/migrations/binary.runfiles/_main/scripts/wait_for_postgres",
Expand Down

0 comments on commit 03763fb

Please sign in to comment.