File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM rust:1-buster
2+
3+ RUN set -x && \
4+ apt-get update && \
5+ apt-get -y upgrade && \
6+ apt-get install -y --no-install-recommends asciidoctor && \
7+ cargo install cargo-deb && \
8+ chmod -R ugo+rwX $CARGO_HOME
9+
10+ CMD ["bash" ]
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ run () {
4+ echo " + $* " >&2
5+ " $@ "
6+ }
7+
8+ set -e
9+
10+ if [[ ! -f Cargo.lock ]]; then
11+ echo " Please run from the root of ripgrep's repo" >&2
12+ exit 1
13+ fi
14+
15+ DOCKER_IMAGE=aswild/ripgrep-builder:buster
16+ _uid=$( id -u)
17+ _gid=$( id -g)
18+
19+ if ! docker inspect --type image $DOCKER_IMAGE & > /dev/null; then
20+ echo >&2 " Image $DOCKER_IMAGE not found, building"
21+ run docker build -t $DOCKER_IMAGE ci/docker/buster
22+ fi
23+
24+ run docker run -t --rm \
25+ --user " ${_uid} :${_gid} " \
26+ --volume " $PWD :/ripgrep" \
27+ --workdir /ripgrep \
28+ $DOCKER_IMAGE \
29+ ci/build-deb
You can’t perform that action at this time.
0 commit comments