Skip to content

Commit 84baa27

Browse files
authored
Merge pull request #726 from input-output-hk/jpraynaud/725-update-cardano-node-1.35.5
Update Cardano node to `1.35.5`
2 parents f282a26 + a81fe8a commit 84baa27

File tree

13 files changed

+70
-65
lines changed

13 files changed

+70
-65
lines changed

.dockerignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
.git
2-
/mithril-test-lab
2+
.sock
3+
.socket
34
/target
4-
/**/data
5+
/**/artifacts
6+
/**/data
7+
/**/node_modules

docs/root/manual/getting-started/run-signer-node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ For more information about the **Mithril Protocol**, please refer to the [About
4343
* Read rights on the `Database` folder (`--database-path` setting of the **Cardano Node**)
4444
* Read/Write rights on the `Inter Process Communication` file (usually `CARDANO_NODE_SOCKET_PATH` env var used to launch the **Cardano Node**)
4545

46-
* Install a recent version of the [`cardano-cli`](https://github.com/input-output-hk/cardano-node/releases/tag/1.35.4) (version 1.35.4+)
46+
* Install a recent version of the [`cardano-cli`](https://github.com/input-output-hk/cardano-node/releases/tag/1.35.5) (version 1.35.5+)
4747

4848
* Install a [correctly configured](https://www.rust-lang.org/learn/get-started) Rust toolchain (latest stable version).
4949

docs/versioned_docs/version-maintained/manual/getting-started/run-signer-node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ For more information about the **Mithril Protocol**, please refer to the [About
4343
* Read rights on the `Database` folder (`--database-path` setting of the **Cardano Node**)
4444
* Read/Write rights on the `Inter Process Communication` file (usually `CARDANO_NODE_SOCKET_PATH` env var used to launch the **Cardano Node**)
4545

46-
* Install a recent version of the [`cardano-cli`](https://github.com/input-output-hk/cardano-node/releases/tag/1.35.4) (version 1.35.4+)
46+
* Install a recent version of the [`cardano-cli`](https://github.com/input-output-hk/cardano-node/releases/tag/1.35.5) (version 1.35.5+)
4747

4848
* Install a [correctly configured](https://www.rust-lang.org/learn/get-started) Rust toolchain (latest stable version).
4949

mithril-aggregator/Dockerfile

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,21 @@ RUN adduser --no-create-home --disabled-password appuser
1818
WORKDIR /app
1919

2020
# Copy local dependencies
21-
COPY mithril-stm/ /mithril-stm/
22-
COPY Cargo.lock /mithril-stm/
23-
COPY mithril-common/ /mithril-common/
24-
COPY Cargo.lock /mithril-common/
21+
COPY . .
2522

2623
# Build the app using a dummy main in order to cache dependencies
27-
COPY mithril-aggregator/Cargo.toml /app
28-
COPY Cargo.lock /app/
29-
RUN mkdir -p /app/src/ && echo "fn main () {}" > /app/src/main.rs
30-
RUN cargo build --release --manifest-path /app/Cargo.toml
24+
RUN mv /app/mithril-aggregator /app/mithril-aggregator.1 && mkdir -p /app/mithril-aggregator/src
25+
COPY mithril-aggregator/Cargo.toml /app/mithril-aggregator/
26+
RUN echo "fn main () {}" > /app/mithril-aggregator/src/main.rs
27+
RUN cargo build --release -p mithril-aggregator --manifest-path /app/mithril-aggregator/Cargo.toml
3128

32-
# Copy the rest of the files into the container
33-
COPY ./mithril-aggregator /app/
29+
# Rollback the rest of the files into the container
30+
RUN rm -rf /app/mithril-aggregator && mv /app/mithril-aggregator.1 /app/mithril-aggregator
31+
COPY ./mithril-aggregator/src/main.rs /app/mithril-aggregator/src/
3432

3533
# Build the binary
36-
RUN cargo build --release
34+
RUN cargo build --release -p mithril-aggregator
35+
RUN /app/target/release/mithril-aggregator --version
3736

3837
###############################
3938
# STEP 2: build a small image
@@ -50,14 +49,14 @@ COPY --from=rustbuilder /etc/passwd /etc/passwd
5049
COPY --from=rustbuilder /app/target/release/mithril-aggregator /app/bin/mithril-aggregator
5150

5251
# Copy the config files
53-
COPY --from=rustbuilder /app/config /app/config
52+
COPY --from=rustbuilder /app/mithril-aggregator/config /app/config
5453

5554
#Workdir
5655
WORKDIR /app/
5756
RUN chown -R appuser /app/
5857

5958
# Install cardano-cli
60-
RUN wget -nv -O cardano-bin.tar.gz https://update-cardano-mainnet.iohk.io/cardano-node-releases/cardano-node-1.35.4-linux.tar.gz
59+
RUN wget -nv -O cardano-bin.tar.gz https://update-cardano-mainnet.iohk.io/cardano-node-releases/cardano-node-1.35.5-linux.tar.gz
6160
RUN tar xzf cardano-bin.tar.gz ./cardano-cli && mv cardano-cli /app/bin
6261
RUN /app/bin/cardano-cli --version
6362
RUN rm -f cardano-bin.tar.gz

mithril-aggregator/Dockerfile.ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ COPY mithril-aggregator/mithril-aggregator /app/bin/mithril-aggregator
1414
COPY mithril-aggregator/config /app/config
1515

1616
# Install cardano-cli
17-
RUN wget -nv -O cardano-bin.tar.gz https://update-cardano-mainnet.iohk.io/cardano-node-releases/cardano-node-1.35.4-linux.tar.gz
17+
RUN wget -nv -O cardano-bin.tar.gz https://update-cardano-mainnet.iohk.io/cardano-node-releases/cardano-node-1.35.5-linux.tar.gz
1818
RUN tar xzf cardano-bin.tar.gz ./cardano-cli && mv cardano-cli /app/bin
1919
RUN /app/bin/cardano-cli --version
2020
RUN rm -f cardano-bin.tar.gz

mithril-client/Dockerfile

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,21 @@ RUN adduser --no-create-home --disabled-password appuser
1818
WORKDIR /app
1919

2020
# Copy local dependencies
21-
COPY mithril-stm/ /mithril-stm/
22-
COPY Cargo.lock /mithril-stm/
23-
COPY mithril-common/ /mithril-common/
24-
COPY Cargo.lock /mithril-common/
21+
COPY . .
2522

2623
# Build the app using a dummy main in order to cache dependencies
27-
COPY mithril-client/Cargo.toml /app
28-
COPY Cargo.lock /app/
29-
RUN mkdir -p /app/src/ && echo "fn main () {}" > /app/src/main.rs
30-
RUN cargo build --release --manifest-path /app/Cargo.toml
24+
RUN mv /app/mithril-client /app/mithril-client.1 && mkdir -p /app/mithril-client/src
25+
COPY mithril-client/Cargo.toml /app/mithril-client/
26+
RUN echo "fn main () {}" > /app/mithril-client/src/main.rs
27+
RUN cargo build --release -p mithril-client --manifest-path /app/mithril-client/Cargo.toml
3128

32-
# Copy the rest of the files into the container
33-
COPY ./mithril-client /app/
29+
# Rollback the rest of the files into the container
30+
RUN rm -rf /app/mithril-client && mv /app/mithril-client.1 /app/mithril-client
31+
COPY ./mithril-client/src/main.rs /app/mithril-client/src/
3432

3533
# Build the binary
36-
RUN cargo build --release
34+
RUN cargo build --release -p mithril-client
35+
RUN /app/target/release/mithril-client --version
3736

3837
###############################
3938
# STEP 2: build a small image
@@ -50,13 +49,14 @@ COPY --from=rustbuilder /etc/passwd /etc/passwd
5049
COPY --from=rustbuilder /app/target/release/mithril-client /app/bin/mithril-client
5150

5251
# Copy the config files
53-
COPY --from=rustbuilder /app/config /app/config
52+
COPY --from=rustbuilder /app/mithril-client/config /app/config
5453

5554
#Workdir
5655
WORKDIR /app/
56+
RUN chown -R appuser /app/
5757

5858
# Use an unprivileged user
5959
USER appuser
6060

6161
# Run the executable
62-
ENTRYPOINT ["/app/bin/mithril-client"]
62+
ENTRYPOINT ["/app/bin/mithril-client", "-vvv"]

mithril-infra/assets/docker/Dockerfile.cardano

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM inputoutput/cardano-node:1.35.4
1+
FROM inputoutput/cardano-node:1.35.5
22

33
# Fix env file rights
44
# In order to be able to interact with the Cardano node trough its 'node.socket'

mithril-infra/assets/docker/docker-compose-aggregator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "3.9"
22

33
services:
44
cardano-node-aggregator:
5-
image: cardano-node/1.35.4-modified
5+
image: cardano-node/1.35.5-modified
66
container_name: cardano-node-aggregator
77
build:
88
context: .

mithril-infra/assets/docker/docker-compose-signer-unverified.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: "3.9"
44

55
services:
66
cardano-node-signer:
7-
image: cardano-node/1.35.4-modified
7+
image: cardano-node/1.35.5-modified
88
container_name: cardano-node-signer-${SIGNER_ID}
99
build:
1010
context: .

mithril-infra/assets/docker/docker-compose-signer-verified.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: "3.9"
44

55
services:
66
cardano-node-signer-relay:
7-
image: cardano-node/1.35.4-modified
7+
image: cardano-node/1.35.5-modified
88
container_name: cardano-node-relay-signer-${SIGNER_ID}
99
build:
1010
context: .
@@ -43,7 +43,7 @@ services:
4343
]
4444

4545
cardano-node-signer-block-producer:
46-
image: cardano-node/1.35.4-modified
46+
image: cardano-node/1.35.5-modified
4747
container_name: cardano-node-block-producer-signer-${SIGNER_ID}
4848
build:
4949
context: .

0 commit comments

Comments
 (0)