# Banner is what is displayed at startup and on every command line # in order to distinguish this image from other similar images ENV BANNER "geodesic" ENV MOTD_URL=http://geodesic.sh/motd # 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 # Our older Geodesic configurations relied on `direnv`, which we no longer recommend, # preferring YAML configuration files instead. ENV DIRENV_ENABLED=true # When using Terraform worksapces, you can enable special prompt support ENV GEODESIC_TF_PROMPT_ENABLED=true # Our older Geodesic configuration uses multiple Makefiles, like Makefile.tasks # and depends on this setting, however this setting is set by default by `direnv` # due to rootfs/conf/.envrc, but `direnv` is now disabled by default, too. # If you are using (and therefore enable) `direnv`, consider the advantage # of using `direnv` to set MAKE_INCLUDES, which is that it will only set # it for trusted directories under `/conf` and therefore it will not affect # `make` outside of this directory tree. ENV MAKE_INCLUDES="Makefile Makefile.*" # # Install Google Cloud SDK (requires Python) # This is separate so that updating it does not invalidate the Docker cache layer with all the packages installed above # https://cloud.google.com/sdk/docs/release-notes ARG GOOGLE_CLOUD_CLI_VERSION ENV CLOUDSDK_CONFIG=/etc/xdg_config_home/.config/gcloud/ RUN apt-get update && apt-get install -y google-cloud-cli=${GOOGLE_CLOUD_CLI_VERSION}-\* # gcloud config writes successful status updates to stderr, but we want to preserve # stderr for real errors in need of action. RUN { gcloud config set core/disable_usage_reporting true --installation && \ gcloud config set component_manager/disable_update_check true --installation && \ gcloud config set metrics/environment github_docker_image --installation; } 2>&1