-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from datalust/dev
5.0 Maintenance Release
- Loading branch information
Showing
13 changed files
with
110 additions
and
8 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
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,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<SeqRuntimeTargetsImported>true</SeqRuntimeTargetsImported> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(SeqCliRid)' == 'win-x64' Or ('$(SeqCliRid)' == '' And '$([MSBuild]::IsOsPlatform(`WINDOWS`))' == 'true')"> | ||
<IsWindows>true</IsWindows> | ||
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(SeqCliRid)' == 'linux-x64' Or '$(SeqCliRid)' == 'linux-x64' Or ('$(SeqCliRid)' == '' And '$([MSBuild]::IsOsPlatform(`LINUX`))' == 'true')"> | ||
<IsLinux>true</IsLinux> | ||
<IsUnix>true</IsUnix> | ||
<DefineConstants>$(DefineConstants);LINUX;UNIX</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(SeqCliRid)' == 'osx-x64' Or ('$(SeqCliRid)' == '' And '$([MSBuild]::IsOsPlatform(`OSX`))' == 'true')"> | ||
<IsMacOS>true</IsMacOS> | ||
<IsUnix>true</IsUnix> | ||
<DefineConstants>$(DefineConstants);MACOS;UNIX</DefineConstants> | ||
</PropertyGroup> | ||
</Project> |
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 @@ | ||
seqcli.tar.gz |
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,25 @@ | ||
# based on: https://github.com/dotnet/dotnet-docker/blob/master/2.0/runtime-deps/jessie/amd64/Dockerfile | ||
|
||
FROM ubuntu:18.04 | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
liblmdb-dev \ | ||
libc6 \ | ||
libgcc1 \ | ||
libgssapi-krb5-2 \ | ||
libicu60 \ | ||
liblttng-ust0 \ | ||
libssl1.0.0 \ | ||
libstdc++6 \ | ||
zlib1g \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY run.sh /run.sh | ||
ADD seqcli.tar.gz /tmp/ | ||
RUN mv /tmp/seqcli-* /bin/seqcli | ||
|
||
ENTRYPOINT ["/run.sh"] | ||
|
||
LABEL Description="Seq" Vendor="Datalust Pty Ltd" |
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,6 @@ | ||
#!/bin/bash | ||
|
||
# Default arguments to those passed to the container | ||
args=$@ | ||
|
||
exec /bin/seqcli/seqcli $args |
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
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,25 @@ | ||
using System.Threading.Tasks; | ||
using Seq.Api; | ||
using SeqCli.EndToEnd.Support; | ||
using Serilog; | ||
using Xunit; | ||
|
||
namespace SeqCli.EndToEnd.ApiKey | ||
{ | ||
public class ApiKeyCreateTestCase : ICliTestCase | ||
{ | ||
public Task ExecuteAsync(SeqConnection connection, ILogger logger, CliCommandRunner runner) | ||
{ | ||
var exit = runner.Exec("apikey create", "-t Test"); | ||
Assert.Equal(0, exit); | ||
|
||
exit = runner.Exec("apikey list", "-t Test --no-color"); | ||
Assert.Equal(0, exit); | ||
|
||
var output = runner.LastRunProcess.Output; | ||
Assert.Contains("\"AssignedPermissions\":[\"Ingest\"]", output); | ||
|
||
return Task.CompletedTask; | ||
} | ||
} | ||
} |
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