11# 💐💚 coder-images: Optimized, and easy Docker images and Coder templates to use in your everyday work!
2- # Copyright (c) 2022-2023 Noel Towa <cutie@floofy.dev>
2+ # Copyright (c) 2022-2024 Noel Towa <cutie@floofy.dev>
33#
44# Permission is hereby granted, free of charge, to any person obtaining a copy
55# of this software and associated documentation files (the "Software"), to deal
1919# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2020# SOFTWARE.
2121
22- FROM ubuntu:lunar
22+ FROM ubuntu:mantic
2323
2424# For now, this will be `noel` as the user. You can extend this to be whatever you like.
2525ENV USERNAME=noel \
26- USER_UID=1001 \
27- USER_GID=1001
26+ USER_UID=1001 \
27+ USER_GID=1001
2828
2929ENV DEBIAN_FRONTEND=noninteractive
3030
3131# Install needed packages
3232RUN apt update && \
33- apt upgrade -y && \
34- apt install -y sudo git curl neofetch git-lfs ca-certificates \
33+ apt upgrade -y && \
34+ apt install -y sudo git curl neofetch git-lfs ca-certificates \
3535 unzip zip bash vim nano python3 python3-pip libarchive-tools gnupg lsb-release pkg-config \
3636 libssl-dev tree htop jq zsh ripgrep exa bat protobuf-compiler xz-utils
3737
3838RUN groupadd -g ${USER_GID} ${USERNAME} && \
39- useradd -rm -d /home/${USERNAME} -s /bin/bash -g ${USERNAME} -u ${USER_UID} ${USERNAME} && \
40- echo $USERNAME ALL=\( root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME && \
41- chown ${USER_UID}:${USER_GID} /home/${USERNAME}
39+ useradd -rm -d /home/${USERNAME} -s /bin/bash -g ${USERNAME} -u ${USER_UID} ${USERNAME} && \
40+ echo $USERNAME ALL=\( root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME && \
41+ chown ${USER_UID}:${USER_GID} /home/${USERNAME}
4242
4343RUN git lfs install --system
4444RUN mkdir -p /etc/apt/keyrings && \
45- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \
46- echo \
47- "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
48- $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
45+ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \
46+ echo \
47+ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
48+ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
4949
5050RUN apt update && apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
5151RUN usermod -aG docker ${USERNAME}
5252
5353# renovate: datasource=github-tags name=bazelbuild/buildtools
54- ENV BAZEL_BUILDTOOLS_VERSION="v6.3.3 "
54+ ENV BAZEL_BUILDTOOLS_VERSION="v6.4.0 "
5555
5656# renovate: datasource=github-tags name=cli/cli
57- ENV GITHUB_CLI_VERSION="2.32 .0"
57+ ENV GITHUB_CLI_VERSION="2.42 .0"
5858
5959# renovate: datasource=github-tags name=coder/coder
60- ENV CODER_CLI_VERSION="2.1 .0"
60+ ENV CODER_CLI_VERSION="2.6 .0"
6161
6262# renovate: datasource=github-tags name=hashicorp/terraform
63- ENV TERRAFORM_VERSION="1.5.5 "
63+ ENV TERRAFORM_VERSION="1.6.6 "
6464
6565# renovate: datasource=github-tags name=bazelbuild/bazelisk
66- ENV BAZELISK_VERSION="1.18 .0"
66+ ENV BAZELISK_VERSION="1.19 .0"
6767
6868# renovate: datasource=github-tags name=kubernetes/kubernetes
69- ENV KUBECTL_VERSION="1.28 .0"
69+ ENV KUBECTL_VERSION="1.29 .0"
7070
7171# renovate: datasource=github-tags name=helm/helm
72- ENV HELM_VERSION="3.12 .3"
72+ ENV HELM_VERSION="v3.13 .3"
7373
7474RUN set -eux; \
7575 arch="$(dpkg --print-architecture)" ; \
@@ -78,21 +78,21 @@ RUN set -eux; \
7878 BAZEL_UNUSED_DEPS_DOWNLOAD_URL="https://github.com/bazelbuild/buildtools/releases/download/${BAZEL_BUILDTOOLS_VERSION}/unused_deps-linux-arm64" ; \
7979 BAZEL_BUILDIFIER_DOWNLOAD_URL="https://github.com/bazelbuild/buildtools/releases/download/${BAZEL_BUILDTOOLS_VERSION}/buildifier-linux-arm64" ; \
8080 BAZEL_BUILDOZER_DOWNLOAD_URL="https://github.com/bazelbuild/buildtools/releases/download/${BAZEL_BUILDTOOLS_VERSION}/buildozer-linux-arm64" ; \
81- GITHUB_CLI_DOWNLOAD_URL="https://github.com/cli/cli/releases/download/GITHUB_CLI_VERSION}/gh_${GITHUB_CLI_VERSION}_linux_arm64.tar.gz" ; \
81+ GITHUB_CLI_DOWNLOAD_URL="https://github.com/cli/cli/releases/download/v${ GITHUB_CLI_VERSION}/gh_${GITHUB_CLI_VERSION}_linux_arm64.tar.gz" ; \
8282 TERRAFORM_DOWNLOAD_URL="https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_arm64.zip" ; \
8383 BAZELISK_DOWNLOAD_URL="https://github.com/bazelbuild/bazelisk/releases/download/${BAZELISK_VERSION}/bazelisk-linux-arm64" ; \
8484 KUBECTL_DOWNLOAD_URL="https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/arm64/kubectl" ; \
85- CODER_DOWNLOAD_URL="https://github.com/coder/coder/releases/download/${CODER_CLI_VERSION}/coder_${CODER_CLI_VERSION}_linux_arm64.tar.gz" ; \
85+ CODER_DOWNLOAD_URL="https://github.com/coder/coder/releases/download/v ${CODER_CLI_VERSION}/coder_${CODER_CLI_VERSION}_linux_arm64.tar.gz" ; \
8686 HELM_DOWNLOAD_URL="https://get.helm.sh/helm-${HELM_VERSION}-linux-arm64.tar.gz" ; \
8787 ;; \
8888 amd64|x86_64) \
8989 BAZEL_UNUSED_DEPS_DOWNLOAD_URL="https://github.com/bazelbuild/buildtools/releases/download/${BAZEL_BUILDTOOLS_VERSION}/unused_deps-linux-amd64" ; \
9090 BAZEL_BUILDIFIER_DOWNLOAD_URL="https://github.com/bazelbuild/buildtools/releases/download/${BAZEL_BUILDTOOLS_VERSION}/buildifier-linux-amd64" ; \
9191 BAZEL_BUILDOZER_DOWNLOAD_URL="https://github.com/bazelbuild/buildtools/releases/download/${BAZEL_BUILDTOOLS_VERSION}/buildozer-linux-amd64" ; \
92- GITHUB_CLI_DOWNLOAD_URL="https://github.com/cli/cli/releases/download/${GITHUB_CLI_VERSION}/gh_${GITHUB_CLI_VERSION}_linux_amd64.tar.gz" \
92+ GITHUB_CLI_DOWNLOAD_URL="https://github.com/cli/cli/releases/download/v ${GITHUB_CLI_VERSION}/gh_${GITHUB_CLI_VERSION}_linux_amd64.tar.gz" \
9393 TERRAFORM_DOWNLOAD_URL="https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" \
94- BAZELISK_DOWNLOAD_URL="https://github.com/bazelbuild/bazelisk/releases/download/${BAZELISK_VERSION}/bazelisk-linux-amd64" ; \
95- CODER_DOWNLOAD_URL="https://github.com/coder/coder/releases/download/${CODER_CLI_VERSION}/coder_${CODER_CLI_VERSION}_linux_amd64.tar.gz" \
94+ BAZELISK_DOWNLOAD_URL="https://github.com/bazelbuild/bazelisk/releases/download/v ${BAZELISK_VERSION}/bazelisk-linux-amd64" ; \
95+ CODER_DOWNLOAD_URL="https://github.com/coder/coder/releases/download/v ${CODER_CLI_VERSION}/coder_${CODER_CLI_VERSION}_linux_amd64.tar.gz" \
9696 KUBECTL_DOWNLOAD_URL="https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" ; \
9797 HELM_DOWNLOAD_URL="https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz" ; \
9898 ;; \
0 commit comments