From 93bab299eca718dd6bc81069ed4198827ff9bac4 Mon Sep 17 00:00:00 2001 From: veeso Date: Sun, 28 Feb 2021 21:07:51 +0100 Subject: [PATCH] debian 8 is too old? --- dist/build/deploy.sh | 6 +++--- dist/build/x86_64_debian9/Dockerfile | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 dist/build/x86_64_debian9/Dockerfile diff --git a/dist/build/deploy.sh b/dist/build/deploy.sh index ee7f44e..10b520e 100755 --- a/dist/build/deploy.sh +++ b/dist/build/deploy.sh @@ -15,11 +15,11 @@ PKGS_DIR=$(pwd)/pkgs cd - mkdir -p ${PKGS_DIR}/ # Build x86_64_deb -cd x86_64_debian8/ -docker build --tag termscp-${VERSION}-x86_64_debian8 . +cd x86_64_debian9/ +docker build --tag termscp-${VERSION}-x86_64_debian9 . cd - mkdir -p ${PKGS_DIR}/deb/ -CONTAINER_NAME=$(docker create termscp-${VERSION}-x86_64_debian8 termscp-${VERSION}-x86_64_debian8) +CONTAINER_NAME=$(docker create termscp-${VERSION}-x86_64_debian9 termscp-${VERSION}-x86_64_debian9) docker cp ${CONTAINER_NAME}:/usr/src/termscp/target/debian/termscp_${VERSION}_amd64.deb ${PKGS_DIR}/deb/ # Build x86_64_centos7 cd x86_64_centos7/ diff --git a/dist/build/x86_64_debian9/Dockerfile b/dist/build/x86_64_debian9/Dockerfile new file mode 100644 index 0000000..01e0d9a --- /dev/null +++ b/dist/build/x86_64_debian9/Dockerfile @@ -0,0 +1,28 @@ +FROM debian:stretch + +WORKDIR /usr/src/ +# Install dependencies +RUN apt update && apt install -y \ + git \ + gcc \ + pkg-config \ + libssl-dev \ + libssh2-1-dev \ + curl + +# Install rust +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rust.sh && \ + chmod +x /tmp/rust.sh && \ + /tmp/rust.sh -y +# Clone repository +RUN git clone https://github.com/veeso/termscp.git +# Set workdir to termscp +WORKDIR /usr/src/termscp/ +# Install cargo deb +RUN . $HOME/.cargo/env && cargo install cargo-deb +# Build for x86_64 +RUN . $HOME/.cargo/env && cargo build --release +# Build pkgs +RUN . $HOME/.cargo/env && cargo deb + +CMD ["sh"]