Add ghr to the docker build container
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
parent
e2c97bff66
commit
2bda304a6d
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue