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

This commit is contained in:
Joe Previte 2022-12-06 03:11:44 -07:00 committed by GitHub
parent ee74df3d07
commit 9e4d213c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 40 deletions

View File

@ -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 && \
@ -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)

View File

@ -1,32 +0,0 @@
# Ignore all packages from this repository by default
Package: *
Pin: origin download.opensuse.org
Pin-Priority: 1
# Dependencies of podman and buildah
Package: conmon
Pin: origin download.opensuse.org
Pin-Priority: 500
Package: containernetworking-plugins
Pin: origin download.opensuse.org
Pin-Priority: 500
Package: crun
Pin: origin download.opensuse.org
Pin-Priority: 500
# Buildah for building container images
Package: buildah
Pin: origin download.opensuse.org
Pin-Priority: 500
# Podman as a Docker alternative for running containers
Package: podman
Pin: origin download.opensuse.org
Pin-Priority: 500
# Skopeo for viewing container configuration and copying images
Package: skopeo
Pin: origin download.opensuse.org
Pin-Priority: 500

View File

@ -1 +0,0 @@
deb [signed-by=/usr/share/keyrings/kubic.gpg] https://plug-mirror.rcac.purdue.edu/opensuse/repositories/devel%3A/kubic%3A/libcontainers%3A/stable/xUbuntu_20.04/ /

View File

@ -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
}