Skip to content

Commit

Permalink
Correct the path Dockerfiles are built from
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Feb 4, 2024
1 parent 738f846 commit 3d6ffd1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 18 deletions.
2 changes: 1 addition & 1 deletion orchestration/src/coins/bitcoin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ COPY --from=bitcoin --chown=bitcoin bitcoind /bin
EXPOSE 8332 8333
ADD scripts /scripts
ADD /orchestration/coins/bitcoin/scripts /scripts
CMD ["/scripts/entry-dev.sh"]
"#;

Expand Down
2 changes: 1 addition & 1 deletion orchestration/src/coins/monero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ COPY --from=monero --chown=monero {monero_binary} /bin
EXPOSE {ports}
ADD scripts /scripts
ADD /orchestration/coins/{folder}/scripts /scripts
CMD ["/scripts/entry-dev.sh"]
"#);

Expand Down
2 changes: 1 addition & 1 deletion orchestration/src/serai.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ COPY --from=builder --chown=serai /serai/AGPL-3.0 .
# Run the Serai node
EXPOSE 30333 9615 9933 9944
ADD scripts /scripts
ADD /orchestration/serai/scripts /scripts
CMD ["./scripts/entry-dev.sh"]
"#;

Expand Down
14 changes: 3 additions & 11 deletions substrate/client/tests/dht.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,12 @@ async fn dht() {

serai_docker_tests::build("serai".to_string());

let handle = |name| format!("serai_client-serai_node-{name}");
let composition = |name| {
let handle = |name: &str| format!("serai_client-serai_node-{name}");
let composition = |name: &str| {
TestBodySpecification::with_image(
Image::with_repository("serai-dev-serai").pull_policy(PullPolicy::Never),
)
.replace_cmd(vec![
"serai-node".to_string(),
"--unsafe-rpc-external".to_string(),
"--rpc-cors".to_string(),
"all".to_string(),
"--chain".to_string(),
"local".to_string(),
format!("--{name}"),
])
.replace_env([("SERAI_NAME".to_string(), name.to_string())].into())
.set_publish_all_ports(true)
.set_handle(handle(name))
.set_start_policy(StartPolicy::Strict)
Expand Down
8 changes: 4 additions & 4 deletions tests/docker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ pub fn build(name: String) {
}
}

dockerfile_path.pop();

println!("Building {} in directory {}...", &name, dockerfile_path.display());
println!("Building {}...", &name);

// Version which always prints
if !Command::new("docker")
.current_dir(dockerfile_path)
.current_dir(&repo_path)
.arg("build")
.arg("-f")
.arg(dockerfile_path)
.arg(".")
.arg("-t")
.arg(format!("serai-dev-{name}"))
Expand Down

0 comments on commit 3d6ffd1

Please sign in to comment.