Skip to content

Commit

Permalink
Fixed build #2213
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Jan 8, 2024
1 parent 6e8404a commit 8ec07d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 2 additions & 1 deletion tools/docuum/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ WORKDIR /tmp/github.com/stepchowfun/docuum
ARG name
ARG version
RUN <<EOF
source "/etc/profile.d/cargo.sh"
git clone -q --config advice.detachedHead=false --depth 1 --branch "v${version}" https://github.com/stepchowfun/docuum .
export CARGO_HOME=/usr/local/cargo
export RUSTUP_HOME=/usr/local/rustup
export RUSTFLAGS='-C target-feature=+crt-static'
cargo build --release --target x86_64-unknown-linux-gnu
cp target/x86_64-unknown-linux-gnu/release/docuum "${prefix}/bin/"
Expand Down
9 changes: 3 additions & 6 deletions tools/guac/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#syntax=docker/dockerfile:1.6.0

FROM ghcr.io/uniget-org/tools/go:latest AS go
FROM ghcr.io/uniget-org/tools/make:latest AS make
FROM ghcr.io/uniget-org/tools/goreleaser:latest AS goreleaser

FROM nicholasdille/ubuntu:22.04 AS prepare
Expand All @@ -9,19 +10,15 @@ COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
/etc/profile.d/
SHELL [ "bash", "-clo", "errexit" ]
COPY --link --from=go / /usr/local/
COPY --link --from=make / /usr/local/
COPY --link --from=goreleaser / /usr/local/
RUN <<EOF
apt-get update
apt-get -y install --no-install-recommends \
make
EOF
WORKDIR /go/src/github.com/guacsec/guac
ARG name
ARG version
ENV CGO_ENABLED=0
RUN <<EOF
check-clone https://github.com/guacsec/guac "v${version}"
git clone -q --config advice.detachedHead=false --depth 1 --branch "v${version}" https://github.com/guacsec/guac .
export CGO_ENABLED=0
make build
cp bin/guac* "${prefix}/bin/"
EOF
Expand Down

0 comments on commit 8ec07d7

Please sign in to comment.