-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(Dockerfiles): Rename stable to nix
Move current nix to nightly.
- Loading branch information
Showing
3 changed files
with
73 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM rustlang/rust:nightly | ||
|
||
ENV TMUX_VERSION 3.1 | ||
WORKDIR /usr/src | ||
|
||
# This is a dummy build to get the dependencies cached | ||
COPY . . | ||
RUN cargo fetch --target x86_64-unknown-linux-gnu | ||
RUN rm -rf ./* | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y libevent-dev \ | ||
locales \ | ||
bison \ | ||
byacc && \ | ||
apt-get remove tmux | ||
|
||
RUN git clone https://github.com/tmux/tmux.git /opt/tmux && \ | ||
cd /opt/tmux && \ | ||
git checkout $TMUX_VERSION && \ | ||
sh autogen.sh && \ | ||
./configure --prefix=/opt/tmux && make && make install | ||
|
||
ENV PATH $PATH:/opt/tmux/bin | ||
|
||
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ | ||
locale-gen | ||
|
||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
RUN rustup component add rustfmt | ||
RUN rustup component add clippy --toolchain=nightly || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy | ||
RUN cargo install clog-cli |
This file was deleted.
Oops, something went wrong.
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,35 +1,51 @@ | ||
FROM rustlang/rust:nightly | ||
FROM rust:latest | ||
|
||
ENV TMUX_VERSION 3.0a | ||
ENV TMUX_VERSION 3.1 | ||
WORKDIR /usr/src | ||
|
||
# This is a dummy build to get the dependencies cached | ||
COPY . . | ||
RUN cargo fetch --target x86_64-unknown-linux-gnu | ||
RUN rm -rf ./* | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y libevent-dev \ | ||
locales \ | ||
bison \ | ||
byacc && \ | ||
apt-get remove tmux | ||
|
||
RUN git clone https://github.com/tmux/tmux.git /opt/tmux && \ | ||
RUN cargo fetch --target x86_64-unknown-linux-gnu; \ | ||
cargo build; \ | ||
rm -rf ./* | ||
|
||
RUN apt-get update; \ | ||
apt-get install -y --no-install-recommends \ | ||
automake \ | ||
bison \ | ||
byacc \ | ||
git \ | ||
libevent-dev \ | ||
libncurses-dev \ | ||
locales \ | ||
pkg-config; \ | ||
apt-get remove tmux | ||
|
||
RUN git clone --depth=1 --branch $TMUX_VERSION https://github.com/tmux/tmux.git /opt/tmux && \ | ||
cd /opt/tmux && \ | ||
git checkout $TMUX_VERSION && \ | ||
sh autogen.sh && \ | ||
./configure --prefix=/opt/tmux && make && make install | ||
|
||
ENV PATH $PATH:/opt/tmux/bin | ||
|
||
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ | ||
locale-gen | ||
|
||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
RUN rustup component add rustfmt | ||
RUN rustup component add clippy --toolchain=nightly || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy | ||
RUN cargo install clog-cli | ||
ENV PATH=$PATH:/opt/tmux/bin \ | ||
LANG=en_US.UTF-8 \ | ||
LANGUAGE=en_US:en \ | ||
LC_ALL=en_US.UTF-8 | ||
|
||
RUN apt-get remove \ | ||
automake \ | ||
bison \ | ||
byacc \ | ||
git \ | ||
libevent-dev \ | ||
libncurses-dev \ | ||
locales \ | ||
pkg-config; \ | ||
rm -rf /var/lib/apt/lists/*; | ||
|
||
RUN rustup component add rustfmt; \ | ||
cargo install clog-cli | ||
# RUN rustup component add clippy --toolchain=nightly || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy |