-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: prefetch shuttle-service crates (#461)
* feat: prefetch shuttle-service crates * refactor: add comment to prepare.sh files
- Loading branch information
Showing
5 changed files
with
42 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env sh | ||
|
||
############################################################################### | ||
# This file is used by our common Containerfile incase the container for this # | ||
# service might need some extra preparation steps for its final image # | ||
############################################################################### | ||
|
||
# Patch crates to be on same versions | ||
mkdir -p $CARGO_HOME; \ | ||
echo '[patch.crates-io] | ||
shuttle-service = { path = "/usr/src/shuttle/service" } | ||
shuttle-aws-rds = { path = "/usr/src/shuttle/resources/aws-rds" } | ||
shuttle-persist = { path = "/usr/src/shuttle/resources/persist" } | ||
shuttle-shared-db = { path = "/usr/src/shuttle/resources/shared-db" } | ||
shuttle-secrets = { path = "/usr/src/shuttle/resources/secrets" }' > $CARGO_HOME/config.toml | ||
|
||
# Prefetch crates.io index | ||
cd /usr/src/shuttle/service | ||
cargo fetch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env sh | ||
|
||
############################################################################### | ||
# This file is used by our common Containerfile incase the container for this # | ||
# service might need some extra preparation steps for its final image # | ||
############################################################################### | ||
|
||
# Nothing to prepare in container image here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env sh | ||
|
||
############################################################################### | ||
# This file is used by our common Containerfile incase the container for this # | ||
# service might need some extra preparation steps for its final image # | ||
############################################################################### | ||
|
||
# Nothing to prepare in container image here |