-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added dockerfiles and additional instructions to each tool
- Loading branch information
1 parent
0fae34e
commit 818df03
Showing
6 changed files
with
105 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.21-cbl-mariner2.0 AS build | ||
|
||
COPY ./lib /workdir/lib | ||
|
||
COPY ./samples/anomaly-detection /workdir/samples/anomaly-detection | ||
|
||
WORKDIR /workdir/samples/anomaly-detection | ||
|
||
RUN go mod download | ||
|
||
RUN go install github.com/magefile/mage@latest | ||
|
||
RUN mage ci | ||
|
||
RUN go build -o ./bin/anomaly-detection ./cmd/anomaly-detection | ||
|
||
EXPOSE 2112 | ||
|
||
CMD [ "/bin/anomaly-detection" ] |
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,21 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
//go:build mage | ||
|
||
package main | ||
|
||
import ( | ||
//mage:import | ||
"github.com/explore-iot-ops/lib/mage" | ||
) | ||
|
||
func CI() error { | ||
return mage.CI( | ||
"github.com/explore-iot-ops/samples/anomaly-detection/", | ||
map[string]any{"cmd": nil}, | ||
3000, | ||
0.00, | ||
0.00, | ||
) | ||
} |
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,21 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.21-cbl-mariner2.0 AS build | ||
|
||
COPY ./lib /workdir/lib | ||
|
||
COPY ./samples/http-grpc-shift-calculation /workdir/samples/http-grpc-shift-calculation | ||
|
||
WORKDIR /workdir/samples/http-grpc-shift-calculation | ||
|
||
RUN go mod download | ||
|
||
RUN go install github.com/magefile/mage@latest | ||
|
||
RUN mage ci | ||
|
||
RUN go build -o ./bin/http-grpc-shift-calculation ./cmd/http-grpc-shift-calculation | ||
|
||
EXPOSE 2112 | ||
|
||
CMD [ "/bin/http-grpc-shift-calculation" ] |
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,21 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
//go:build mage | ||
|
||
package main | ||
|
||
import ( | ||
//mage:import | ||
"github.com/explore-iot-ops/lib/mage" | ||
) | ||
|
||
func CI() error { | ||
return mage.CI( | ||
"github.com/explore-iot-ops/samples/http-grpc-shift-calculation/", | ||
map[string]any{"cmd": nil}, | ||
3000, | ||
0.00, | ||
0.00, | ||
) | ||
} |