-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
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
Docker Compose Enhancements #136
Merged
Merged
Changes from 10 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ee1fd47
chore: more logging.
l-monninger 0fe2a4f
fix: simplify docker-compose.
l-monninger 1b4c71b
docs: add docs for docker-compose.
l-monninger 6b8baab
docs: add docs for docker-compose.
l-monninger 022fb40
feat: preparing tests.
l-monninger 90ecf35
Merge branch 'main' into l-monninger/docker-compose-enhancements
l-monninger 4ef9078
feat: container tests.
l-monninger d088fcd
fix: release.
l-monninger 274e557
fix: build push containers.
l-monninger 84595cf
fix: rev to CONTAINER_REV, docs: comment about which APIs are served.
l-monninger 79b9d34
fix: moving container checks into jobs.
l-monninger 8271aaf
fix: moving container checks into jobs.
l-monninger b2db9a1
fix: see if it will recognize the flag now.
l-monninger 07231bc
fix: some flavours of docker are persnickity about the order of up. l…
l-monninger f2b30c8
fix: see if we can work around with new native docker version install…
l-monninger feabf9f
debug: see if just installing the latest docker-ce-cli works.
l-monninger 360abac
fix: .gitignore.
l-monninger 4800983
fix: increasing timeout.
l-monninger 5439b94
fix: docker compose enhancements.
l-monninger 4c8e64f
fix: pass on timeout.
l-monninger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,12 +1,26 @@ | ||
services: | ||
|
||
wait-for-suzuka-faucet-service: | ||
image: busybox | ||
container_name: wait-for-suzuka-faucet-service | ||
depends_on: | ||
- suzuka-faucet-service | ||
entrypoint: | ||
- /bin/sh | ||
- -c | ||
- | | ||
echo "Waiting for suzuka-faucet-service to be ready..." | ||
sleep 10 | ||
echo "suzuka-faucet-service is ready" | ||
|
||
suzuka-client-e2e-simple-interaction: | ||
image: ghcr.io/movementlabsxyz/suzuka-client-e2e-simple-interaction:${REV} | ||
image: ghcr.io/movementlabsxyz/suzuka-client-e2e-simple-interaction:${CONTAINER_REV} | ||
container_name: suzuka-client-e2e-simple-interaction | ||
command: run-simple | ||
environment: | ||
- DOT_MOVEMENT_PATH=/.movement | ||
volumes: | ||
- ${DOT_MOVEMENT_PATH}:/.movement | ||
depends_on: | ||
- suzuka-faucet-service | ||
wait-for-suzuka-faucet-service: | ||
condition: service_completed_successfully |
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 |
---|---|---|
|
@@ -76,6 +76,7 @@ | |
celestia-app | ||
monza-aptos | ||
jq | ||
docker | ||
]; | ||
|
||
# Specific version of toolchain | ||
|
1 change: 0 additions & 1 deletion
1
protocol-units/settlement/mcr/contracts/lib/openzeppelin-contracts
Submodule openzeppelin-contracts
deleted from
dbb610
1 change: 0 additions & 1 deletion
1
protocol-units/settlement/mcr/contracts/lib/openzeppelin-contracts-upgradeable
Submodule openzeppelin-contracts-upgradeable
deleted from
723f8c
1 change: 0 additions & 1 deletion
1
protocol-units/settlement/mcr/contracts/lib/openzeppelin-foundry-upgrades
Submodule openzeppelin-foundry-upgrades
deleted from
4cd15f
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,57 @@ | ||
pub(crate) trait BackendInternalOperations { | ||
/// Acquires a--usually time-limited--lock on a key. | ||
async fn try_acquire<K>(&self, key: K) -> Result<(), anyhow::Error> | ||
where | ||
K: Into<String> + Send; | ||
|
||
/// Sets a key-value pair. | ||
async fn try_set_unsafe<K, T>(&self, key: K, value: T) -> Result<(), anyhow::Error> | ||
where | ||
K: Into<String> + Send, | ||
T: serde::Serialize; | ||
|
||
/// Gets a value from a key. | ||
async fn try_get_unsafe<K, T>(&self, key: K) -> Result<T, anyhow::Error> | ||
where | ||
K: Into<String> + Send, | ||
T: serde::de::DeserializeOwned; | ||
|
||
/// Releases a lock on a key. | ||
async fn try_release<K>(&self, key: K) -> Result<(), anyhow::Error> | ||
where | ||
K: Into<String> + Send; | ||
} | ||
|
||
pub trait BackendOperations: BackendInternalOperations { | ||
/// Tries to get a value from a key. | ||
async fn try_get<K, T>(&self, key: K) -> Result<T, anyhow::Error> | ||
where | ||
K: Into<String> + Send, | ||
T: serde::de::DeserializeOwned, | ||
{ | ||
let key_str = key.into(); | ||
self.try_acquire(key_str.clone()).await?; | ||
let value = self.try_get_unsafe(key_str.clone()).await?; | ||
self.try_release(key_str).await?; | ||
Ok(value) | ||
} | ||
|
||
/// Tries to set a key-value pair. | ||
async fn try_set<K, T>(&self, key: K, value: T) -> Result<(), anyhow::Error> | ||
where | ||
K: Into<String> + Send, | ||
T: serde::Serialize, | ||
{ | ||
let key_str = key.into(); | ||
self.try_acquire(key_str.clone()).await?; | ||
self.try_set_unsafe(key_str.clone(), value).await?; | ||
self.try_release(key_str).await?; | ||
Ok(()) | ||
} | ||
|
||
/// Tries to stream values from a key. | ||
async fn try_stream<K, T>(&self, key: K) -> Result<impl futures::Stream<Item = T>, anyhow::Error> | ||
where | ||
K: Into<String> + Send, | ||
T: serde::de::DeserializeOwned; | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks out of place; an accidental commit from the Godfig work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From
Godfig