Compare commits

..

3 Commits

9 changed files with 57 additions and 56 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
tmp/

View File

@ -1,23 +0,0 @@
# Rio is a terminal writted in Rust
FROM ubuntu:20.04
WORKDIR /build/rio
ENV PATH="/root/.cargo/bin:${PATH}"
ENV DEBIAN_FRONTEND=noninteractive
# Install deps
RUN apt update -y \
&& apt upgrade -y \
&& apt install -y git curl cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3
# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN rustup override set stable \
&& rustup update stable
# Clone repo
RUN git clone https://github.com/raphamorim/rio.git /build/rio
# Build
RUN cargo build --release --no-default-features --features=x11
CMD ["sleep", "infinity"]

View File

@ -1,4 +0,0 @@
docker build -f build-rio.dockerfile --no-cache -t build-rio:latest .
docker run -d --name build-rio build-rio:latest
docker cp build-rio:/build/rio/target/release/rio ~/bin/rio
docker remove -f build-rio

View File

@ -1,21 +0,0 @@
# step 1: create a container for ugrep named "ugrep"
# docker -D build --no-cache -t ugrep .
#
# step 2: run bash in the container, e.g. to run ugrep from the command line
# docker run -it ugrep bash
#
# step 3: run ugrep in the container, for example:
# ugrep -r -n -tjava Hello ugrep/tests/
FROM ubuntu:20.04
WORKDIR /build/ugrep
RUN apt-get update \
&& apt-get install -y make vim git clang wget unzip libpcre2-dev libz-dev libbz2-dev liblzma-dev liblz4-dev libzstd-dev
RUN git clone https://github.com/Genivia/ugrep /build/ugrep
RUN ./build.sh
CMD ["sleep", "infinity"]

View File

@ -1,8 +0,0 @@
docker build -f build-ugrep.dockerfile --no-cache -t build-ugrep:latest .
docker run -d --name build-ugrep build-ugrep:latest
docker cp build-ugrep:/build/ugrep/bin/ugrep ~/bin/ugrep
docker cp build-ugrep:/build/ugrep/bin/ug ~/bin/ug
sudo docker cp build-ugrep:/build/ugrep/patterns/. /usr/local/share/ugrep/patterns/
sudo docker cp build-ugrep:/build/ugrep/man/ugrep.1 /tmp/ugrep.1
sudo /usr/bin/install -c -m 644 /tmp/ugrep.1 '/usr/local/share/man/man1'
docker remove -f build-ugrep

View File

@ -0,0 +1,14 @@
FROM ubuntu:20.04
WORKDIR /build/i3lock-color
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y git autoconf gcc make pkg-config libpam0g-dev libcairo2-dev libfontconfig1-dev libxcb-composite0-dev libev-dev libx11-xcb-dev libxcb-xkb-dev libxcb-xinerama0-dev libxcb-randr0-dev libxcb-image0-dev libxcb-util-dev libxcb-xrm-dev libxkbcommon-dev libxkbcommon-x11-dev libjpeg-dev
RUN git clone --depth=1 https://github.com/Raymo111/i3lock-color.git /build/i3lock-color
RUN ./build.sh
CMD ["sleep", "infinity"]

13
ubuntu20-04/i3lock/build.sh Executable file
View File

@ -0,0 +1,13 @@
APP=i3lock
CONTAINER="build-${APP}"
ROOT="/build/${APP}-color"
IMAGE="${CONTAINER}:latest"
TARGET="~/bin"
docker build -t "${IMAGE}" "${APP}"
docker run -d --name "${CONTAINER}" "${IMAGE}"
docker cp "${CONTAINER}:${ROOT}/build/i3lock" "${TARGET}/i3lock"
docker remove -f "${CONTAINER}"

View File

@ -0,0 +1,12 @@
FROM ubuntu:20.04
WORKDIR /build/ugrep
RUN apt-get update \
&& apt-get install -y make vim git clang wget unzip libpcre2-dev libz-dev libbz2-dev liblzma-dev liblz4-dev libzstd-dev
RUN git clone --depth=1 https://github.com/Genivia/ugrep /build/ugrep
RUN ./build.sh
CMD ["sleep", "infinity"]

17
ubuntu20-04/ugrep/build.sh Executable file
View File

@ -0,0 +1,17 @@
APP=ugrep
CONTAINER="build-${APP}"
ROOT="/build/${APP}"
IMAGE="${CONTAINER}:latest"
TARGET="~/bin"
docker build -t "${IMAGE}" "${APP}"
docker run -d --name "${CONTAINER}" "${IMAGE}"
docker cp "${CONTAINER}:${ROOT}/bin/ugrep" "${TARGET}/ugrep"
docker cp "${CONTAINER}:${ROOT}/bin/ug" "${TARGET}/ug"
sudo docker cp "${CONTAINER}:${ROOT}/patterns/." /usr/local/share/ugrep/patterns/
sudo docker cp "${CONTAINER}:${ROOT}/man/ugrep.1" /tmp/ugrep.1
sudo /usr/bin/install -c -m 644 /tmp/ugrep.1 '/usr/local/share/man/man1'
docker remove -f "${CONTAINER}"