Skip to content

Commit

Permalink
Merge pull request #1171 from cybozu/update-20231204
Browse files Browse the repository at this point in the history
Migrate CKE-related images to ghcr.io
  • Loading branch information
masa213f authored Dec 4, 2023
2 parents bf939d8 + 145ed5a commit ca301a1
Show file tree
Hide file tree
Showing 17 changed files with 56 additions and 56 deletions.
18 changes: 0 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -791,10 +791,6 @@ workflows:
- build:
name: build-contour
container-image: contour
- build:
name: build-coredns
container-image: coredns
scan: true
- build:
name: build-csi-attacher
container-image: csi-attacher
Expand Down Expand Up @@ -825,10 +821,6 @@ workflows:
requires:
- build-envoy
scan: true
- build:
name: build-etcd
container-image: etcd
scan: true
- build:
name: build-external-dns
container-image: external-dns
Expand Down Expand Up @@ -896,10 +888,6 @@ workflows:
container-image: storage-version-migration
dir: kube-storage-version-migrator
targets: initializer migrator trigger
- build:
name: build-kubernetes
container-image: kubernetes
scan: true
- build:
name: build-local-pv-provisioner
container-image: local-pv-provisioner
Expand Down Expand Up @@ -935,9 +923,6 @@ workflows:
name: build-opentelemetry-collector
container-image: opentelemetry-collector
scan: true
- build:
name: build-pause
container-image: pause
- build:
name: build-pomerium
container-image: pomerium
Expand Down Expand Up @@ -998,9 +983,6 @@ workflows:
- build:
name: build-unbound
container-image: unbound
- build:
name: build-unbound_exporter
container-image: unbound_exporter
- build:
name: build-vault
container-image: vault
Expand Down
41 changes: 27 additions & 14 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ jobs:
strategy:
matrix:
job:
- dir: "./bird"
container-image: "bird"
scan: "true"
- dir: "./coredns"
container-image: "coredns"
scan: "true"
- dir: "./etcd"
container-image: "etcd"
scan: "true"
- dir: "./fluent-bit"
container-image: "fluent-bit"
scan: "true"
- dir: "./golang-all/golang-1.20-focal"
container-image: "golang"
enable_arm64: true
Expand All @@ -28,32 +40,33 @@ jobs:
- dir: "./haproxy"
container-image: "haproxy"
scan: "true"
- dir: "./trust-manager"
container-image: "trust-manager"
- dir: "./stakater-reloader"
container-image: "stakater-reloader"
- dir: "./trust-packages"
container-image: "trust-packages"
- dir: "./pause"
container-image: "pause"
- dir: "./kubernetes"
container-image: "kubernetes"
scan: "true"
- dir: "./pod-delete-rate-limiter"
container-image: "pod-delete-rate-limiter"
make_test: true
- dir: "./spegel"
container-image: "spegel"
- dir: "./fluent-bit"
container-image: "fluent-bit"
scan: "true"
- dir: "./bird"
container-image: "bird"
scan: "true"
- dir: "./serf"
container-image: "serf"
scan: "true"
- dir: "./trust-manager"
container-image: "trust-manager"
- dir: "./trust-packages"
container-image: "trust-packages"
- dir: "./stakater-reloader"
container-image: "stakater-reloader"
- dir: "./spegel"
container-image: "spegel"
- dir: "./squid"
container-image: "squid"
scan: "true"
- dir: "./unbound"
container-image: "unbound"
scan: "true"
- dir: "./unbound_exporter"
container-image: "unbound_exporter"
- dir: "./vault"
container-image: "vault"
scan: "true"
Expand Down
5 changes: 3 additions & 2 deletions coredns/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/cybozu/golang:1.21-jammy AS build
FROM ghcr.io/cybozu/golang:1.21-jammy AS build

ARG COREDNS_VERSION=1.11.1

Expand All @@ -11,7 +11,8 @@ RUN curl -sSLf https://github.com/coredns/coredns/archive/v${COREDNS_VERSION}.ta
WORKDIR /go/src/github.com/coredns/coredns/
RUN make

