-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement
iotedge check
to perform basic tests for common issues (#…
…1051) Cherry-pick from master of: - 22ef977 Implement `iotedge check` to perform basic tests for common issues (#777) - f7e820f `iotedge check` improvements (#926) - 63dc883 `iotedge check` improvements part 2 (#1018)
- Loading branch information
Showing
53 changed files
with
3,269 additions
and
338 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,46 @@ | ||
# Copyright (c) Microsoft. All rights reserved. | ||
|
||
<# | ||
# Builds and publishes to target/publish/ the iotedge-diagnostics binary and its associated dockerfile | ||
#> | ||
|
||
$ErrorActionPreference = 'Continue' | ||
|
||
. (Join-Path $PSScriptRoot 'util.ps1') | ||
|
||
Assert-Rust | ||
|
||
$cargo = Get-CargoCommand | ||
$ManifestPath = Get-Manifest | ||
|
||
$versionInfoFilePath = Join-Path $env:BUILD_REPOSITORY_LOCALPATH 'versionInfo.json' | ||
$env:VERSION = Get-Content $versionInfoFilePath | ConvertFrom-JSON | % version | ||
$env:NO_VALGRIND = 'true' | ||
|
||
$originalRustflags = $env:RUSTFLAGS | ||
$env:RUSTFLAGS += ' -C target-feature=+crt-static' | ||
Write-Host "$cargo build -p iotedge-diagnostics --release --manifest-path $ManifestPath" | ||
Invoke-Expression "$cargo build -p iotedge-diagnostics --release --manifest-path $ManifestPath" | ||
if ($originalRustflags -eq '') { | ||
Remove-Item Env:\RUSTFLAGS | ||
} | ||
else { | ||
$env:RUSTFLAGS = $originalRustflags | ||
} | ||
if ($LastExitCode) { | ||
Throw "cargo build failed with exit code $LastExitCode" | ||
} | ||
|
||
$ErrorActionPreference = 'Stop' | ||
|
||
$publishFolder = [IO.Path]::Combine($env:BUILD_BINARIESDIRECTORY, 'publish', 'azureiotedge-diagnostics') | ||
|
||
New-Item -Type Directory $publishFolder | ||
|
||
Copy-Item -Recurse ` | ||
([IO.Path]::Combine($env:BUILD_REPOSITORY_LOCALPATH, 'edgelet', 'iotedge-diagnostics', 'docker')) ` | ||
([IO.Path]::Combine($publishFolder, 'docker')) | ||
|
||
Copy-Item ` | ||
([IO.Path]::Combine($env:BUILD_REPOSITORY_LOCALPATH, 'edgelet', 'target', 'release', 'iotedge-diagnostics.exe')) ` | ||
([IO.Path]::Combine($publishFolder, 'docker', 'windows', 'amd64')) |
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
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,26 @@ | ||
[package] | ||
name = "edgelet-config" | ||
version = "0.1.0" | ||
authors = ["Azure IoT Edge Devs"] | ||
publish = false | ||
|
||
[dependencies] | ||
base64 = "0.9" | ||
config = "0.8" | ||
failure = "0.1" | ||
log = "0.4" | ||
regex = "0.2" | ||
serde = "1.0" | ||
serde_derive = "1.0" | ||
serde_json = "1.0" | ||
sha2 = "0.7.0" | ||
url = "1.7" | ||
url_serde = "0.2" | ||
|
||
edgelet-core = { path = "../edgelet-core" } | ||
edgelet-utils = { path = "../edgelet-utils" } | ||
|
||
[dev_dependencies] | ||
tempdir = "0.3.7" | ||
|
||
edgelet-docker = { path = "../edgelet-docker" } |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.