mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-22 19:49:22 +00:00
Rename deploy to orchestration
Also updates README to note prior unnoted folders.
This commit is contained in:
parent
101da0a641
commit
09a95c9bd2
49 changed files with 25 additions and 15 deletions
11
README.md
11
README.md
|
@ -17,7 +17,7 @@ wallet.
|
|||
Serai, none neatly fitting under another category.
|
||||
|
||||
- `crypto`: A series of composable cryptographic libraries built around the
|
||||
`ff`/`group` APIs achieving a variety of tasks. These range from generic
|
||||
`ff`/`group` APIs, achieving a variety of tasks. These range from generic
|
||||
infrastructure, to our IETF-compliant FROST implementation, to a DLEq proof as
|
||||
needed for Bitcoin-Monero atomic swaps.
|
||||
|
||||
|
@ -25,6 +25,9 @@ wallet.
|
|||
wider community. This means they will always support the functionality Serai
|
||||
needs, yet won't disadvantage other use cases when possible.
|
||||
|
||||
- `message-queue`: An ordered message server so services can talk to each other,
|
||||
even when the other is offline.
|
||||
|
||||
- `processor`: A generic chain processor to process data for Serai and process
|
||||
events from Serai, executing transactions as expected and needed.
|
||||
|
||||
|
@ -33,7 +36,11 @@ wallet.
|
|||
|
||||
- `substrate`: Substrate crates used to instantiate the Serai network.
|
||||
|
||||
- `deploy`: Scripts to deploy a Serai node/test environment.
|
||||
- `orchestration`: Dockerfiles and scripts to deploy a Serai node/test
|
||||
environment.
|
||||
|
||||
- `tests`: Tests for various crates. Generally, `crate/src/tests` is used, or
|
||||
`crate/tests`, yet any tests requiring crates' binaries are placed here.
|
||||
|
||||
### Links
|
||||
|
||||
|
|
|
@ -83,10 +83,10 @@ cargo test --all-features
|
|||
|
||||
### Run Serai with Orchestration
|
||||
|
||||
Under `/deploy`, you can find our orchestration components for running the
|
||||
entire infrastructure of Serai in a local environment using Docker Compose or
|
||||
Kubernetes.
|
||||
Under `/orchestration`, you can find our orchestration components for running
|
||||
the entire infrastructure of Serai in a local environment using Docker Compose
|
||||
or Kubernetes.
|
||||
|
||||
[Run Serai with Docker Compose](../deploy/README.md)
|
||||
[Run Serai with Docker Compose](../orchestration/README.md)
|
||||
|
||||
[Run Serai with Kubernetes](../deploy/kubernetes/README.md)
|
||||
[Run Serai with Kubernetes](../orchestration/kubernetes/README.md)
|
||||
|
|
|
@ -57,7 +57,7 @@ services:
|
|||
- message-queue
|
||||
build:
|
||||
context: ../
|
||||
dockerfile: ./deploy/message-queue/Dockerfile
|
||||
dockerfile: ./orchestration/message-queue/Dockerfile
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- "./message-queue/scripts:/scripts"
|
||||
|
@ -70,7 +70,7 @@ services:
|
|||
- processor
|
||||
build:
|
||||
context: ../
|
||||
dockerfile: ./deploy/processor/Dockerfile
|
||||
dockerfile: ./orchestration/processor/Dockerfile
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- "./processor/scripts:/scripts"
|
||||
|
@ -86,7 +86,7 @@ services:
|
|||
- _
|
||||
build:
|
||||
context: ../
|
||||
dockerfile: ./deploy/serai/Dockerfile
|
||||
dockerfile: ./orchestration/serai/Dockerfile
|
||||
args:
|
||||
TAG: serai
|
||||
entrypoint: /scripts/entry-dev.sh
|
3
tests/docker/README.md
Normal file
3
tests/docker/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Docker Tests
|
||||
|
||||
Test infrastructure based around Docker.
|
|
@ -27,8 +27,8 @@ pub fn build(name: String) {
|
|||
assert!(repo_path.as_path().ends_with("target"));
|
||||
repo_path.pop();
|
||||
|
||||
let mut deploy_path = repo_path.clone();
|
||||
deploy_path.push("deploy");
|
||||
let mut orchestration_path = repo_path.clone();
|
||||
orchestration_path.push("orchestration");
|
||||
|
||||
// If this Docker image was created after this repo was last edited, return here
|
||||
// This should have better performance than Docker and allows running while offline
|
||||
|
@ -50,7 +50,7 @@ pub fn build(name: String) {
|
|||
.0,
|
||||
);
|
||||
|
||||
let mut dockerfile_path = repo_path.join("deploy");
|
||||
let mut dockerfile_path = orchestration_path.clone();
|
||||
if HashSet::from(["bitcoin", "ethereum", "monero"]).contains(name.as_str()) {
|
||||
dockerfile_path = dockerfile_path.join("coins");
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ pub fn build(name: String) {
|
|||
|
||||
// Version which always prints
|
||||
if !Command::new("docker")
|
||||
.current_dir(deploy_path)
|
||||
.current_dir(orchestration_path)
|
||||
.arg("compose")
|
||||
.arg("build")
|
||||
.arg(&name)
|
||||
|
@ -135,7 +135,7 @@ pub fn build(name: String) {
|
|||
// Version which only prints on error
|
||||
/*
|
||||
let res = Command::new("docker")
|
||||
.current_dir(deploy_path)
|
||||
.current_dir(orchestration_path)
|
||||
.arg("compose")
|
||||
.arg("build")
|
||||
.arg(&name)
|
||||
|
|
Loading…
Reference in a new issue