mirror of
https://github.com/serai-dex/serai.git
synced 2025-03-12 09:26:51 +00:00
Fixes for prior commit
This commit is contained in:
parent
333a9571b8
commit
1f92e1cbda
3 changed files with 20 additions and 12 deletions
|
@ -43,8 +43,7 @@ CMD ["/run.sh"]
|
||||||
network.label()
|
network.label()
|
||||||
);
|
);
|
||||||
|
|
||||||
let run =
|
let run = os(Os::Debian, "", "bitcoin") + &run_bitcoin;
|
||||||
os(Os::Debian, "", "bitcoin") + &run_bitcoin;
|
|
||||||
let res = setup + &run;
|
let res = setup + &run;
|
||||||
|
|
||||||
let mut bitcoin_path = orchestration_path.to_path_buf();
|
let mut bitcoin_path = orchestration_path.to_path_buf();
|
||||||
|
|
|
@ -55,11 +55,9 @@ CMD ["/run.sh"]
|
||||||
network.label(),
|
network.label(),
|
||||||
);
|
);
|
||||||
|
|
||||||
let run = crate::os(
|
let run =
|
||||||
os,
|
crate::os(os, if os == Os::Alpine { "RUN apk --no-cache add gcompat" } else { "" }, "monero") +
|
||||||
if os == Os::Alpine { "RUN apk --no-cache add gcompat" } else { "" },
|
&run_monero;
|
||||||
"monero",
|
|
||||||
) + &run_monero;
|
|
||||||
let res = setup + &run;
|
let res = setup + &run;
|
||||||
|
|
||||||
let mut monero_path = orchestration_path.to_path_buf();
|
let mut monero_path = orchestration_path.to_path_buf();
|
||||||
|
|
|
@ -2,7 +2,14 @@
|
||||||
// TODO: Generate keys for a validator and the infra
|
// TODO: Generate keys for a validator and the infra
|
||||||
|
|
||||||
use core::ops::Deref;
|
use core::ops::Deref;
|
||||||
use std::{collections::HashSet, env, path::PathBuf, io::Write, fs, process::Command};
|
use std::{
|
||||||
|
collections::HashSet,
|
||||||
|
env,
|
||||||
|
path::PathBuf,
|
||||||
|
io::Write,
|
||||||
|
fs,
|
||||||
|
process::{Stdio, Command},
|
||||||
|
};
|
||||||
|
|
||||||
use zeroize::Zeroizing;
|
use zeroize::Zeroizing;
|
||||||
|
|
||||||
|
@ -443,19 +450,23 @@ fn start(network: Network, services: HashSet<String>) {
|
||||||
command
|
command
|
||||||
} else {
|
} else {
|
||||||
// Assign a persistent volume if this isn't for Dev
|
// Assign a persistent volume if this isn't for Dev
|
||||||
command.arg("--volume").arg(volume);
|
command.arg("--volume").arg(volume)
|
||||||
}
|
};
|
||||||
let command = match name {
|
let command = match name {
|
||||||
"bitcoin" => {
|
"bitcoin" => {
|
||||||
// Expose the RPC for tests
|
// Expose the RPC for tests
|
||||||
if network == Network::Dev {
|
if network == Network::Dev {
|
||||||
command.arg("-p").arg("8332:8332")
|
command.arg("-p").arg("8332:8332")
|
||||||
|
} else {
|
||||||
|
command
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"monero" => {
|
"monero" => {
|
||||||
// Expose the RPC for tests
|
// Expose the RPC for tests
|
||||||
if network == Network::Dev {
|
if network == Network::Dev {
|
||||||
command.arg("-p").arg("18081:18081")
|
command.arg("-p").arg("18081:18081")
|
||||||
|
} else {
|
||||||
|
command
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"monero-wallet-rpc" => {
|
"monero-wallet-rpc" => {
|
||||||
|
@ -466,13 +477,13 @@ fn start(network: Network, services: HashSet<String>) {
|
||||||
"coordinator" => {
|
"coordinator" => {
|
||||||
if network == Network::Dev {
|
if network == Network::Dev {
|
||||||
command
|
command
|
||||||
else {
|
} else {
|
||||||
// Publish the port
|
// Publish the port
|
||||||
command.arg("-p").arg("30563:30563")
|
command.arg("-p").arg("30563:30563")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"serai" => {
|
"serai" => {
|
||||||
let mut command = command.arg("--volume").arg(format!("{serai_runtime_volume}:/runtime");
|
let command = command.arg("--volume").arg(format!("{serai_runtime_volume}:/runtime"));
|
||||||
if network == Network::Dev {
|
if network == Network::Dev {
|
||||||
command
|
command
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue