This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Download latest qemu-w64-setup-*.exe from https://qemu.weilnetz.de/w64 | |
| Extract qemu-w64-setup-*.exe using 7-Zip to a directory named "qemu" | |
| Download Alpine ISO image (Extended) for x86_64 from https://alpinelinux.org/downloads/ | |
| Create disk image using "qemu-img create hd.img 10G" | |
| Copy start.bat next to ISO image and hd.img, adjust qemu path if required | |
| Start QEMU using start.bat | |
| (Let Alpine Linux boot from ISO) | |
| Login using "root" (no password) | |
| Start setup by entering "setup-alpine" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM golang:1.9 | |
| WORKDIR /go/src/github.com/purplebooth/example | |
| COPY . . | |
| RUN go build -ldflags "-linkmode external -extldflags -static" -a main.go | |
| FROM scratch | |
| COPY --from=0 /go/src/github.com/purplebooth/example/main /main | |
| CMD ["/main"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :: | |
| :: Aliases for windows command line | |
| :: | |
| :: Installation: | |
| :: | |
| :: - create a folder for your aliases (eg: ```c:\cmd-aliases```) | |
| :: - add that folder to your PATH variable | |
| :: - save this script as setalias.cmd on that folder | |
| :: - run "alias" to see usage | |
| :: |