Skip to content

Commit

Permalink
Fix docker build
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
  • Loading branch information
mirgee committed Sep 16, 2022
1 parent 172cd34 commit c7b8d5d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions ci/alpine_core.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ENV PATH="/home/indy/.cargo/bin:$PATH" RUSTFLAGS="-C target-feature=-crt-static"

RUN git clone $INDYSDK_REPO && cd $INDYSDK_PATH && git checkout $INDYSDK_REVISION

RUN cargo build --release --manifest-path=$INDYSDK_PATH/libindy/Cargo.toml
RUN cargo build --release --manifest-path=$INDYSDK_PATH/libvdrtools/Cargo.toml

USER root
RUN mv $INDYSDK_PATH/libindy/target/release/libindy.so /usr/lib
RUN mv $INDYSDK_PATH/libvdrtools/target/release/libvdrtools.so /usr/lib
8 changes: 4 additions & 4 deletions ci/libvcx-codecov.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ FROM ubuntu:18.04 as BASE
ARG UID=1000

ARG INDYSDK_PATH=/home/indy/vdr-tools
ARG INDYSDK_REVISION=b5fd711a
ARG INDYSDK_REPO=https://gitlab.com/PatrikStas/vdr-tools.git
ARG INDYSDK_REVISION=c1390f91
ARG INDYSDK_REPO=https://gitlab.com/mirgee/vdr-tools.git
ARG RUST_VER=nightly-2022-05-21

# Install dependencies
Expand Down Expand Up @@ -46,10 +46,10 @@ ENV PATH /home/indy/.cargo/bin:$PATH
# Clone and build indy-sdk
WORKDIR /home/indy
RUN git clone $INDYSDK_REPO && cd $INDYSDK_PATH && git checkout $INDYSDK_REVISION
RUN cargo build --release --manifest-path=$INDYSDK_PATH/libindy/Cargo.toml
RUN cargo build --release --manifest-path=$INDYSDK_PATH/libvdrtools/Cargo.toml

USER root
RUN mv $INDYSDK_PATH/libindy/target/release/*.so /usr/lib
RUN mv $INDYSDK_PATH/libvdrtools/target/release/*.so /usr/lib

# Build indy binaries and move to system library
USER indy
Expand Down
2 changes: 1 addition & 1 deletion ci/libvcx-tester.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARG GID=1000

RUN addgroup -g $GID node && adduser -u $UID -D -G node node

COPY --from=builder /usr/lib/libindy.so /home/indy/lib*.so /usr/lib/
COPY --from=builder /usr/lib/libvdrtools.so /home/indy/lib*.so /usr/lib/

WORKDIR /home/node
COPY --chown=node ./libvcx ./libvcx
Expand Down
2 changes: 1 addition & 1 deletion ci/libvcx.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ARG UID=1000
ARG GID=1000
RUN addgroup -g $GID node && adduser -u $UID -D -G node node

COPY --from=builder /usr/lib/libindy.so /home/indy/lib*.so /usr/lib/
COPY --from=builder /usr/lib/libvdrtools.so /home/indy/lib*.so /usr/lib/

WORKDIR /home/node
RUN apk update && apk upgrade
Expand Down
6 changes: 3 additions & 3 deletions wrappers/ios/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ build_libindy() {
echo "ios/ci/build.sh: running build_libindy()"
TRIPLETS="aarch64-apple-ios,x86_64-apple-ios"

pushd $INDY_SDK_DIR/libindy
pushd $INDY_SDK_DIR/libvdrtools
cargo lipo --release --targets="${TRIPLETS}"
popd
}
Expand All @@ -177,7 +177,7 @@ copy_libindy_architectures() {
echo TRIPLET=$TRIPLET

mkdir -p $OUTPUT_DIR/libs/$LIB_NAME/$ARCH
cp -v $INDY_SDK_DIR/libindy/target/$TRIPLET/release/libindy.a $OUTPUT_DIR/libs/$LIB_NAME/$ARCH/libindy.a
cp -v $INDY_SDK_DIR/libvdrtools/target/$TRIPLET/release/libvdrtools.a $OUTPUT_DIR/libs/$LIB_NAME/$ARCH/libvdrtools.a
done
}

Expand Down Expand Up @@ -251,7 +251,7 @@ combine_libs() {
ARCHS="arm64 x86_64"
combined_libs_paths=""
for arch in ${ARCHS[*]}; do
libraries="libsodium libzmq libvcx" # libssl, libcrypto, libindy were statically linked into libvcx during its build (see libvcx/build.rs)
libraries="libsodium libzmq libvdrtools" # libssl, libcrypto, libindy were statically linked into libvcx during its build (see libvcx/build.rs)

libs_to_combine_paths=""
for library in ${libraries[*]}; do
Expand Down

0 comments on commit c7b8d5d

Please sign in to comment.