-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
FROM centos:centos7 as builder | ||
|
||
ARG branch | ||
ENV branch=$branch | ||
WORKDIR /usr/src/ | ||
# Install dependencies | ||
RUN yum -y install \ | ||
git \ | ||
gcc \ | ||
pkgconfig \ | ||
curl \ | ||
bash | ||
# 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/tuifeed.git | ||
RUN git clone --branch $branch https://github.com/veeso/tuifeed.git | ||
# Set workdir to tuifeed | ||
WORKDIR /usr/src/tuifeed/ | ||
# Install cargo arxch | ||
RUN source $HOME/.cargo/env && cargo install cargo-rpm cargo-strip | ||
RUN source $HOME/.cargo/env && cargo install cargo-rpm | ||
# Build for x86_64 | ||
RUN source $HOME/.cargo/env && cargo build --release && cargo strip | ||
RUN source $HOME/.cargo/env && cargo build --release | ||
# Build pkgs | ||
RUN source $HOME/.cargo/env && yum -y install rpm-build && cargo rpm init && cargo rpm build | ||
CMD ["sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters