Page Menu
Home
Search
Configure Global Search
Log In
Files
F14209201
build-via-docker.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
690 B
Subscribers
None
build-via-docker.sh
View Options
#!/bin/bash -e
GID
=
$(
id --group
)
# Use Docker to get Go in a way that allows overwriting the
# standard library with statically linked versions.
docker run -i --rm
\
-v
$(
pwd
)
:/docker
\
-v
"
${
GOPATH
}
:/go-local"
\
--env
GOPATH
=
/go-local
\
golang /bin/bash -e
<< EOT
go version
set -x
cd \${GOPATH}/src/flamenco-manager
function build {
export GOOS=\$1
export GOARCH=\$2
export SUFFIX=\$3
TARGET=flamenco-manager-\$GOOS-\$GOARCH\$SUFFIX
echo "Building \$TARGET"
go get -a -ldflags '-s'
go build -o /docker/\$TARGET
chown $UID:$GID /docker/\$TARGET
}
export CGO_ENABLED=0
build linux amd64
build windows amd64 .exe
build darwin amd64
EOT
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Tue, Jan 31, 2:26 PM (2 d)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
34/45/4cb63ea024d66420f31f2aae49bb
Attached To
rFM Flamenco Manager
Event Timeline
Log In to Comment