generated from pulumi/pulumi-tf-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More generated workflows & related files from pulumi/ci-mgmt
- Loading branch information
Showing
12 changed files
with
126 additions
and
114 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
template: external-bridged-provider | ||
provider: acme | ||
organization: pulumiverse | ||
major-version: 0 | ||
|
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,66 +1,12 @@ | ||
ARG UBUNTU_VERSION=latest | ||
FROM ubuntu:${UBUNTU_VERSION} | ||
|
||
# Update apt-get and install various needed utilities | ||
RUN apt-get update && \ | ||
apt-get install -y curl && \ | ||
apt-get install -y wget && \ | ||
apt-get install -y xz-utils && \ | ||
apt-get install -y make && \ | ||
apt-get install -y gcc && \ | ||
apt-get install -y git | ||
|
||
# Install bridged provider prerequisites | ||
# See README.md | ||
|
||
# Install go | ||
ARG GO_VERSION=1.20 | ||
RUN rm -rf /usr/local/go && \ | ||
wget -O ${GO_VERSION}.tar.gz https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz && \ | ||
tar -C /usr/local -xzf ${GO_VERSION}.tar.gz && \ | ||
rm ${GO_VERSION}.tar.gz | ||
|
||
ENV GOPATH=/root/go | ||
ENV PATH=$PATH:/usr/local/go/bin | ||
|
||
# Install go linter | ||
RUN mkdir -p $GOPATH/bin && \ | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $GOPATH/bin v1.46.2 | ||
|
||
ENV PATH=$PATH:$GOPATH/bin | ||
|
||
# Install pulumictl | ||
ARG PULUMICTL_VERSION=v0.0.32 | ||
RUN rm -rf /usr/local/bin/pulumictl && \ | ||
wget -O pulumictl.${PULUMICTL_VERSION}.tar.gz https://github.com/pulumi/pulumictl/releases/download/${PULUMICTL_VERSION}/pulumictl-${PULUMICTL_VERSION}-linux-amd64.tar.gz && \ | ||
tar -C /usr/local/bin -xzf pulumictl.${PULUMICTL_VERSION}.tar.gz | ||
|
||
# Install nodejs | ||
ARG NODEJS_VERSION=v16.16.0 | ||
ARG NODEJS_PKG=node-${NODEJS_VERSION}-linux-x64 | ||
ARG NODEJS_TARBALL=${NODEJS_PKG}.tar.xz | ||
RUN rm -rf /usr/local/node && \ | ||
wget -O ${NODEJS_TARBALL} https://nodejs.org/dist/${NODEJS_VERSION}/${NODEJS_TARBALL} && \ | ||
tar -C /usr/local -xf ${NODEJS_TARBALL} && \ | ||
mv /usr/local/${NODEJS_PKG} /usr/local/node | ||
|
||
ENV PATH=$PATH:/usr/local/node/bin | ||
|
||
# Install yarn | ||
RUN npm install --global yarn | ||
|
||
# Install python and related items | ||
RUN apt-get install -y python3 && \ | ||
apt-get install -y python3-setuptools | ||
|
||
# https://stackoverflow.com/questions/73753672/a-fatal-error-occurred-the-folder-usr-share-dotnet-host-fxr-does-not-exist | ||
RUN apt-get remove dotnet* && \ | ||
apt-get remove aspnetcore* && \ | ||
apt-get remove netstandard& | ||
|
||
RUN apt-get update && \ | ||
apt-get install dotnet-sdk-6.0 -y | ||
|
||
# Install Pulumi | ||
RUN curl -fsSL https://get.pulumi.com | sh | ||
ENV PATH=$PATH:/root/.pulumi/bin | ||
FROM jetpackio/devbox:latest | ||
|
||
# Installing your devbox project | ||
WORKDIR /code | ||
COPY devbox.json devbox.json | ||
COPY devbox.lock devbox.lock | ||
RUN sudo chown -R "${DEVBOX_USER}:${DEVBOX_USER}" /code | ||
|
||
|
||
RUN devbox run -- echo "Installed Packages." | ||
|
||
RUN devbox shellenv --init-hook >> ~/.profile |
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,8 +1,16 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.3/containers/hugo | ||
{ | ||
"name": "TFProvider", | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
} | ||
{ | ||
"name": "Devbox Remote Container", | ||
"build": { | ||
"dockerfile": "./Dockerfile", | ||
"context": ".." | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": {}, | ||
"extensions": [ | ||
"jetpack-io.devbox" | ||
] | ||
} | ||
}, | ||
"remoteUser": "devbox" | ||
} |
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
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"packages": [ | ||
"yarn@latest", | ||
"pulumictl@latest", | ||
"[email protected].", | ||
"nodejs@20.", | ||
"[email protected]", | ||
"[email protected].", | ||
"[email protected]", | ||
"curl@8" | ||
], | ||
"shell": { | ||
"init_hook": [ | ||
"export PATH=\"$(pwd)/bin/:$PATH\"" | ||
], | ||
"scripts": { | ||
"test": [ | ||
"echo \"Error: no test specified\" && exit 1" | ||
] | ||
} | ||
} | ||
} |
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 @@ | ||
{} |