Skip to content

Instantly share code, notes, and snippets.

@tindzk
Created April 7, 2024 12:21
Show Gist options
  • Select an option

  • Save tindzk/f1597f9faffee9cee337d8ee23b91d00 to your computer and use it in GitHub Desktop.

Select an option

Save tindzk/f1597f9faffee9cee337d8ee23b91d00 to your computer and use it in GitHub Desktop.

Revisions

  1. tindzk created this gist Apr 7, 2024.
    9 changes: 9 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    FROM golang:latest AS builder

    ENV GOARCH=arm64
    ENV GOOS=linux
    ENV CGO_ENABLED=0

    WORKDIR /build

    RUN go install go.universe.tf/netboot/cmd/pixiecore@latest
    13 changes: 13 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    # Building pixiecore for ARM64
    Build as follows:
    ```shell
    docker build -t pixiecore-builder .
    docker create --name pixiecore-temp pixiecore-builder
    docker cp pixiecore-temp:/go/bin/pixiecore $(pwd)/
    docker rm pixiecore-temp
    ```

    Afterwards, the binary can be run on the host system using this command:
    ```shell
    sudo ./pixiecore quick xyz --dhcp-no-bind
    ```