Quickly install go-alpine-armv7
2.4K
docker run \
-it \
--name go-alpine-armv7 \
cake233/go-alpine-armv7
docker exec -it go-alpine-armv7 bash
docker run \
-t \
--rm \
-v "$PWD"/go-project:/app \
-w /app \
-e GOOS=linux \
-e CGO_ENABLED=0 \
cake233/go-alpine-armv7 \
go build -trimpath --ldflags "-s -w -buildid=" -v -o main.bin
// go run readme.go
package main
import "fmt"
func main() {
var (
country, proxy_site string
)
country = "China"
proxy_site = "https://goproxy.cn"
fmt.Printf("If you live in\x1b[%dm %v. \x1b[0m\n", 32, country)
fmt.Printf("Then you can run the following\x1b[%dm commands. \x1b[0m\n", 31)
fmt.Println("go env -w GO111MODULE=on")
fmt.Printf("go env -w GOPROXY=%v,direct\n", proxy_site)
}
[main]
name = "go"
tag = ["alpine", "2024-02-26", "musl-libc", "musl"]
os = "alpine"
release = "stable"
arch = "armhf"
platform = "linux/arm/v7"
xorg_or_wayland = false
syntax_version = "0.0.0-alpha.4"
[file]
name = "go-musl_armhf_2024-02-26_12-06.tar.zst"
# This value can be used to verify the integrity of the file
sha256 = "2ed9387fbc2792f63804fda5cd701ee414c23b00afc024407afe79fc5d49ed61"
# zstd: [1-22]
zstd-level = 22
[file.size]
# Installed size ≈ tar-size
# Installed size is approximately equal to the size of the tar file
tar = "238M"
tar_bytes = 248793600
# Space occupied ≈ tar-size + zstd-size
# You will need to prepare a large enough space before installation.
zstd = "41M"
zstd_bytes = 42286162
[compatibility]
compatible_mode = true
previous_version = "latest02"
# The value is &str, not int
previous_date = "20231127"
previous_tag = "2023-11-27"
previous_file = "go-musl_armhf_2023-11-27_12-06-rootfs.tar.zst"
previous_sha256 = "b526094b211062849f45d1cf4bee4f1eed5127547966d56ce50883f751d5f189"
current_version = "latest01"
current_date = "20240226"
old_file = "go-musl_armhf_2023-11-13_12-06-rootfs.tar.zst"
old_sha256 = "0efa788337d9d1cf3c7e7c5bcd5a8a0e3c88d6137b9bdcb97b8924eb49a6d411"
# edition 2021
# DISTRO_NAME=go_armhf
# ROOTFS_FILE=go-musl_armhf_2024-02-26_12-06-rootfs.tar.zst
# SHA256SUM=2ed9387fbc2792f63804fda5cd701ee414c23b00afc024407afe79fc5d49ed61
# BUILD_DATE=20240226
# BUILD_TAG=2024-02-26
# STATUS=completed
# VERSION=latest01
# END_TIME=12:06
[time]
format = "rfc-3339"
zone = "UTC"
date = 2024-02-26
begin = 2024-02-26 12:02:32.243911340+00:00
start-sync_0 = 12:03:35
start-zstd = 12:03:41
start-sync_1 = 12:05:56
end-sync_1 = 12:06:02
end = 2024-02-26 12:06:02.891958853+00:00
[server]
repo = "cake233/go-alpine-armv7"
[server.node1]
name = "cn"
current = false
previous = false
in_sync = false
split = false
[server.node2]
name = "tmoe"
current = true
previous = true
in_sync = false
split = false
[server.node3]
name = "azure"
current = true
previous = true
in_sync = false
split = false
[server.node4]
name = "docker"
current = true
# Environment variables (●>ω<●)
[env]
LANG = "C.UTF-8"
PATH = "/go/bin:/usr/local/go/bin${PATH:+:${PATH}}"
GOPATH = "/go"
[version]
ldd = 'musl libc (armhf) Version 1.2.4_git20230717'
go = 'go version go1.22.0 linux/arm'
gofmt = '/usr/local/go/bin/gofmt: go1.22.0'
[other]
workdir = "/go"
Content type
Image
Digest
sha256:8bae33393…
Size
74.9 MB
Last updated
almost 3 years ago
docker pull cake233/go-alpine-armv7