Skip to content

Commit

Permalink
fix: build directory and epoch heights
Browse files Browse the repository at this point in the history
  • Loading branch information
zone117x committed Apr 4, 2024
1 parent 56671c3 commit 16a6c3d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ jobs:
run: |
cargo build --package stacks-node --bin stacks-node --features portable --profile release-lite --target x86_64-unknown-linux-gnu --target aarch64-unknown-linux-gnu
mkdir -p ../bin/x86_64-unknown-linux-gnu ../bin/aarch64-unknown-linux-gnu
cp target/x86_64-unknown-linux-gnu/release/stacks-node ../bin/x86_64-unknown-linux-gnu
cp target/aarch64-unknown-linux-gnu/release/stacks-node ../bin/aarch64-unknown-linux-gnu
cp target/x86_64-unknown-linux-gnu/release-lite/stacks-node ../bin/x86_64-unknown-linux-gnu
cp target/aarch64-unknown-linux-gnu/release-lite/stacks-node ../bin/aarch64-unknown-linux-gnu
- uses: actions/upload-artifact@v3
with:
name: stacks-node-bin
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile.e2e
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ RUN <<EOF
STACKS_NODE_BIN_AMD64=/stacks-blockchain-binaries/x86_64-unknown-linux-gnu/stacks-node
if [ "$TARGETPLATFORM" = "linux/arm64" ] && [ -f "$STACKS_NODE_BIN_ARM64" ]; then
echo "Using existing stacks-node binary: $STACKS_NODE_BIN_ARM64"
mkdir -p target/release && mv "$STACKS_NODE_BIN_ARM64" target/release/stacks-node
mkdir -p target/release-lite && mv "$STACKS_NODE_BIN_ARM64" target/release-lite/stacks-node
exit 0
elif [ "$TARGETPLATFORM" = "linux/amd64" ] && [ -f "$STACKS_NODE_BIN_AMD64" ]; then
echo "Using existing stacks-node binary: $STACKS_NODE_BIN_AMD64"
mkdir -p target/release && mv "$STACKS_NODE_BIN_AMD64" target/release/stacks-node
mkdir -p target/release-lite && mv "$STACKS_NODE_BIN_AMD64" target/release-lite/stacks-node
exit 0
fi

Expand All @@ -46,7 +46,7 @@ EOF

FROM debian:bookworm-backports

COPY --from=builder /stacks/target/release/stacks-node /usr/local/bin/
COPY --from=builder /stacks/target/release-lite/stacks-node /usr/local/bin/
COPY --from=dobtc/bitcoin:25.1 /opt/bitcoin-*/bin /usr/local/bin

ENV DEBIAN_FRONTEND noninteractive
Expand Down Expand Up @@ -76,7 +76,7 @@ ENV BITCOIN_RPC_PASS=btc
ARG MINE_INTERVAL=5s
ENV MINE_INTERVAL=$MINE_INTERVAL

ARG STACKS_20_HEIGHT=103
ARG STACKS_20_HEIGHT=0
ENV STACKS_20_HEIGHT=$STACKS_20_HEIGHT

ARG STACKS_2_05_HEIGHT=104
Expand All @@ -101,7 +101,7 @@ ARG STACKS_25_HEIGHT=112
ENV STACKS_25_HEIGHT=$STACKS_25_HEIGHT

# do not boot into epoch3.0 for now (it doesn't work yet)
ARG STACKS_30_HEIGHT=999999
ARG STACKS_30_HEIGHT=9999997
ENV STACKS_30_HEIGHT=$STACKS_30_HEIGHT

# priv: 6ad9cadb42d4edbfbe0c5bfb3b8a4125ddced021c4174f829b714ccbf527f02001
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.stacks-node
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN cargo build --package stacks-node --bin stacks-node --features portable --pr

FROM debian:bullseye-backports

COPY --from=builder /stacks/target/release/stacks-node /usr/local/bin/
COPY --from=builder /stacks/target/release-lite/stacks-node /usr/local/bin/

COPY --from=ruimarinho/bitcoin-core:0.21.1 /opt/bitcoin-*/bin /usr/local/bin

Expand Down

0 comments on commit 16a6c3d

Please sign in to comment.