1
1
# 💐💚 coder-images: Optimized, and easy Docker images and Coder templates to use in your everyday work!
2
- # Copyright (c) 2022-2023 Noel Towa <[email protected] >
2
+ # Copyright (c) 2022-2024 Noel Towa <[email protected] >
3
3
#
4
4
# Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
# of this software and associated documentation files (the "Software"), to deal
19
19
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
20
# SOFTWARE.
21
21
22
- FROM ubuntu:lunar
22
+ FROM ubuntu:mantic
23
23
24
24
# For now, this will be `noel` as the user. You can extend this to be whatever you like.
25
25
ENV USERNAME=noel \
26
- USER_UID=1001 \
27
- USER_GID=1001
26
+ USER_UID=1001 \
27
+ USER_GID=1001
28
28
29
29
ENV DEBIAN_FRONTEND=noninteractive
30
30
31
31
# Install needed packages
32
32
RUN 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 \
35
35
unzip zip bash vim nano python3 python3-pip libarchive-tools gnupg lsb-release pkg-config \
36
36
libssl-dev tree htop jq zsh ripgrep exa bat protobuf-compiler xz-utils
37
37
38
38
RUN 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}
42
42
43
43
RUN git lfs install --system
44
44
RUN 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
49
49
50
50
RUN apt update && apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
51
51
RUN usermod -aG docker ${USERNAME}
52
52
53
53
# renovate: datasource=github-tags name=bazelbuild/buildtools
54
- ENV BAZEL_BUILDTOOLS_VERSION="v6.3.3 "
54
+ ENV BAZEL_BUILDTOOLS_VERSION="v6.4.0 "
55
55
56
56
# renovate: datasource=github-tags name=cli/cli
57
- ENV GITHUB_CLI_VERSION="2.32 .0"
57
+ ENV GITHUB_CLI_VERSION="2.42 .0"
58
58
59
59
# renovate: datasource=github-tags name=coder/coder
60
- ENV CODER_CLI_VERSION="2.1 .0"
60
+ ENV CODER_CLI_VERSION="2.6 .0"
61
61
62
62
# renovate: datasource=github-tags name=hashicorp/terraform
63
- ENV TERRAFORM_VERSION="1.5.5 "
63
+ ENV TERRAFORM_VERSION="1.6.6 "
64
64
65
65
# renovate: datasource=github-tags name=bazelbuild/bazelisk
66
- ENV BAZELISK_VERSION="1.18 .0"
66
+ ENV BAZELISK_VERSION="1.19 .0"
67
67
68
68
# renovate: datasource=github-tags name=kubernetes/kubernetes
69
- ENV KUBECTL_VERSION="1.28 .0"
69
+ ENV KUBECTL_VERSION="1.29 .0"
70
70
71
71
# renovate: datasource=github-tags name=helm/helm
72
- ENV HELM_VERSION="3.12 .3"
72
+ ENV HELM_VERSION="v3.13 .3"
73
73
74
74
RUN set -eux; \
75
75
arch="$(dpkg --print-architecture)" ; \
@@ -78,21 +78,21 @@ RUN set -eux; \
78
78
BAZEL_UNUSED_DEPS_DOWNLOAD_URL="https://github.com/bazelbuild/buildtools/releases/download/${BAZEL_BUILDTOOLS_VERSION}/unused_deps-linux-arm64" ; \
79
79
BAZEL_BUILDIFIER_DOWNLOAD_URL="https://github.com/bazelbuild/buildtools/releases/download/${BAZEL_BUILDTOOLS_VERSION}/buildifier-linux-arm64" ; \
80
80
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" ; \
82
82
TERRAFORM_DOWNLOAD_URL="https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_arm64.zip" ; \
83
83
BAZELISK_DOWNLOAD_URL="https://github.com/bazelbuild/bazelisk/releases/download/${BAZELISK_VERSION}/bazelisk-linux-arm64" ; \
84
84
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" ; \
86
86
HELM_DOWNLOAD_URL="https://get.helm.sh/helm-${HELM_VERSION}-linux-arm64.tar.gz" ; \
87
87
;; \
88
88
amd64|x86_64) \
89
89
BAZEL_UNUSED_DEPS_DOWNLOAD_URL="https://github.com/bazelbuild/buildtools/releases/download/${BAZEL_BUILDTOOLS_VERSION}/unused_deps-linux-amd64" ; \
90
90
BAZEL_BUILDIFIER_DOWNLOAD_URL="https://github.com/bazelbuild/buildtools/releases/download/${BAZEL_BUILDTOOLS_VERSION}/buildifier-linux-amd64" ; \
91
91
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" \
93
93
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" \
96
96
KUBECTL_DOWNLOAD_URL="https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" ; \
97
97
HELM_DOWNLOAD_URL="https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz" ; \
98
98
;; \
0 commit comments