refactor: using more advanced scripts for more customization
parent
8dc7cad562
commit
89db2b3155
|
|
@ -0,0 +1 @@
|
|||
tmp/
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
docker build -f build-i3lock.dockerfile --no-cache -t build-i3lock:latest .
|
||||
docker run -d --name build-i3lock build-i3lock:latest
|
||||
docker cp build-i3lock:/build/i3lock-color/build/i3lock ~/bin/i3lock
|
||||
docker remove -f build-i3lock
|
||||
|
|
@ -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"]
|
||||
|
|
@ -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
|
||||
|
|
@ -1,9 +1,3 @@
|
|||
# step 1: create a container for i3lock named "i3lock"
|
||||
# docker -D build --no-cache -t i3lock .
|
||||
#
|
||||
# step 2: run bash in the container, e.g. to run i3lock from the command line
|
||||
# docker run -it i3lock bash
|
||||
|
||||
FROM ubuntu:20.04
|
||||
|
||||
WORKDIR /build/i3lock-color
|
||||
|
|
@ -13,7 +7,7 @@ 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 https://github.com/Raymo111/i3lock-color.git /build/i3lock-color
|
||||
RUN git clone --depth=1 https://github.com/Raymo111/i3lock-color.git /build/i3lock-color
|
||||
|
||||
RUN ./build.sh
|
||||
|
||||
|
|
@ -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}"
|
||||
|
|
@ -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"]
|
||||
|
|
@ -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}"
|
||||
Loading…
Reference in New Issue