You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing with a Dockerfile that builds each in Linux:
FROM golang:1.22-bullseye AS builder
WORKDIR /app
COPY . .
RUN go mod download
RUN mkdir -p output
RUN CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o otdfctl-macos .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o otdfctl-linux .
# Mount volume for output
VOLUME /output
RUN cp otdfctl-linux ./output/otdfctl-linux
RUN cp otdfctl-macos ./output/otdfctl-macos
ENTRYPOINT ["/bin/bash"]
Exec into the container to inspect/manipulate binaries: docker run -ti --rm -v $(pwd)/output:/output go-cross-compile
Run the binary in Linux on MacOS: docker run --network host --rm -v $(pwd):/app -w /app ubuntu bash -c "./otdfctl "
All of the following are tested:
profiles
visibleThe text was updated successfully, but these errors were encountered: