mirror of
https://github.com/mudler/luet.git
synced 2025-07-12 06:38:16 +00:00
Instead of using gox on one side and an action to release, we can merge them together with goreleaser which will build for extra targets (arm, mips if needed in the future) and it also takes care of creating checksums, a source archive, and a changelog and creating a release with all the artifacts. All binaries should respect the old naming convention, so any scripts out there should still work. Signed-off-by: Itxaka <igarcia@suse.com>
52 lines
1.5 KiB
Docker
52 lines
1.5 KiB
Docker
#
|
|
# This Dockerfile builds a recent curl with HTTP/2 client support, using
|
|
# a recent nghttp2 build.
|
|
#
|
|
# See the Makefile for how to tag it. If Docker and that image is found, the
|
|
# Go tests use this curl binary for integration tests.
|
|
#
|
|
|
|
FROM ubuntu:trusty
|
|
|
|
RUN apt-get update && \
|
|
apt-get upgrade -y && \
|
|
apt-get install -y git-core build-essential wget
|
|
|
|
RUN apt-get install -y --no-install-recommends \
|
|
autotools-dev libtool pkg-config zlib1g-dev \
|
|
libcunit1-dev libssl-dev libxml2-dev libevent-dev \
|
|
automake autoconf
|
|
|
|
# The list of packages nghttp2 recommends for h2load:
|
|
RUN apt-get install -y --no-install-recommends make binutils \
|
|
autoconf automake autotools-dev \
|
|
libtool pkg-config zlib1g-dev libcunit1-dev libssl-dev libxml2-dev \
|
|
libev-dev libevent-dev libjansson-dev libjemalloc-dev \
|
|
cython python3.4-dev python-setuptools
|
|
|
|
# Note: setting NGHTTP2_VER before the git clone, so an old git clone isn't cached:
|
|
ENV NGHTTP2_VER 895da9a
|
|
RUN cd /root && git clone https://github.com/tatsuhiro-t/nghttp2.git
|
|
|
|
WORKDIR /root/nghttp2
|
|
RUN git reset --hard $NGHTTP2_VER
|
|
RUN autoreconf -i
|
|
RUN automake
|
|
RUN autoconf
|
|
RUN ./configure
|
|
RUN make
|
|
RUN make install
|
|
|
|
WORKDIR /root
|
|
RUN wget https://curl.se/download/curl-7.45.0.tar.gz
|
|
RUN tar -zxvf curl-7.45.0.tar.gz
|
|
WORKDIR /root/curl-7.45.0
|
|
RUN ./configure --with-ssl --with-nghttp2=/usr/local
|
|
RUN make
|
|
RUN make install
|
|
RUN ldconfig
|
|
|
|
CMD ["-h"]
|
|
ENTRYPOINT ["/usr/local/bin/curl"]
|
|
|