Skip to content

feat: add lazygit, remove kubic, use dotfiles in dogfood image #5271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Dec 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions dogfood/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,6 @@ RUN apt-get update --quiet && apt-get install --yes \
docker-ce-cli \
packer \
terraform \
buildah \
conmon \
containernetworking-plugins \
crun \
podman \
skopeo \
fish \
unzip \
zstd && \
Expand All @@ -172,6 +166,12 @@ RUN apt-get update --quiet && apt-get install --yes \
RUN curl -L https://github.com/cli/cli/releases/download/v2.14.7/gh_2.14.7_linux_amd64.deb -o gh.deb && \
dpkg -i gh.deb

# Install Lazygit
# See https://github.com/jesseduffield/lazygit#ubuntu
RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v*([^"]+)".*/\1/') && \
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" && \
tar xf lazygit.tar.gz -C /usr/local/bin lazygit

# Install frontend utilities
RUN apt-get update && \
# Node.js (from nodesource) and Yarn (from yarnpkg)
Expand Down
32 changes: 0 additions & 32 deletions dogfood/files/etc/apt/preferences.d/kubic

This file was deleted.

1 change: 0 additions & 1 deletion dogfood/files/etc/apt/sources.list.d/kubic.list

This file was deleted.

Binary file removed dogfood/files/usr/share/keyrings/kubic.gpg
Binary file not shown.
2 changes: 1 addition & 1 deletion dogfood/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ resource "coder_agent" "dev" {
curl -fsSL https://code-server.dev/install.sh | sh
code-server --auth none --port 13337 &
sudo service docker start
if [ -f ~/personalize ]; then ~/personalize 2>&1 | tee ~/.personalize.log; fi
coder dotfiles -y 2>&1 | tee ~/.personalize.log
EOF
}

Expand Down