Skip to content

Commit

Permalink
fix(docker): fix Dockerfile (#2024)
Browse files Browse the repository at this point in the history
* fix(docker): fix Dockerfile

fix(narval): fix Dockerfile
fix(iota-rosetta): fix Dockerfile

* refactor(narwal): bump up rust version in Dockerfile

refactor(iota-source-service): format Dockerfile

---------

Co-authored-by: Thibault Martinez <[email protected]>
  • Loading branch information
sergiupopescu199 and thibault-martinez authored Aug 27, 2024
1 parent 463b4a3 commit 14901c6
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions crates/iota-rosetta/docker/iota-rosetta-local/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ COPY crates crates
COPY iota-execution iota-execution
COPY narwhal narwhal
COPY external-crates external-crates
COPY docs docs

RUN cargo build --release --bin iota --bin iota-rosetta

# Production Image
Expand Down
1 change: 1 addition & 0 deletions docker/iota-graphql-rpc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ COPY crates crates
COPY iota-execution iota-execution
COPY narwhal narwhal
COPY external-crates external-crates
COPY docs docs

RUN cargo build --profile ${PROFILE} --bin iota-graphql-rpc
RUN mv target/$(if [ $PROFILE = "dev" ]; then echo "debug"; else echo "release";fi)/iota-graphql-rpc ./
Expand Down
1 change: 1 addition & 0 deletions docker/iota-indexer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ COPY crates crates
COPY iota-execution iota-execution
COPY narwhal narwhal
COPY external-crates external-crates
COPY docs docs

RUN cargo build --profile ${PROFILE} --bin iota-indexer
RUN mv target/$(if [ $PROFILE = "dev" ]; then echo "debug"; else echo "release";fi)/iota-indexer ./
Expand Down
1 change: 1 addition & 0 deletions docker/iota-node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ COPY crates crates
COPY iota-execution iota-execution
COPY narwhal narwhal
COPY external-crates external-crates
COPY docs docs

RUN cargo build --profile ${PROFILE} --bin iota-node

Expand Down
2 changes: 2 additions & 0 deletions docker/iota-source-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ COPY crates crates
COPY iota-execution iota-execution
COPY narwhal narwhal
COPY external-crates external-crates
COPY docs docs

RUN cargo build --release \
--bin iota-source-validation-service

Expand Down
1 change: 1 addition & 0 deletions docker/iota-test-validator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ COPY crates crates
COPY iota-execution iota-execution
COPY narwhal narwhal
COPY external-crates external-crates
COPY docs docs

RUN cargo build --profile ${PROFILE} --bin iota-test-validator
RUN mv target/$(if [ $PROFILE = "dev" ]; then echo "debug"; else echo "release";fi)/iota-test-validator ./
Expand Down
1 change: 1 addition & 0 deletions docker/iota-tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ COPY crates crates
COPY iota-execution iota-execution
COPY narwhal narwhal
COPY external-crates external-crates
COPY docs docs

RUN cargo build --profile ${PROFILE} \
--bin iota-node \
Expand Down
3 changes: 2 additions & 1 deletion narwhal/Docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Copy in all crates, Cargo.toml and Cargo.lock unmodified,
# and build the application.
FROM rust:1.73-bullseye AS builder
FROM rust:1.74-bullseye AS builder
ARG PROFILE=release
ARG GIT_REVISION
ENV GIT_REVISION=$GIT_REVISION
Expand All @@ -15,6 +15,7 @@ COPY crates crates
COPY iota-execution iota-execution
COPY narwhal narwhal
COPY external-crates external-crates
COPY docs docs

RUN cargo build --profile ${PROFILE} --bin narwhal-node
RUN cargo build --profile ${PROFILE} --features=benchmark --bin narwhal-benchmark-client
Expand Down

0 comments on commit 14901c6

Please sign in to comment.