Skip to content

Commit

Permalink
Converted to binary download #2213
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Jan 1, 2024
1 parent 7f15688 commit fedd062
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 19 deletions.
50 changes: 31 additions & 19 deletions tools/huber/Dockerfile.template
@@ -1,31 +1,43 @@
#syntax=docker/dockerfile:1.6.0

FROM ghcr.io/uniget-org/tools/rust:latest AS rust
#FROM ghcr.io/uniget-org/tools/rust:latest AS rust

FROM nicholasdille/ubuntu:22.04 AS prepare
COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
/etc/profile.d/ \
/etc/profile.d/
SHELL [ "bash", "-clo", "errexit" ]
COPY --from=rust / /usr/local/
ARG DEBIAN_FRONTEND=noninteractive
RUN <<EOF
apt-get update
apt-get -y install --no-install-recommends \
build-essential \
libarchive13 \
libarchive-dev \
libssl-dev \
pkg-config
EOF
WORKDIR /tmp/github.com/innobead/huber
#COPY --from=rust / /usr/local/
#ARG DEBIAN_FRONTEND=noninteractive
#RUN <<EOF
#apt-get update
#apt-get -y install --no-install-recommends \
# build-essential \
# libarchive13 \
# libarchive-dev \
# libssl-dev \
# liblzma-dev \
# libbz2-dev \
# libzstd-dev \
# nettle-dev \
# liblz4-dev \
# libxml2-dev \
# pkg-config
#EOF
#WORKDIR /tmp/github.com/innobead/huber
ARG name
ARG version
#RUN <<EOF
#git clone -q --config advice.detachedHead=false --depth 1 --branch "v${version}" https://github.com/innobead/huber .
#export CARGO_HOME=/usr/local/cargo
#export RUSTUP_HOME=/usr/local/rustup
#export RUSTFLAGS='-C target-feature=+crt-static -llzma -lbz2 -lzstd -lnettle -llz4 -lxml2'
#cargo build --target x86_64-unknown-linux-gnu --release --workspace --exclude=huber-generator
#cp target/x86_64-unknown-linux-gnu/release/huber "${prefix}/bin/"
#EOF
RUN <<EOF
git clone -q --config advice.detachedHead=false --depth 1 --branch "v${version}" https://github.com/innobead/huber .
export CARGO_HOME=/usr/local/cargo
export RUSTUP_HOME=/usr/local/rustup
export RUSTFLAGS='-C target-feature=+crt-static'
cargo build --target x86_64-unknown-linux-gnu --release --workspace --exclude=huber-generator
cp target/x86_64-unknown-linux-gnu/release/huber "${prefix}/bin/"
check-github-release-asset "innobead/huber" "v${version}" "huber-linux-${alt_arch}"
curl --silent --location --fail --output "${prefix}${target}/bin/huber" \
"https://github.com/innobead/huber/releases/download/v${version}/huber-linux-${alt_arch}"
chmod +x "${prefix}${target}/bin/huber"
EOF
5 changes: 5 additions & 0 deletions tools/huber/manifest.yaml
Expand Up @@ -11,6 +11,11 @@ tags:
- management
homepage: https://github.com/innobead/huber
description: Package Manager for GitHub repos
messages:
usage: |
Install the following packages:
- libarchive-dev
- http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb
renovate:
datasource: github-releases
package: innobead/huber
Expand Down

0 comments on commit fedd062

Please sign in to comment.