Skip to content

Commit 1b3e75c

Browse files
authored
add watchexec to dogfood image (#3858)
* add watchexec to dogfood image This comes in handy quite frequently. * Fix dogfood image
1 parent aae5747 commit 1b3e75c

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

dogfood/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM rust:slim AS rust-utils
22
# Install rust helper programs
33
# ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
44
env CARGO_INSTALL_ROOT=/tmp/
5-
RUN cargo install exa bat ripgrep typos-cli
5+
RUN cargo install exa bat ripgrep typos-cli watchexec-cli
66

77
FROM ubuntu AS go
88

@@ -160,14 +160,18 @@ RUN apt-get update --quiet && apt-get install --yes \
160160
podman \
161161
skopeo \
162162
fish \
163-
gh \
164163
unzip \
165164
zstd && \
166165
# Delete package cache to avoid consuming space in layer
167166
apt-get clean && \
168167
# Configure FIPS-compliant policies
169168
update-crypto-policies --set FIPS
170169

170+
# See https://github.com/cli/cli/issues/6175#issuecomment-1235984381 for proof
171+
# the apt repository is unreliable
172+
RUN curl -L https://github.com/cli/cli/releases/download/v2.14.7/gh_2.14.7_linux_amd64.deb -o gh.deb && \
173+
dpkg -i gh.deb
174+
171175
# Install frontend utilities
172176
RUN apt-get update && \
173177
# Node.js (from nodesource) and Yarn (from yarnpkg)

dogfood/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
branch=$(shell git rev-parse --abbrev-ref HEAD)
44
build_tag=codercom/oss-dogfood:${branch}
55

6-
docker-build:
6+
build:
77
DOCKER_BUILDKIT=1 docker build . -t ${build_tag}
88

9-
docker-push: docker-build
9+
push: build
1010
docker push ${build_tag}

0 commit comments

Comments
 (0)