generated from pulumi/pulumi-provider-boilerplate
-
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.
Get the tests nearly running in docker (#144)
* Get the foundation set up * Get the tests nearly running in docker
- Loading branch information
1 parent
b7fbbeb
commit d231e51
Showing
4 changed files
with
44 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 |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
!bin/ | ||
!gen/ | ||
!provider/ | ||
!tests/ | ||
!examples/ | ||
!nuget/ |
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,33 @@ | ||
# syntax=docker/dockerfile:1 | ||
ARG SDK=dotnet | ||
FROM --platform=$BUILDPLATFORM pulumi/pulumi-${SDK}:3.129.0-debian | ||
ARG SDK=dotnet | ||
ARG TARGETOS | ||
ARG TARGETARCH | ||
|
||
WORKDIR /usr/local | ||
RUN curl --fail -L -o- https://go.dev/dl/go1.23.0.${TARGETOS}-${TARGETARCH}.tar.gz | tar -zxv | ||
ENV GOBIN=/usr/local/bin | ||
ENV PATH=${PATH}:/usr/local/go/bin:${GOBIN} | ||
RUN go install github.com/onsi/ginkgo/v2/ginkgo@v2 | ||
|
||
WORKDIR /work | ||
COPY gen/go.* ./gen/ | ||
COPY tests/go.* ./tests/ | ||
COPY provider/go.* ./provider/ | ||
|
||
WORKDIR /work/tests | ||
RUN go mod download | ||
|
||
WORKDIR /work | ||
COPY gen/ ./gen/ | ||
COPY examples/${SDK}/ ./examples/${SDK}/ | ||
COPY tests/ ./tests | ||
COPY provider/ ./provider/ | ||
COPY nuget/ /root/.pulumi-dev/nuget/ | ||
RUN dotnet nuget add source /root/.pulumi-dev/nuget/ --name docker | ||
COPY bin/pulumi-resource-baremetal ./bin/ | ||
|
||
WORKDIR /work/tests/sdk | ||
ENTRYPOINT [ "ginkgo" ] | ||
CMD [ "run", "-v", "--silence-skips" ] |
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