debian mips64 image fixes

This commit is contained in:
Grant Limberg 2020-06-24 14:51:59 -07:00
parent 2f82db97ed
commit 495ac17346
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
4 changed files with 27 additions and 15 deletions

View file

@ -5,7 +5,7 @@ ARG BUILDPLATFORM
ARG TARGETPLATFORM
RUN apt-get update && apt-get upgrade -y && apt-get -y install build-essential curl ca-certificates devscripts dh-systemd libssl-dev
RUN if test "$TARGETPLATFORM" = "linux/mips64le" ]; then \
RUN if test "$TARGETPLATFORM" = "linux/mips64le"; then \
apt-get install golang; \
else \
curl -s -k $go_pkg_url -o go.tar.gz; \

View file

@ -1,12 +1,17 @@
FROM debian:buster-20191224
FROM debian:buster-20200607
ARG go_pkg_url
ARG BUILDPLATFORM
ARG TARGETPLATFORM
RUN apt-get update && apt-get -y install build-essential curl cmake ca-certificates devscripts dh-systemd
RUN curl -s -k $go_pkg_url -o go.tar.gz && \
tar -C /usr/local -xzf go.tar.gz && \
rm go.tar.gz
RUN if test "$TARGETPLATFORM" = "linux/mips64le"; then \
apt-get install golang; \
else \
curl -s -k $go_pkg_url -o go.tar.gz; \
tar -C /usr/local -xzf go.tar.gz; \
rm go.tar.gz; \
fi;
RUN groupadd -g 1000 jenkins-build && useradd -u 1000 -g 1000 jenkins-build
RUN chmod 777 /home && mkdir -p /home/jenkins-build && chown jenkins-build:jenkins-build /home/jenkins-build && chmod 777 /home/jenkins-build

View file

@ -1,17 +1,20 @@
FROM debian:sid-20191224
FROM debian:sid-20200607
ARG go_pkg_url
RUN apt-get update && apt-get upgrade -y && apt-get -y install build-essential curl ca-certificates devscripts dh-systemd
RUN if test "$TARGETPLATFORM" = "linux/mips64le"; then \
apt-get install golang; \
else \
curl -s -k $go_pkg_url -o go.tar.gz; \
tar -C /usr/local -xzf go.tar.gz; \
rm go.tar.gz; \
fi;
RUN curl -s -k -L https://github.com/Kitware/CMake/releases/download/v3.17.3/cmake-3.17.3.tar.gz -o cmake-3.17.3.tar.gz && tar -xzf cmake-3.17.3.tar.gz
WORKDIR /cmake-3.17.3
RUN ./bootstrap && make -j8 && make install
WORKDIR /
RUN curl -s -k $go_pkg_url -o go.tar.gz && \
tar -C /usr/local -xzf go.tar.gz && \
rm go.tar.gz
RUN groupadd -g 1000 jenkins-build && useradd -u 1000 -g 1000 jenkins-build
RUN chmod 777 /home && mkdir -p /home/jenkins-build && chown jenkins-build:jenkins-build /home/jenkins-build && chmod 777 /home/jenkins-build
CMD ["/usr/bin/sshd", "-D"]

View file

@ -1,12 +1,16 @@
FROM debian:stretch-20191224
FROM debian:stretch-20200607
ARG go_pkg_url
RUN apt-get update && apt-get -y install build-essential curl ca-certificates devscripts dh-systemd libssl-dev
RUN curl -s -k -L $go_pkg_url -o go.tar.gz && \
tar -C /usr/local -xzf go.tar.gz && \
rm go.tar.gz
RUN if test "$TARGETPLATFORM" = "linux/mips64le"; then \
apt-get install golang; \
else \
curl -s -k $go_pkg_url -o go.tar.gz; \
tar -C /usr/local -xzf go.tar.gz; \
rm go.tar.gz; \
fi;
RUN curl -s -k -L https://github.com/Kitware/CMake/releases/download/v3.17.3/cmake-3.17.3.tar.gz -o cmake-3.17.3.tar.gz && tar -xzf cmake-3.17.3.tar.gz
WORKDIR /cmake-3.17.3
RUN ./bootstrap && make -j8 && make install