Skip to content

Commit

Permalink
fix: Wrong parameters for online variant
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalezzfelipe committed Nov 5, 2024
1 parent e679566 commit 88ba132
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions docker/dockerfile.hydra
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM rust:${RUST_VERSION}-slim-bullseye AS build
WORKDIR /app

RUN apt-get update && apt-get install -y libssl-dev pkg-config git

RUN git clone https://github.com/gonzalezzfelipe/hydra-control-plane.git
RUN cd hydra-control-plane && git checkout chore/use-hydra-vk-instead-of-bytes

Expand Down
13 changes: 9 additions & 4 deletions src/custom_resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl HydraDoomNode {
}

pub fn external_host(&self, config: &Config, _constants: &K8sConstants) -> String {
format!("{}.{}", self.name_any(), config.external_domain,)
format!("{}.{}", self.name_any(), config.external_domain)
}

pub fn configmap(&self, config: &Config, _constants: &K8sConstants) -> ConfigMap {
Expand Down Expand Up @@ -157,15 +157,14 @@ impl HydraDoomNode {
self.name_any(),
"--cardano-signing-key".to_string(),
format!("{}/admin.sk", constants.secret_dir),
"--hydra-signing-key".to_string(),
format!("{}/hydra.sk", constants.data_dir),
"--hydra-scripts-tx-id".to_string(),
config.hydra_scripts_tx_id.clone(),
"--testnet-magic".to_string(),
"1".to_string(), // TODO: Hardcoded preprod.
"--node-socket".to_string(),
constants.socket_path.clone(),
];
aux.extend(main_container_common_args);
if let Some(start_chain_from) = &self.spec.start_chain_from {
aux.push("--start-chain-from".to_string());
aux.push(start_chain_from.clone());
Expand Down Expand Up @@ -200,6 +199,11 @@ impl HydraDoomNode {
mount_path: constants.data_dir.clone(),
..Default::default()
},
VolumeMount {
name: "secret".to_string(),
mount_path: constants.secret_dir.clone(),
..Default::default()
},
VolumeMount {
name: "ipc".to_string(),
mount_path: constants.socat_dir.clone(),
Expand Down Expand Up @@ -232,13 +236,14 @@ impl HydraDoomNode {
// Offline is optional. If undefined, the node is presumed to be online.
if !self.spec.offline.unwrap_or(false) {
let mut open_head_args = vec![
"open-head".to_string(),
"--network-id".to_string(),
self.spec.network_id.unwrap_or(0).to_string(),
"--seed-input".to_string(),
self.spec.seed_input.clone(),
"--participant".to_string(),
config.admin_addr.clone(),
"--party-verification-key-file".to_string(),
"--party-verification-file".to_string(),
format!("{}/hydra.vk", constants.data_dir),
"--cardano-key-file".to_string(),
format!("{}/admin.sk", constants.secret_dir),
Expand Down

0 comments on commit 88ba132

Please sign in to comment.