Add ghr to the docker build container

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12 2019-02-22 19:54:53 -08:00
parent e2c97bff66
commit 2bda304a6d
No known key found for this signature in database
GPG Key ID: ABB8FC9789AF524D
6 changed files with 30 additions and 0 deletions

View File

@ -5,4 +5,9 @@ RUN dpkg --add-architecture arm64 && \
apt-get install -y --no-install-recommends nettle-dev:arm64 gcc-aarch64-linux-gnu libc-dev-arm64-cross \
make file wget netcat-traditional sqlite3 git ca-certificates ssh libcap-dev:arm64
# Install ghr for GitHub Releases: https://github.com/tcnksm/ghr
RUN wget https://github.com/tcnksm/ghr/releases/download/v0.12.0/ghr_v0.12.0_linux_amd64.tar.gz && \
tar -xzf ghr_*_linux_amd64.tar.gz && \
mv ghr_*_linux_amd64/ghr /usr/bin/ghr
ENV CC aarch64-linux-gnu-gcc

View File

@ -23,5 +23,10 @@ RUN dpkg --add-architecture armhf && \
apt-get install -y --no-install-recommends make file netcat-traditional ssh \
nettle-dev:armhf libcap-dev sqlite3
# Install ghr for GitHub Releases: https://github.com/tcnksm/ghr
RUN wget https://github.com/tcnksm/ghr/releases/download/v0.12.0/ghr_v0.12.0_linux_amd64.tar.gz && \
tar -xzf ghr_*_linux_amd64.tar.gz && \
mv ghr_*_linux_amd64/ghr /usr/bin/ghr
# Allow libnettle to be used, because this GCC doesn't have all the right header and library directories
ENV CC "arm-linux-gnueabihf-gcc -I/usr/include -I/usr/include/arm-linux-gnueabihf -L/usr/local/lib"

View File

@ -5,4 +5,9 @@ RUN dpkg --add-architecture armhf && \
apt-get install -y --no-install-recommends nettle-dev:armhf gcc-arm-linux-gnueabihf libc6-dev-armhf-cross \
make file wget netcat-traditional sqlite3 git ca-certificates ssh libcap-dev:armhf
# Install ghr for GitHub Releases: https://github.com/tcnksm/ghr
RUN wget https://github.com/tcnksm/ghr/releases/download/v0.12.0/ghr_v0.12.0_linux_amd64.tar.gz && \
tar -xzf ghr_*_linux_amd64.tar.gz && \
mv ghr_*_linux_amd64/ghr /usr/bin/ghr
ENV CC arm-linux-gnueabihf-gcc

View File

@ -5,4 +5,9 @@ RUN dpkg --add-architecture i386 && \
apt-get install -y --no-install-recommends nettle-dev:i386 gcc gcc-multilib \
make file wget netcat-traditional sqlite3 git ca-certificates ssh libcap-dev:i386
# Install ghr for GitHub Releases: https://github.com/tcnksm/ghr
RUN wget https://github.com/tcnksm/ghr/releases/download/v0.12.0/ghr_v0.12.0_linux_amd64.tar.gz && \
tar -xzf ghr_*_linux_amd64.tar.gz && \
mv ghr_*_linux_amd64/ghr /usr/bin/ghr
ENV CC "gcc -m32"

View File

@ -4,4 +4,9 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends nettle-dev musl-tools \
make file wget netcat-traditional sqlite3 git ca-certificates ssh
# Install ghr for GitHub Releases: https://github.com/tcnksm/ghr
RUN wget https://github.com/tcnksm/ghr/releases/download/v0.12.0/ghr_v0.12.0_linux_amd64.tar.gz && \
tar -xzf ghr_*_linux_amd64.tar.gz && \
mv ghr_*_linux_amd64/ghr /usr/bin/ghr
ENV CC musl-gcc

View File

@ -4,4 +4,9 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends nettle-dev gcc libc-dev \
make file wget netcat-traditional sqlite3 git ca-certificates ssh libcap-dev
# Install ghr for GitHub Releases: https://github.com/tcnksm/ghr
RUN wget https://github.com/tcnksm/ghr/releases/download/v0.12.0/ghr_v0.12.0_linux_amd64.tar.gz && \
tar -xzf ghr_*_linux_amd64.tar.gz && \
mv ghr_*_linux_amd64/ghr /usr/bin/ghr
ENV CC gcc