Skip to content

Commit 9e4d213

Browse files
authored
feat: add lazygit, remove kubic, use dotfiles in dogfood image (coder#5271)
1 parent ee74df3 commit 9e4d213

File tree

5 files changed

+7
-40
lines changed

5 files changed

+7
-40
lines changed

dogfood/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,6 @@ RUN apt-get update --quiet && apt-get install --yes \
153153
docker-ce-cli \
154154
packer \
155155
terraform \
156-
buildah \
157-
conmon \
158-
containernetworking-plugins \
159-
crun \
160-
podman \
161-
skopeo \
162156
fish \
163157
unzip \
164158
zstd && \
@@ -172,6 +166,12 @@ RUN apt-get update --quiet && apt-get install --yes \
172166
RUN curl -L https://github.com/cli/cli/releases/download/v2.14.7/gh_2.14.7_linux_amd64.deb -o gh.deb && \
173167
dpkg -i gh.deb
174168

169+
# Install Lazygit
170+
# See https://github.com/jesseduffield/lazygit#ubuntu
171+
RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v*([^"]+)".*/\1/') && \
172+
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" && \
173+
tar xf lazygit.tar.gz -C /usr/local/bin lazygit
174+
175175
# Install frontend utilities
176176
RUN apt-get update && \
177177
# Node.js (from nodesource) and Yarn (from yarnpkg)

dogfood/files/etc/apt/preferences.d/kubic

Lines changed: 0 additions & 32 deletions
This file was deleted.

dogfood/files/etc/apt/sources.list.d/kubic.list

Lines changed: 0 additions & 1 deletion
This file was deleted.
-723 Bytes
Binary file not shown.

dogfood/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ resource "coder_agent" "dev" {
3333
curl -fsSL https://code-server.dev/install.sh | sh
3434
code-server --auth none --port 13337 &
3535
sudo service docker start
36-
if [ -f ~/personalize ]; then ~/personalize 2>&1 | tee ~/.personalize.log; fi
36+
coder dotfiles -y 2>&1 | tee ~/.personalize.log
3737
EOF
3838
}
3939

0 commit comments

Comments
 (0)