mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-11 02:52:56 +01:00
Merge branch 'jc-add-pcre2' into 'master'
Install pcre2 See merge request gitlab-org/gitlab-build-images!183
This commit is contained in:
commit
061f91568b
3 changed files with 23 additions and 1 deletions
|
|
@ -15,6 +15,13 @@ ENV PATH $PATH:/usr/local/go/bin
|
||||||
|
|
||||||
# Git
|
# Git
|
||||||
ARG GIT_VERSION
|
ARG GIT_VERSION
|
||||||
|
|
||||||
|
## pcre
|
||||||
|
ARG PCRE2_VERSION=10.33
|
||||||
|
ARG PCRE2_DOWNLOAD_URL=https://ftp.pcre.org/pub/pcre/pcre2-${PCRE2_VERSION}.tar.gz
|
||||||
|
RUN if [ -n "$GIT_VERSION" ]; then /scripts/install-pcre2 && pcre2-config --version; fi
|
||||||
|
|
||||||
|
## git
|
||||||
ARG GIT_DOWNLOAD_URL=https://www.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz
|
ARG GIT_DOWNLOAD_URL=https://www.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz
|
||||||
ARG GIT_DOWNLOAD_SHA256
|
ARG GIT_DOWNLOAD_SHA256
|
||||||
RUN if [ -n "$GIT_VERSION" ]; then /scripts/install-git && git --version; fi
|
RUN if [ -n "$GIT_VERSION" ]; then /scripts/install-git && git --version; fi
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ mkdir build \
|
||||||
&& tar -C build -xzf git.tar.gz \
|
&& tar -C build -xzf git.tar.gz \
|
||||||
&& cd build/git-$GIT_VERSION \
|
&& cd build/git-$GIT_VERSION \
|
||||||
&& chmod +x configure \
|
&& chmod +x configure \
|
||||||
&& USE_LIBPCRE=YesPlease ./configure --with-libpcre \
|
&& ./configure --with-libpcre \
|
||||||
&& make all \
|
&& make all \
|
||||||
&& make install PREFIX=/usr/local \
|
&& make install PREFIX=/usr/local \
|
||||||
&& cd ../.. \
|
&& cd ../.. \
|
||||||
|
|
|
||||||
15
scripts/install-pcre2
Executable file
15
scripts/install-pcre2
Executable file
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -xeuo pipefail
|
||||||
|
IFS=$'\n\t'
|
||||||
|
|
||||||
|
curl -fsSL "$PCRE2_DOWNLOAD_URL" -o pcre2.tar.gz \
|
||||||
|
&& tar -xzf pcre2.tar.gz \
|
||||||
|
&& cd pcre2-${PCRE2_VERSION} \
|
||||||
|
&& chmod +x configure \
|
||||||
|
&& ./configure --prefix=/usr --enable-jit \
|
||||||
|
&& make \
|
||||||
|
&& make install \
|
||||||
|
&& cd ../ \
|
||||||
|
&& rm -rf pcre2-${PCRE2_VERSION} \
|
||||||
|
&& rm pcre2.tar.gz
|
||||||
Loading…
Add table
Add a link
Reference in a new issue