FROM quay.io/cybozu/ubuntu:22.04
FROM ghcr.io/cybozu/ubuntu:22.04
LABEL org.opencontainers.image.source="https://github.com/cybozu/neco-containers"

COPY --from=build /go/src/github.com/coredns/coredns/LICENSE /usr/local/coredns/LICENSE
COPY --from=build /go/src/github.com/coredns/coredns/coredns /usr/local/coredns/bin/coredns
Expand Down
4 changes: 2 additions & 2 deletions coredns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

To launch server with specific config file.

$ docker run quay.io/cybozu/coredns:1.11 -v Corefile:/etc/coredns/Corefile -- \
$ docker run ghcr.io/cybozu/coredns:1.11 -v Corefile:/etc/coredns/Corefile -- \
-conf /etc/coredns/Corefile

## Docker images

Docker images are available on [Quay.io](https://quay.io/repository/cybozu/coredns)
Docker images are available on [ghcr.io](https://github.com/cybozu/neco-containers/pkgs/container/coredns)
2 changes: 1 addition & 1 deletion coredns/TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.1.1
1.11.1.2
5 changes: 3 additions & 2 deletions etcd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# etcd container

# Stage1: build from source
FROM quay.io/cybozu/golang:1.21-jammy AS build
FROM ghcr.io/cybozu/golang:1.21-jammy AS build

ARG ETCD_VERSION=3.5.10

Expand All @@ -14,7 +14,8 @@ WORKDIR /work/etcd
RUN ./build.sh

# Stage2: setup runtime container
FROM quay.io/cybozu/ubuntu:22.04
FROM ghcr.io/cybozu/ubuntu:22.04
LABEL org.opencontainers.image.source="https://github.com/cybozu/neco-containers"

COPY --from=build /work/etcd/bin /usr/local/etcd/bin
COPY --from=build /work/etcd/LICENSE /usr/local/etcd/LICENSE
Expand Down
8 changes: 4 additions & 4 deletions etcd/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
etcd-container
==============

[etcd](https://github.com/coreos/etcd) is a distributed reliable key-value
[etcd](https://github.com/etcd-io/etcd) is a distributed reliable key-value
store provided by CoreOS. This repository provides a Dockerfile which contains
`etcd` server and `etcdctl` for the client usage.

Expand All @@ -13,7 +13,7 @@ To launch `etcd` by `docker run`:
$ docker volume create etcd
$ docker run -p 2379:2379 -p 2380:2380 --name etcd-1 \
--mount type=volume,src=etcd,target=/var/lib/etcd \
quay.io/cybozu/etcd:3.5 \
ghcr.io/cybozu/etcd:3.5 \
--advertise-client-urls http://0.0.0.0:2379 \
--listen-client-urls http://0.0.0.0:2379

Expand All @@ -22,7 +22,7 @@ To use `etcdctl`, first install it in a host directory `DIR`:
$ docker run --rm -u root:root \
--entrypoint /usr/local/etcd/install-tools \
--mount type=bind,src=DIR,target=/host \
quay.io/cybozu/etcd:3.5
ghcr.io/cybozu/etcd:3.5

Then run `etcdctl` as follows:

Expand All @@ -31,4 +31,4 @@ Then run `etcdctl` as follows:
Docker images
-------------

Docker images are available on [Quay.io](https://quay.io/repository/cybozu/etcd)
Docker images are available on [ghcr.io](https://github.com/cybozu/neco-containers/pkgs/container/etcd)
2 changes: 1 addition & 1 deletion etcd/TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.5.10.1
3.5.10.2
5 changes: 3 additions & 2 deletions kubernetes/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# kubernetes container

# Stage1: build from source
FROM quay.io/cybozu/golang:1.21-jammy AS build
FROM ghcr.io/cybozu/golang:1.21-jammy AS build

ARG K8S_VERSION=1.27.8

Expand All @@ -20,7 +20,8 @@ WORKDIR /go/src/k8s.io/kubernetes
RUN make all WHAT="cmd/kube-apiserver cmd/kube-controller-manager cmd/kube-proxy cmd/kube-scheduler cmd/kubelet" GOLDFLAGS="-w -s"

# Stage2: setup runtime container
FROM quay.io/cybozu/ubuntu:22.04
FROM ghcr.io/cybozu/ubuntu:22.04
LABEL org.opencontainers.image.source="https://github.com/cybozu/neco-containers"

RUN apt-get update \
&& apt-get -y install --no-install-recommends \
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Usage
To launch `apiserver` by `docker run`:

$ docker run --net=host --name apiserver -d \
quay.io/cybozu/kubernetes:1.27 kube-apiserver \
ghcr.io/cybozu/kubernetes:1.27 kube-apiserver \
--advertise-address=192.168.1.101 \
--insecure-bind-address=0.0.0.0 \
--insecure-port=8080 \
Expand All @@ -28,4 +28,4 @@ To launch `apiserver` by `docker run`:
Docker images
-------------

Docker images are available on [Quay.io](https://quay.io/repository/cybozu/kubernetes)
Docker images are available on [ghcr.io](https://github.com/cybozu/neco-containers/pkgs/container/kubernetes)
2 changes: 1 addition & 1 deletion kubernetes/TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.27.8.1
1.27.8.2
5 changes: 3 additions & 2 deletions pause/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# pause container

# Stage1: build from source
FROM quay.io/cybozu/ubuntu-dev:22.04 AS build
FROM ghcr.io/cybozu/ubuntu-dev:22.04 AS build

ARG K8S_VERSION=1.27.7
ARG K8S_VERSION=1.27.8
ARG PAUSE_VERSION=3.9

RUN mkdir /work
Expand All @@ -19,6 +19,7 @@ RUN curl -sSLf -O https://github.com/kubernetes/kubernetes/raw/v${K8S_VERSION}/L

# Stage2: setup runtime container
FROM scratch
LABEL org.opencontainers.image.source="https://github.com/cybozu/neco-containers"

COPY --from=build /work/pause /pause
COPY --from=build /work/LICENSE /LICENSE
Expand Down
2 changes: 1 addition & 1 deletion pause/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Specify the image name for kubelet with `--pod-infra-container-image` option.
Docker images
-------------

Docker images are available on [Quay.io](https://quay.io/repository/cybozu/pause)
Docker images are available on [ghcr.io](https://github.com/cybozu/neco-containers/pkgs/container/pause)
2 changes: 1 addition & 1 deletion pause/TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.9.0.2
3.9.0.3
3 changes: 2 additions & 1 deletion unbound_exporter/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# unbound_exporter container

# Stage1: build from source
FROM quay.io/cybozu/golang:1.21-jammy AS build
FROM ghcr.io/cybozu/golang:1.21-jammy AS build

#ARG UNBOUND_EXPORTER_REPO=letsencrypt/unbound_exporter
ARG UNBOUND_EXPORTER_REPO=cybozu-go/unbound_exporter
Expand All @@ -16,6 +16,7 @@ RUN curl -fsSL -o unbound_exporter.tar.gz "https://github.com/${UNBOUND_EXPORTER

# Stage2: setup runtime container
FROM scratch
LABEL org.opencontainers.image.source="https://github.com/cybozu/neco-containers"

COPY --from=build /go/bin/unbound_exporter /bin/unbound_exporter
COPY --from=build /work/LICENSE /
Expand Down
2 changes: 1 addition & 1 deletion unbound_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ This container contains unbound_exporter, a Prometheus exporter for Unbound.
Docker images
-------------

Docker images are available on [Quay.io](https://quay.io/repository/cybozu/unbound_exporter)
Docker images are available on [ghcr.io](https://github.com/cybozu/neco-containers/pkgs/container/unbound_exporter)
2 changes: 1 addition & 1 deletion unbound_exporter/TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.4.1
0.4.4.2

0 comments on commit ca301a1

Please sign in to comment.