File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 6262 docker run --name wait_for_db wait_for_db --help
6363 - name : Docker copy
6464 run : |
65- docker cp wait_for_db:/wait_for_db wait-for-db-linux-x86
65+ docker cp wait_for_db:/wait_for_db wait-for-db-linux-x86
66+ - name : ldd check
67+ run : |
68+ ldd wait-for-db-linux-x86 | grep "statically linked"
69+ retVal=$?
70+ if [ $retVal -ne 0 ]; then
71+ ldd wait-for-db-linux-x86
72+ echo Found local non-static refs!
73+ exit 1
74+ fi
Original file line number Diff line number Diff line change 11FROM alpine:3.13 as builder
22
3- RUN apk add --no-cache rustup gcc file unixodbc-dev unixodbc-static libltdl-static musl-dev openssl-dev
3+ RUN apk add --no-cache rustup gcc file unixodbc-dev unixodbc-static libltdl-static musl-dev openssl-dev openssl-libs-static
44RUN rustup-init -y --default-host x86_64-unknown-linux-musl --profile minimal
55ENV PATH=$PATH:/root/.cargo/bin
66
77WORKDIR /app
8- ENV OPENSSL_STATIC=true
8+ ENV OPENSSL_STATIC=yes
9+ ENV OPENSSL_LIB_DIR=/usr/lib
10+ ENV OPENSSL_INCLUDE_DIR=/usr/include
911ADD . ./
1012RUN cargo build --release --target=x86_64-unknown-linux-musl
1113RUN strip ./target/x86_64-unknown-linux-musl/release/wait_for_db
You can’t perform that action at this time.
0 commit comments