-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
94 lines (73 loc) · 2.68 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
FROM cloudposse/build-harness:1.6.0 as build-harness
FROM cloudposse/geodesic:1.3.5-alpine
RUN apk add --update dialog libqrencode
ENV DOCKER_IMAGE="vanvalenlab/kiosk-console"
ENV DOCKER_TAG="latest"
# Banner is what is displayed at startup and on every command line
# in order to distinguish this image from other similar images
ENV BANNER="deepcell"
ENV BANNER_FONT="Larry 3D 2.flf"
# Disable message of the day
ENV MOTD_URL=""
# Shell customization
# options for `less`. `R` allows ANSI color codes to be displayed while stripping out
# other control codes that can cause `less` to mess up the screen formatting
ENV LESS=R
# Enable `direnv`
# TODO: Use preferring YAML configuration files instead.
ENV DIRENV_ENABLED=true
# Silence make
ENV MAKE="make -s"
# AWS Region
ENV AWS_REGION="us-west-2"
# kops config
ENV KOPS_CLUSTER_NAME="cluster.k8s.local"
ENV KOPS_DNS_ZONE=${KOPS_CLUSTER_NAME}
ENV KOPS_STATE_STORE="s3://undefined"
ENV KOPS_STATE_STORE_REGION="us-west-2"
ENV KOPS_AVAILABILITY_ZONES="us-west-2a,us-west-2b,us-west-2c"
ENV KOPS_BASTION_PUBLIC_NAME="bastion"
ENV BASTION_MACHINE_TYPE="t2.medium"
ENV MASTER_MACHINE_TYPE="t2.medium"
ENV NODE_MACHINE_TYPE="t2.medium"
ENV NODE_MAX_SIZE="10"
ENV NODE_MIN_SIZE="1"
# GPU config
ENV GPU_NODE_MAX_SIZE="1"
ENV GPU_NODE_MIN_SIZE="0"
ENV GPU_PER_NODE="1"
# gcloud config
ENV KUBERNETES_VERSION="1.22"
ENV CLOUDSDK_CORE_PROJECT=""
ENV CLOUDSDK_CONTAINER_CLUSTER=""
ENV CLOUDSDK_BUCKET=""
ENV CLOUDSDK_COMPUTE_REGION=""
ENV GCP_SERVICE_ACCOUNT=${CLOUDSDK_CONTAINER_CLUSTER}@${CLOUDSDK_CORE_PROJECT}.iam.gserviceaccount.com
ENV GCP_PREDICTION_GPU_TYPE="nvidia-tesla-t4"
ENV GCP_TRAINING_GPU_TYPE="nvidia-tesla-v100"
ENV GKE_MACHINE_TYPE="n1-standard-1"
ENV GPU_MACHINE_TYPE="n1-highmem-2"
ENV CONSUMER_MACHINE_TYPE="n1-standard-2"
# gcp auth plugin is deprecated as of k8s 1.22, use the gke auth plugin instead
# https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
ENV USE_GKE_GCLOUD_AUTH_PLUGIN="false"
# Deployment config
ENV CLOUD_PROVIDER=""
ENV ELK_DEPLOYMENT_TOGGLE=""
ENV CERTIFICATE_MANAGER_ENABLED=""
ENV CERTIFICATE_MANAGER_CLUSTER_ISSUER="letsencrypt-staging"
# Filesystem entry for tfstate
RUN s3 fstab '${KOPS_STATE_STORE}' '/' '/s3'
# We do not need to access private git repos, so we can disable agent.
RUN rm -f /etc/profile.d/ssh-agent.sh /etc/profile.d/aws-vault.sh
# Copy from build-harness
COPY --from=build-harness /build-harness/ /build-harness/
# Place configurations in 'conf/' directory
COPY conf/ /conf/
# Add scripts to /usr/local/bin
COPY scripts/ /usr/local/bin/
# Copy rootfs overrides
COPY rootfs/ /
# Enable the menu
RUN ln -s /usr/local/bin/menu.sh /etc/profile.d/ΩΩ.menu.sh
ENV GEODESIC_WORKDIR=/conf