-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
68 lines (59 loc) · 2.43 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# syntax = docker/dockerfile:experimental
FROM ubuntu:bionic
LABEL description="Pulumi Build Container"
LABEL maintainer="[email protected]"
# Install various packages
RUN --mount=target=/build-scripts,type=bind,source=scripts \
--mount=target=/var/lib/apt/lists,type=cache \
--mount=target=/var/cache/apt,type=cache \
/build-scripts/install-packages.sh
# Install Go compiler and linter
RUN --mount=target=/build-scripts,type=bind,source=scripts \
GOLANG_VERSION=1.14 \
GOLANG_SHA256=08df79b46b0adf498ea9f320a0f23d6ec59e9003660b4c9c1ce8e5e2c6f823ca \
GOLANGCI_LINT_VERSION=1.18.0 \
/build-scripts/install-go.sh
# Install Node.js and Yarn
RUN --mount=target=/build-scripts,type=bind,source=scripts \
--mount=target=/var/lib/apt/lists,type=cache \
--mount=target=/var/cache/apt,type=cache \
NODE_VERSION=10.x \
NODE_DISTRO=bionic \
YARN_VERSION=1.21.1 \
/build-scripts/install-node.sh
# Install Python and accoutrements
RUN --mount=target=/build-scripts,type=bind,source=scripts \
--mount=target=/var/lib/apt/lists,type=cache \
--mount=target=/var/cache/apt,type=cache \
PYTHON_VERSION=3.7 \
PIPENV_VERSION=2018.11.26 \
AWSCLI_VERSION=1.17.9 \
WHEEL_VERSION=0.34.2 \
TWINE_VERSION=3.1.1 \
/build-scripts/install-python.sh
# Install Dotnet
RUN --mount=target=/build-scripts,type=bind,source=scripts \
--mount=target=/var/lib/apt/lists,type=cache \
--mount=target=/var/cache/apt,type=cache \
DOTNET_SDK_VERSION=3.1 \
/build-scripts/install-dotnet.sh
# Install Protocol Buffers compiler and various GRPC generators
RUN --mount=target=/build-scripts,type=bind,source=scripts \
PROTOC_VERSION=3.11.4 \
PROTOC_SHA256=6d0f18cd84b918c7b3edd0203e75569e0c8caecb1367bbbe409b45e28514f5be \
PROTOC_GEN_GO_VERSION=1.3.3 \
NODEJS_GRPC_VERSION=1.24.2 \
NODEJS_GRPC_TOOLS_VERSION=1.8.1 \
PYTHON_GRPCIO_VERSION=1.27.2 \
PYTHON_GRPCIO_TOOLS_VERSION=1.27.2 \
/build-scripts/install-protobuf-tools.sh
# Install Pulumi build tools
RUN --mount=target=/build-scripts,type=bind,source=scripts \
TF2PULUMI_VERSION=0.6.0 \
TF2PULUMI_SHA256=9a8fdfc590f8813a5ccaf1bfb1abba3064f109cce34f47fc66a34adaaa44c50f \
/build-scripts/install-pulumi-tools.sh
# Set various required environment variables
ENV GOPATH=/go \
PATH=/go/bin:/root/.pulumi/bin:/usr/local/go/bin:/root/.yarn/bin/:$PATH \
DOTNET_CLI_TELEMETRY_OPTOUT=1 \
DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1