mirror of
https://github.com/veeso/termscp.git
synced 2025-12-06 17:15:35 -08:00
fixed build
This commit is contained in:
11
dist/build/x86_64_centos7/Dockerfile
vendored
11
dist/build/x86_64_centos7/Dockerfile
vendored
@@ -8,8 +8,11 @@ RUN yum -y install \
|
|||||||
git \
|
git \
|
||||||
gcc \
|
gcc \
|
||||||
pkgconfig \
|
pkgconfig \
|
||||||
|
gcc \
|
||||||
|
make \
|
||||||
dbus-devel \
|
dbus-devel \
|
||||||
bash
|
bash \
|
||||||
|
rpm-build
|
||||||
# Install rust
|
# Install rust
|
||||||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rust.sh && \
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rust.sh && \
|
||||||
chmod +x /tmp/rust.sh && \
|
chmod +x /tmp/rust.sh && \
|
||||||
@@ -18,10 +21,10 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rust.sh &&
|
|||||||
RUN git clone --branch $branch https://github.com/veeso/termscp.git
|
RUN git clone --branch $branch https://github.com/veeso/termscp.git
|
||||||
# Set workdir to termscp
|
# Set workdir to termscp
|
||||||
WORKDIR /usr/src/termscp/
|
WORKDIR /usr/src/termscp/
|
||||||
# Install cargo arxch
|
|
||||||
RUN source $HOME/.cargo/env && cargo install cargo-rpm
|
|
||||||
# Build for x86_64
|
# Build for x86_64
|
||||||
RUN source $HOME/.cargo/env && cargo build --release
|
RUN source $HOME/.cargo/env && cargo build --release
|
||||||
|
# Install cargo rpm
|
||||||
|
RUN source $HOME/.cargo/env && cargo install cargo-rpm
|
||||||
# Build pkgs
|
# Build pkgs
|
||||||
RUN source $HOME/.cargo/env && yum -y install rpm-build && cargo rpm init && cargo rpm build
|
RUN source $HOME/.cargo/env && cargo rpm init && cargo rpm build
|
||||||
CMD ["sh"]
|
CMD ["sh"]
|
||||||
|
|||||||
1
dist/build/x86_64_debian9/Dockerfile
vendored
1
dist/build/x86_64_debian9/Dockerfile
vendored
@@ -9,6 +9,7 @@ RUN apt update && apt install -y \
|
|||||||
gcc \
|
gcc \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
libdbus-1-dev \
|
libdbus-1-dev \
|
||||||
|
build-essential \
|
||||||
bash \
|
bash \
|
||||||
curl
|
curl
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user