Skip to content

Commit

Permalink
refactor: break up component in nodes actions view codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
bochaco committed Dec 15, 2024
1 parent 5f37811 commit 57b45be
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 176 deletions.
6 changes: 3 additions & 3 deletions formica.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ RUN mkdir -p /app
WORKDIR /app

# Install node binary
RUN curl -sSL https://raw.githubusercontent.com/maidsafe/safeup/main/install.sh | bash
RUN /usr/local/bin/safeup node -p /app
RUN curl -sSL https://raw.githubusercontent.com/maidsafe/antup/main/install.sh | bash
RUN /usr/local/bin/antup node -p /app

FROM debian:bookworm-slim AS runtime
WORKDIR /app
Expand All @@ -20,7 +20,7 @@ RUN apt-get update -y \
&& rm -rf /var/lib/apt/lists/*

# Copy safeup binary to the /app directory
COPY --from=builder /usr/local/bin/safeup /app/
COPY --from=builder /usr/local/bin/antup /app/

# Copy the node binary to the /app directory
COPY --from=builder /app/antnode /app/
Expand Down
2 changes: 1 addition & 1 deletion src/docker_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ impl DockerClient {
) -> Result<Option<String>, DockerClientError> {
logging::log!("[UPGRADE] Sending Docker request to UPGRADE node within a container...");

let cmd = "./safeup node -n -p /app".to_string();
let cmd = "./antup node -n -p /app".to_string();
let exec_cmd = self.exec_in_container(id, cmd, "upgrade node binary");
let timeout_duration = Duration::from_secs(UPGRADE_NODE_BIN_TIMEOUT_SECS);
match timeout(timeout_duration, exec_cmd).await {
Expand Down
Loading

0 comments on commit 57b45be

Please sign in to comment.