diff --git a/buildInDocker.sh b/buildInDocker.sh deleted file mode 100755 index 89339d2..0000000 --- a/buildInDocker.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -# this script is used to build release binaries inside an older version of golang docker container -# This is cuz I run a rolling release distro (I use arch btw) and run the latest version of glibc -# However, many LTS distros run older versions of glibc and the binary will not launch in those distros. -# ref issue `https://github.com/ajayd-san/gomanagedocker/issues/8` -# - - -RELEASE=$1 -if [[ -z $1 ]]; -then - echo "No release version passed" - exit 1 -fi - -docker run --rm -v "$PWD":/src -w /src --env GOFLAGS="-buildvcs=false" gmd_builder:latest ./buildRelease.sh $RELEASE diff --git a/buildRelease.sh b/buildRelease.sh deleted file mode 100755 index 1e00f40..0000000 --- a/buildRelease.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash - -shopt -s extglob - -RELEASE=$1 -if [[ -z $1 ]]; -then - echo "No release version passed" - exit 1 -else - echo "Building release $RELEASE" -fi - -if [ -d ./releases/ ]; then - rm -fr ./releases/* -fi - -# linux -echo "Building linux:amd64" -env GOOS=linux GOARCH=amd64 go build -o ./releases/linux_amd64_$RELEASE/"gmd" github.com/ajayd-san/gomanagedocker - -echo "Building linux:arm64" -env GOOS=linux GOARCH=arm64 go build -o ./releases/linux_arm64_$RELEASE/"gmd" github.com/ajayd-san/gomanagedocker - -# MacOS -echo "Building darwin:amd64" -env GOOS=darwin GOARCH=amd64 go build -o ./releases/darwin_amd64_$RELEASE/"gmd" github.com/ajayd-san/gomanagedocker - -echo "Building darwin:arm64" -env GOOS=darwin GOARCH=arm64 go build -o ./releases/darwin_arm64_$RELEASE/"gmd" github.com/ajayd-san/gomanagedocker - - -# Windows -echo "Building windows:amd64" -env GOOS=windows GOARCH=amd64 go build -o ./releases/windows_amd64_$RELEASE/"gmd.exe" github.com/ajayd-san/gomanagedocker - -cd releases - -## make a tar ball to save space -tar czf gomanagedocker_linux_amd64_$RELEASE.tar.gz linux_amd64_$RELEASE -tar czf gomanagedocker_linux_arm64_$RELEASE.tar.gz linux_arm64_$RELEASE -tar czf gomanagedocker_darwin_amd64_$RELEASE.tar.gz darwin_amd64_$RELEASE -tar czf gomanagedocker_darwin_arm64_$RELEASE.tar.gz darwin_arm64_$RELEASE -tar czf gomanagedocker_windows_amd64_$RELEASE.tar.gz windows_amd64_$RELEASE - -## remove all files in releases that are not tar balls -rm -r !(*.tar.gz) diff --git a/builder.Dockerfile b/builder.Dockerfile deleted file mode 100644 index f00e972..0000000 --- a/builder.Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -# this dockerfile is to build the image the release version of gmd is compiled on. -# I do this cuz I want to build against an older version of glibc so that gmd can be run on older os installs as well. - -FROM golang:1-bullseye - -RUN apt-get update && apt-get install -y libx11-dev