forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
368667a
commit 1361467
Showing
15 changed files
with
109 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ services: | |
language: go | ||
|
||
go: | ||
- 1.5.2 | ||
- 1.5.3 | ||
|
||
os: | ||
- linux | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.5.2 | ||
FROM golang:1.5.3 | ||
MAINTAINER Nicolas Ruflin <ruflin@elastic.co> | ||
|
||
RUN set -x && \ | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ services: | |
language: go | ||
|
||
go: | ||
- 1.5.1 | ||
- 1.5.3 | ||
|
||
script: | ||
#- make pull-images | ||
|
2 changes: 1 addition & 1 deletion
2
dev-tools/packer/docker/xgo-image-deb6/beats-builder/Dockerfile
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM tudorg/xgo-deb6-1.5.1 | ||
FROM tudorg/xgo-deb6-1.5.3 | ||
|
||
MAINTAINER Tudor Golubenco <tudor@elastic.co> | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
|
||
docker build --rm=true -t tudorg/xgo-deb6-base base/ && \ | ||
docker build --rm=true -t tudorg/xgo-deb6-1.5.1 go-1.5.1/ && | ||
docker build --rm=true -t tudorg/xgo-deb6-1.5.3 go-1.5.3/ && | ||
docker build --rm=true -t tudorg/beats-builder-deb6 beats-builder |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM tudorg/xgo-1.5.1 | ||
FROM tudorg/xgo-1.5.3 | ||
|
||
MAINTAINER Tudor Golubenco <tudor@elastic.co> | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
|
||
docker build --rm=true -t tudorg/xgo-base base/ && \ | ||
docker build --rm=true -t tudorg/xgo-1.5.1 go-1.5.1/ && | ||
docker build --rm=true -t tudorg/xgo-1.5.3 go-1.5.3/ && | ||
docker build --rm=true -t tudorg/beats-builder beats-builder |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# Installs golang on Windows. | ||
# | ||
# # Run script: | ||
# .\install-go.ps1 -version 1.5.3 | ||
# | ||
# # Download and run script: | ||
# $env:GOVERSION = '1.5.3' | ||
# iex ((new-object net.webclient).DownloadString('SCRIPT_URL_HERE')) | ||
Param( | ||
[String]$version, | ||
[switch]$h = $false, | ||
[switch]$help = $false | ||
) | ||
|
||
$SCRIPT=$MyInvocation.MyCommand.Name | ||
|
||
function print_usage() { | ||
echo @" | ||
Download and install Golang on Windows. It sets the GOROOT environment | ||
variable and adds GOROOT\bin to the PATH environment variable. | ||
Usage: | ||
$SCRIPT -version 1.5.3 | ||
Options: | ||
-h | -help | ||
Print the help menu. | ||
-version | ||
Golang version to install. Required. | ||
"@ | ||
} | ||
|
||
if ($help -or $h) { | ||
print_usage | ||
exit 0 | ||
} | ||
if ($args -ne "") { | ||
Write-Error "Error: Unknown option $args" | ||
print_usage | ||
exit 1 | ||
} | ||
if ($version -eq "") { | ||
$version = $env:GOVERSION | ||
} | ||
if ($version -eq "" ) { | ||
Write-Error "Error: -version is required" | ||
print_usage | ||
exit 1 | ||
} | ||
|
||
$downloadDir = $env:TEMP | ||
$packageName = 'golang' | ||
$url32 = 'https://storage.googleapis.com/golang/go' + $version + '.windows-386.zip' | ||
$url64 = 'https://storage.googleapis.com/golang/go' + $version + '.windows-amd64.zip' | ||
$goroot = "C:\go$version" | ||
|
||
# Determine type of system | ||
if ($ENV:PROCESSOR_ARCHITECTURE -eq "AMD64") { | ||
$url = $url64 | ||
} else { | ||
$url = $url32 | ||
} | ||
|
||
if (Test-Path "$goroot\bin\go") { | ||
Write-Host "Go is installed to $goroot" | ||
exit | ||
} | ||
|
||
echo "Downloading $url" | ||
$zip = "$downloadDir\golang-$version.zip" | ||
if (!(Test-Path "$zip")) { | ||
$downloader = new-object System.Net.WebClient | ||
$downloader.DownloadFile($url, $zip) | ||
} | ||
|
||
echo "Extracting $zip to $goroot" | ||
if (Test-Path "$downloadDir\go") { | ||
rm -Force -Recurse -Path "$downloadDir\go" | ||
} | ||
Add-Type -AssemblyName System.IO.Compression.FileSystem | ||
[System.IO.Compression.ZipFile]::ExtractToDirectory("$zip", $downloadDir) | ||
mv "$downloadDir\go" $goroot | ||
|
||
echo "Setting GOROOT and PATH for Machine" | ||
[System.Environment]::SetEnvironmentVariable("GOROOT", "$goroot", "Machine") | ||
$p = [System.Environment]::GetEnvironmentVariable("PATH", "Machine") | ||
$p = "$goroot\bin;$p" | ||
[System.Environment]::SetEnvironmentVariable("PATH", "$p", "Machine") |