-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 24.04 build and update some dependencies
- Loading branch information
1 parent
5884f89
commit a0bde6d
Showing
9 changed files
with
128 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
24.04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
24.04.20241002 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
noble-20241002 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
ARG TAG | ||
|
||
FROM --platform=$BUILDPLATFORM ghcr.io/cybozu/golang:1.23-jammy AS builder | ||
|
||
WORKDIR /go/src/github.com/fullstorydev/grpcurl | ||
ARG GRPCURL_VERSION=1.8.9 | ||
RUN curl -fsSL -o grpcurl.tar.gz "https://github.com/fullstorydev/grpcurl/archive/v${GRPCURL_VERSION}.tar.gz" \ | ||
&& tar -x -z --strip-components 1 -f grpcurl.tar.gz \ | ||
&& rm -f grpcurl.tar.gz \ | ||
&& GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -ldflags "-X \"main.version=${GRPCURL_VERSION}\"" -o /go/bin/grpcurl ./cmd/grpcurl | ||
|
||
FROM ghcr.io/cybozu/ubuntu:${TAG} | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
apache2-utils \ | ||
awscli \ | ||
bash-completion \ | ||
bind9-dnsutils \ | ||
binutils \ | ||
bsdmainutils \ | ||
expect \ | ||
file \ | ||
gdb \ | ||
iproute2 \ | ||
iputils-ping \ | ||
jq \ | ||
less \ | ||
lv \ | ||
mysql-client \ | ||
net-tools \ | ||
openssh-client \ | ||
perl-modules \ | ||
rclone \ | ||
rsync \ | ||
s3cmd \ | ||
smartmontools \ | ||
socat \ | ||
sqlite3 \ | ||
strace \ | ||
sysstat \ | ||
tcpdump \ | ||
telnet \ | ||
traceroute \ | ||
vim \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN setcap -r /usr/bin/ping | ||
|
||
COPY --from=builder /go/bin/grpcurl /usr/local/bin | ||
COPY --from=builder /go/src/github.com/fullstorydev/grpcurl/LICENSE /usr/local/grpcurl/LICENSE | ||
|
||
RUN adduser --disabled-password --gecos "" --uid 10000 cybozu | ||
|
||
CMD ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
ARG TAG | ||
|
||
FROM ghcr.io/cybozu/ubuntu:${TAG} | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
git \ | ||
jq \ | ||
libreadline-dev \ | ||
libssl-dev \ | ||
openssh-client \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ARG TARGETARCH | ||
ARG HUB_VERSION=2.14.2 | ||
ARG GH_VERSION=2.14.3 | ||
RUN curl -fsL -o /tmp/hub.tgz https://github.com/github/hub/releases/download/v${HUB_VERSION}/hub-linux-${TARGETARCH}-${HUB_VERSION}.tgz \ | ||
&& tar -C /tmp -xzf /tmp/hub.tgz \ | ||
&& /tmp/hub-linux-${TARGETARCH}-${HUB_VERSION}/install \ | ||
&& mkdir -p /usr/share/doc/hub \ | ||
&& cp /tmp/hub-linux-${TARGETARCH}-${HUB_VERSION}/LICENSE /usr/share/doc/hub/LICENSE \ | ||
&& rm -rf /tmp/hub-linux-${TARGETARCH}-${HUB_VERSION} /tmp/hub.tgz \ | ||
&& curl -fsL -o /tmp/gh.tgz https://github.com/cli/cli/releases/download/v${GH_VERSION}/gh_${GH_VERSION}_linux_${TARGETARCH}.tar.gz \ | ||
&& tar -C /tmp -xzf /tmp/gh.tgz \ | ||
&& cp /tmp/gh_${GH_VERSION}_linux_${TARGETARCH}/bin/gh /usr/local/bin \ | ||
&& mkdir -p /usr/share/doc/gh \ | ||
&& cp /tmp/gh_${GH_VERSION}_linux_${TARGETARCH}/LICENSE /usr/share/doc/gh/LICENSE \ | ||
&& rm -rf /tmp/gh_${GH_VERSION}_linux_${TARGETARCH} /tmp/gh.tgz | ||
|
||
CMD ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ARG TAG_MINIMAL | ||
|
||
FROM ubuntu:${TAG_MINIMAL} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
ARG TAG_MINIMAL | ||
|
||
FROM registry.k8s.io/pause:3.10 | ||
|
||
FROM ghcr.io/cybozu/ubuntu-minimal:${TAG_MINIMAL} | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
apt-transport-https \ | ||
apt-utils \ | ||
ca-certificates \ | ||
curl \ | ||
libreadline8 \ | ||
locales \ | ||
netbase \ | ||
openssl \ | ||
tzdata \ | ||
&& apt-get -y upgrade \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN locale-gen en_US.UTF-8 \ | ||
&& update-locale LANG=en_US.UTF-8 \ | ||
&& echo "Etc/UTC" > /etc/timezone \ | ||
&& dpkg-reconfigure -f noninteractive tzdata | ||
|
||
COPY --from=0 /pause /usr/local/bin/pause | ||
|
||
CMD ["/bin/bash"] |