1
0
Fork
You've already forked please
0
Command line tool for Azure
  • Go 100%
2023年05月27日 12:47:03 +02:00
cmd Push first 2023年05月27日 12:45:58 +02:00
.gitignore Initial commit 2023年05月27日 10:18:34 +00:00
go.mod Push first 2023年05月27日 12:45:58 +02:00
go.sum Push first 2023年05月27日 12:45:58 +02:00
README.md Push first 2023年05月27日 12:47:03 +02:00

please

Hobby project to make a command line tool for Azure with commands I often use.

mkdir -p please/cmd
touch cmd/main.go
# go mod init codeberg.org/jacqueline/please
go get -d ./...
go get -u ./...

Run like so

/main -s <subscription-id> -g toys-rg,rg-petclinic-f8ba5,fud01-kube-rg -c delete

Example Dockerfile

# Build stageFROMgolang:1.20ASbuilderWORKDIR/app# Copy the source codeCOPY . .# Build the Go binaryRUN CGO_ENABLED=0 GOOS=linux go build -o myapp .# Final stageFROMalpine:latestWORKDIR/app# Copy the binary from the build stageCOPY --from=builder /app/myapp .# Run the binaryCMD ["./myapp"]