Skip to content

Commit cd65d33

Browse files
author
Hayden Young
committed
feat: changes
1 parent aa13fe8 commit cd65d33

File tree

4 files changed

+4636
-35
lines changed

4 files changed

+4636
-35
lines changed

Diff for: .devcontainer/Dockerfile

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
ARG UBUNTU_VERSION=latest
22
FROM ubuntu:${UBUNTU_VERSION}
33

4+
ARG BUILD_UID=1000
5+
6+
RUN useradd -ms /bin/bash build -u $BUILD_UID
7+
48
# Update apt-get and install various needed utilities
59
RUN apt-get update && \
610
apt-get install -y curl && \
@@ -14,18 +18,19 @@ RUN apt-get update && \
1418
# See README.md
1519

1620
# Install go
17-
ARG GO_VERSION=1.18.3
21+
ARG GO_VERSION=1.19.3
1822
RUN rm -rf /usr/local/go && \
1923
wget -O ${GO_VERSION}.tar.gz https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz && \
2024
tar -C /usr/local -xzf ${GO_VERSION}.tar.gz && \
2125
rm ${GO_VERSION}.tar.gz
2226

23-
ENV GOPATH=/root/go
27+
ENV GOPATH=/home/build/go
2428
ENV PATH=$PATH:/usr/local/go/bin
2529

2630
# Install go linter
2731
RUN mkdir -p $GOPATH/bin && \
28-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $GOPATH/bin v1.46.2
32+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $GOPATH/bin v1.46.2 && \
33+
chown -R build:build $GOPATH
2934

3035
ENV PATH=$PATH:$GOPATH/bin
3136

@@ -54,15 +59,13 @@ RUN apt-get install -y python3 && \
5459
apt-get install -y python3-setuptools
5560

5661
# Install .NET
57-
RUN wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && \
58-
dpkg -i packages-microsoft-prod.deb && \
59-
rm packages-microsoft-prod.deb
60-
6162
RUN apt-get update && \
6263
apt-get install -y apt-transport-https && \
6364
apt-get update && \
6465
apt-get install -y dotnet-sdk-6.0
6566

6667
# Install Pulumi
67-
RUN curl -fsSL https://get.pulumi.com | sh
68-
ENV PATH=$PATH:/root/.pulumi/bin
68+
RUN curl -fsSL https://get.pulumi.com | sh && mv /root/.pulumi /home/build/ && chown -R build:build /home/build/.pulumi
69+
ENV PATH=$PATH:/home/build/.pulumi/bin
70+
71+
USER build

Diff for: provider/cmd/pulumi-resource-netbox/Pulumi.yaml

Whitespace-only changes.

0 commit comments

Comments
 (0)