Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Livepeer.Cloud SPE - add windows build #3366

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,5 @@ docker:

docker_mtx:
docker buildx build -f docker/Dockerfile.mediamtx docker/
docker-windows:
docker buildx build --build-arg='BUILD_TAGS=mainnet,experimental' -f docker/Dockerfile.windows .
26 changes: 26 additions & 0 deletions docker/Dockerfile.windows
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM ubuntu:22.04 as builder
WORKDIR /root/
ENV GOOS=windows
ENV GOARCH=amd64
ENV DEBIAN_FRONTEND=noninteractive
ENV PATH=$PATH:/usr/local/go/bin
ENV GO111MODULE=on
ENV CGO_ENABLED=1
ENV CGO_LDFLAGS="-L/usr/x86_64-w64-mingw32/lib -lz"
ENV PKG_CONFIG_PATH=~/compiled/lib/pkgconfig
ENV BUILD_TAGS=mainnet,experimental

RUN apt-get update && apt-get upgrade -y && apt-get install -y zip curl binutils build-essential pkg-config nasm clang git make autoconf automake patch libtool texinfo zip wget mingw-w64 protobuf-compiler-grpc golang-goprotobuf-dev yasm mockgen zlib1g-dev

RUN wget https://zlib.net/fossils/zlib-1.2.11.tar.gz
RUN tar -xvf zlib-1.2.11.tar.gz && \
cd zlib-1.2.11 && \
CC=x86_64-w64-mingw32-gcc ./configure --prefix=/usr/x86_64-w64-mingw32 --static && \
make && \
make install

RUN wget https://go.dev/dl/go1.21.6.linux-amd64.tar.gz
RUN rm -rf /usr/local/go && tar -C /usr/local -xzf go1.21.6.linux-amd64.tar.gz
COPY . .
RUN ./install_ffmpeg.sh
RUN PKG_CONFIG_PATH=~/compiled/lib/pkgconfig make livepeer livepeer_cli
Loading