Skip to content

Commit

Permalink
remove comments, switch to bookworm images
Browse files Browse the repository at this point in the history
  • Loading branch information
wileyj committed Mar 2, 2024
1 parent 886b426 commit 1999ab5
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/actions/dockerfiles/Dockerfile.debian-source
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:bullseye as build
FROM rust:bookworm as build

ARG STACKS_NODE_VERSION="No Version Info"
ARG GIT_BRANCH='No Branch Info'
Expand Down
5 changes: 2 additions & 3 deletions Dockerfile.debian
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:bullseye as build
FROM rust:bookworm as build

ARG STACKS_NODE_VERSION="No Version Info"
ARG GIT_BRANCH='No Branch Info'
Expand All @@ -14,9 +14,8 @@ RUN cd testnet/stacks-node && cargo build --features monitoring_prom,slog_json -

RUN cp target/release/stacks-node /out

FROM debian:bullseye-slim
FROM debian:bookworm-slim

RUN apt update && apt install -y netcat
COPY --from=build /out/ /bin/

CMD ["stacks-node", "mainnet"]
5 changes: 2 additions & 3 deletions build-scripts/Dockerfile.linux-glibc-arm64
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:bullseye as build
FROM rust:bookworm as build

ARG STACKS_NODE_VERSION="No Version Info"
ARG GIT_BRANCH='No Branch Info'
Expand All @@ -21,7 +21,6 @@ RUN --mount=type=tmpfs,target=${BUILD_DIR} cp -R /src/. ${BUILD_DIR}/ \
cargo build --features monitoring_prom,slog_json --release --workspace --target ${TARGET} --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli \
&& mkdir -p /out \
&& cp -R ${BUILD_DIR}/target/${TARGET}/release/. /out
# --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli

FROM scratch AS export-stage
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /
5 changes: 2 additions & 3 deletions build-scripts/Dockerfile.linux-glibc-armv7
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:bullseye as build
FROM rust:bookworm as build

ARG STACKS_NODE_VERSION="No Version Info"
ARG GIT_BRANCH='No Branch Info'
Expand All @@ -21,7 +21,6 @@ RUN --mount=type=tmpfs,target=${BUILD_DIR} cp -R /src/. ${BUILD_DIR}/ \
cargo build --features monitoring_prom,slog_json --release --workspace --target ${TARGET} --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli \
&& mkdir -p /out \
&& cp -R ${BUILD_DIR}/target/${TARGET}/release/. /out
# --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli

FROM scratch AS export-stage
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /
4 changes: 2 additions & 2 deletions build-scripts/Dockerfile.linux-glibc-x64
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:bullseye as build
FROM rust:bookworm as build

ARG STACKS_NODE_VERSION="No Version Info"
ARG GIT_BRANCH='No Branch Info'
Expand All @@ -23,4 +23,4 @@ RUN --mount=type=tmpfs,target=${BUILD_DIR} cp -R /src/. ${BUILD_DIR}/ \
&& cp -R ${BUILD_DIR}/target/${TARGET}/release/. /out

FROM scratch AS export-stage
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /
4 changes: 2 additions & 2 deletions build-scripts/Dockerfile.linux-musl-arm64
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ RUN --mount=type=tmpfs,target=${BUILD_DIR} cp -R /src/. ${BUILD_DIR}/ \
&& cargo build --features monitoring_prom,slog_json --release --workspace --target ${TARGET} --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli \
&& mkdir -p /out \
&& cp -R ${BUILD_DIR}/target/${TARGET}/release/. /out
# --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli

FROM scratch AS export-stage
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /
4 changes: 2 additions & 2 deletions build-scripts/Dockerfile.linux-musl-armv7
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ RUN --mount=type=tmpfs,target=${BUILD_DIR} cp -R /src/. ${BUILD_DIR}/ \
&& cargo build --features monitoring_prom,slog_json --release --workspace --target ${TARGET} --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli \
&& mkdir -p /out \
&& cp -R ${BUILD_DIR}/target/${TARGET}/release/. /out
# --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli

FROM scratch AS export-stage
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /
1 change: 0 additions & 1 deletion build-scripts/Dockerfile.linux-musl-x64
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ WORKDIR /src

COPY . .

RUN echo "RUSTFLAGS: ${RUSTFLAGS}"
RUN apk update && apk add git musl-dev make

# Run all the build steps in ramdisk in an attempt to speed things up
Expand Down
4 changes: 2 additions & 2 deletions build-scripts/Dockerfile.macos-arm64
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ RUN --mount=type=tmpfs,target=${BUILD_DIR} cp -R /src/. ${BUILD_DIR}/ \
&& cargo build --features monitoring_prom,slog_json --release --workspace --target ${TARGET} --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli \
&& mkdir -p /out \
&& cp -R ${BUILD_DIR}/target/${TARGET}/release/. /out
# --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli

FROM scratch AS export-stage
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /
4 changes: 2 additions & 2 deletions build-scripts/Dockerfile.macos-x64
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ RUN --mount=type=tmpfs,target=${BUILD_DIR} cp -R /src/. ${BUILD_DIR}/ \
&& cargo build --features monitoring_prom,slog_json --release --workspace --target ${TARGET} --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli \
&& mkdir -p /out \
&& cp -R ${BUILD_DIR}/target/${TARGET}/release/. /out
# --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli

FROM scratch AS export-stage
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /
6 changes: 3 additions & 3 deletions build-scripts/Dockerfile.windows-x64
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:bullseye as build
FROM rust:bookworm as build

ARG STACKS_NODE_VERSION="No Version Info"
ARG GIT_BRANCH='No Branch Info'
Expand All @@ -22,6 +22,6 @@ RUN --mount=type=tmpfs,target=${BUILD_DIR} cp -R /src/. ${BUILD_DIR}/ \
cargo build --features monitoring_prom,slog_json --release --workspace --target ${TARGET} --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli \
&& mkdir -p /out \
&& cp -R ${BUILD_DIR}/target/${TARGET}/release/. /out
# --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli

FROM scratch AS export-stage
COPY --from=build /out/stacks-inspect.exe /out/blockstack-cli.exe /out/clarity-cli.exe /out/stacks-node.exe /
COPY --from=build /out/stacks-inspect.exe /out/blockstack-cli.exe /out/clarity-cli.exe /out/stacks-node.exe /

0 comments on commit 1999ab5

Please sign in to comment.