mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-13 08:40:45 +08:00
add Dockerfile.stretch
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Dockerfile
|
||||
Dockerfile*
|
||||
target
|
||||
integration_tests/blockstack-consensus-data/
|
||||
integration_tests/test-out/
|
||||
|
||||
@@ -13,11 +13,11 @@ ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER musl-gcc
|
||||
|
||||
RUN mkdir /out
|
||||
|
||||
RUN cd testnet/stacks-node && cargo build --features "monitoring_prom" --release --target x86_64-unknown-linux-musl
|
||||
RUN cd testnet/bitcoin-neon-controller && cargo build --release --target x86_64-unknown-linux-musl
|
||||
RUN cd testnet/stacks-node && cargo build --features "monitoring_prom" --target x86_64-unknown-linux-musl
|
||||
RUN cd testnet/bitcoin-neon-controller && cargo build --target x86_64-unknown-linux-musl
|
||||
|
||||
RUN cp target/x86_64-unknown-linux-musl/release/stacks-node /out
|
||||
RUN cp target/x86_64-unknown-linux-musl/release/bitcoin-neon-controller /out
|
||||
RUN cp target/x86_64-unknown-linux-musl/debug/stacks-node /out
|
||||
RUN cp target/x86_64-unknown-linux-musl/debug/bitcoin-neon-controller /out
|
||||
|
||||
FROM alpine
|
||||
|
||||
|
||||
19
Dockerfile.stretch
Normal file
19
Dockerfile.stretch
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM rust:stretch as build
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN mkdir /out
|
||||
|
||||
RUN cd testnet/stacks-node && cargo build --release --features "monitoring_prom"
|
||||
RUN cd testnet/bitcoin-neon-controller && cargo build --release
|
||||
|
||||
RUN cp target/release/stacks-node /out
|
||||
RUN cp target/release/bitcoin-neon-controller /out
|
||||
|
||||
FROM debian:stretch-slim
|
||||
|
||||
COPY --from=build /out/ /bin/
|
||||
|
||||
CMD ["stacks-node", "argon"]
|
||||
14
circle.yml
14
circle.yml
@@ -25,7 +25,7 @@ jobs:
|
||||
./target/debug/blockstack-core local execute db S1G2081040G2081040G2081040G208105NK8PE5.tokens mint! SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR u100000
|
||||
- run:
|
||||
command: |
|
||||
echo "(get-balance 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR)" | blockstack-core local eval S1G2081040G2081040G2081040G208105NK8PE5.tokens db
|
||||
echo "(get-balance 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR)" | ./target/debug/blockstack-core local eval S1G2081040G2081040G2081040G208105NK8PE5.tokens db
|
||||
unit_tests_with_cov:
|
||||
machine: true
|
||||
working_directory: ~/blockstack
|
||||
@@ -69,9 +69,15 @@ jobs:
|
||||
- run:
|
||||
name: build docker image
|
||||
command: docker build . -t $IMAGE_NAME:latest
|
||||
- run:
|
||||
name: build debug docker image
|
||||
command: docker build . -f Dockerfile.stretch -t $IMAGE_NAME-stretch:latest
|
||||
- run:
|
||||
name: save image to workspace
|
||||
command: docker save -o image.tar $IMAGE_NAME:latest
|
||||
- run:
|
||||
name: save image to workspace
|
||||
command: docker save -o image-stretch.tar $IMAGE_NAME-stretch:latest
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
@@ -85,14 +91,20 @@ jobs:
|
||||
- run:
|
||||
name: load docker image
|
||||
command: docker load -i /tmp/workspace/image.tar
|
||||
- run:
|
||||
name: load docker image
|
||||
command: docker load -i /tmp/workspace/image-stretch.tar
|
||||
- run:
|
||||
name: push docker image
|
||||
command: |
|
||||
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
|
||||
if [ "${CIRCLE_BRANCH}" = "master" ]; then
|
||||
docker tag $IMAGE_NAME:latest $IMAGE_NAME:master
|
||||
docker tag $IMAGE_NAME-stretch:latest $IMAGE_NAME-stretch:master
|
||||
docker push $IMAGE_NAME:latest
|
||||
docker push $IMAGE_NAME:master
|
||||
docker push $IMAGE_NAME-stretch:latest
|
||||
docker push $IMAGE_NAME-stretch:master
|
||||
elif [ "${CIRCLE_BRANCH}" = "feature/docker-deploy" ]; then
|
||||
docker tag $IMAGE_NAME:latest $IMAGE_NAME:test-deploy
|
||||
docker push $IMAGE_NAME:test-deploy
|
||||
|
||||
Reference in New Issue
Block a user