2022-11-18 16:06:40 +03:00
|
|
|
FROM alpine:3.17 AS builder
|
2021-12-11 21:23:30 +03:00
|
|
|
WORKDIR /tmp
|
2021-12-15 16:22:29 +03:00
|
|
|
ARG hurl_latest_version
|
2022-11-30 18:46:43 +03:00
|
|
|
RUN apk add --no-cache git=* jq=* curl=* cargo=* gcc=* libffi-dev=* libxml2-dev=* libxml2-utils=* openssl-dev=* && \
|
|
|
|
git clone --quiet --depth 1 --branch ${hurl_latest_version} https://github.com/Orange-OpenSource/hurl.git
|
2021-12-11 21:23:30 +03:00
|
|
|
WORKDIR /tmp/hurl
|
|
|
|
RUN cargo build --release --verbose --bin hurl
|
2021-10-23 20:16:41 +03:00
|
|
|
|
2022-11-18 16:06:40 +03:00
|
|
|
FROM alpine:3.17 AS runner
|
2021-12-15 16:22:29 +03:00
|
|
|
ARG docker_build_date
|
|
|
|
ARG hurl_latest_version
|
2022-11-18 22:20:08 +03:00
|
|
|
LABEL "org.opencontainers.image.source"="https://github.com/Orange-OpenSource/hurl"
|
|
|
|
LABEL "org.opencontainers.image.description"="Hurl is a command line tool that runs HTTP requests defined in a simple plain text format"
|
2022-11-21 17:29:39 +03:00
|
|
|
LABEL "org.opencontainers.image.licenses"="Apache-2.0"
|
2021-12-15 16:22:29 +03:00
|
|
|
LABEL "com.orange.hurl.created"="${docker_build_date}"
|
|
|
|
LABEL "com.orange.hurl.authors"="Fabrice REIX, Jean Christophe AMIEL, Orange-OpenSource"
|
|
|
|
LABEL "com.orange.hurl.url"="https://hurl.dev"
|
|
|
|
LABEL "com.orange.hurl.documentation"="https://hurl.dev"
|
|
|
|
LABEL "com.orange.hurl.source"="https://github.com/Orange-OpenSource/hurl"
|
|
|
|
LABEL "com.orange.hurl.version"=${hurl_latest_version}
|
|
|
|
LABEL "com.orange.hurl.vendor"="Orange-OpenSource"
|
|
|
|
LABEL "com.orange.hurl.licenses"="Apache-2.0"
|
|
|
|
LABEL "com.orange.hurl.title"="Hurl"
|
|
|
|
LABEL "com.orange.hurl.description"="Hurl is a command line tool that runs HTTP requests defined in a simple plain text format"
|
2022-11-18 16:06:40 +03:00
|
|
|
LABEL "com.orange.hurl.base.name"="alpine:3.17"
|
2021-12-15 16:22:29 +03:00
|
|
|
COPY --from=builder /tmp/hurl/target/release/hurl /usr/bin/
|
2021-12-11 21:23:30 +03:00
|
|
|
COPY --from=builder /usr/lib/libxml2.so.2 /usr/lib/
|
|
|
|
COPY --from=builder /usr/lib/libgcc_s.so.1 /usr/lib/
|
|
|
|
COPY --from=builder /usr/lib/liblzma.so.5 /usr/lib/
|
2021-12-15 16:22:29 +03:00
|
|
|
ENTRYPOINT ["/usr/bin/hurl"]
|
2022-11-30 18:46:43 +03:00
|
|
|
|