Skip to content

Commit

Permalink
Use ghcr containers for test
Browse files Browse the repository at this point in the history
Signed-off-by: Masayuki Ishii <[email protected]>
  • Loading branch information
masa213f committed Dec 7, 2023
1 parent e0b5117 commit f16cdf8
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions example/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
- /entrypoint.sh
setup:
container_name: setup
image: quay.io/cybozu/ubuntu-debug:22.04
image: ghcr.io/cybozu/ubuntu-debug:22.04
networks:
app_net:
ipv4_address: 172.30.0.12
Expand Down Expand Up @@ -56,7 +56,7 @@ services:
- /entrypoint.sh
etcd:
container_name: etcd
image: quay.io/cybozu/etcd:3.5
image: ghcr.io/cybozu/etcd:3.5
networks:
app_net:
ipv4_address: 172.30.0.14
Expand Down
2 changes: 1 addition & 1 deletion mtest/httpd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ metadata:
spec:
containers:
- name: httpd
image: quay.io/cybozu/testhttpd:0
image: ghcr.io/cybozu/testhttpd:0
hostNetwork: true
4 changes: 2 additions & 2 deletions mtest/kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func testKubernetes() {
}`, node)
overrideFile := remoteTempFile(overrides)
_, stderr, err = kubectl("run",
"-n="+namespace, "--image=quay.io/cybozu/ubuntu:22.04", "--overrides=\"$(cat "+overrideFile+")\"", "--restart=Never",
"-n="+namespace, "--image=ghcr.io/cybozu/ubuntu:22.04", "--overrides=\"$(cat "+overrideFile+")\"", "--restart=Never",
"client", "--", "pause")
Expect(err).NotTo(HaveOccurred(), "stderr: %s, err: %v", stderr, err)

Expand Down Expand Up @@ -251,7 +251,7 @@ func testKubernetes() {
}).Should(Succeed())

By("querying www.cybozu.com using node DNS from ubuntu pod")
_, stderr, err = kubectl("run", "-n="+namespace, "--image=quay.io/cybozu/ubuntu:22.04", "--restart=Never",
_, stderr, err = kubectl("run", "-n="+namespace, "--image=ghcr.io/cybozu/ubuntu:22.04", "--restart=Never",
"client", "--", "pause")
Expect(err).NotTo(HaveOccurred(), "stderr: %s", stderr)
Eventually(func() error {
Expand Down
2 changes: 1 addition & 1 deletion mtest/reboot-alittleslow-eviction-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: ubuntu
image: quay.io/cybozu/ubuntu:22.04
image: ghcr.io/cybozu/ubuntu:22.04
# Because sleep command ignores SIGTERM,
# this Pod will stay Terminating state after deletion
# for the time specified by terminationGracePeriodSeconds.
Expand Down
2 changes: 1 addition & 1 deletion mtest/reboot-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: httpd
image: quay.io/cybozu/testhttpd:0
image: ghcr.io/cybozu/testhttpd:0
---
apiVersion: policy/v1
kind: PodDisruptionBudget
Expand Down
2 changes: 1 addition & 1 deletion mtest/reboot-job-completed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
spec:
containers:
- name: ubuntu
image: quay.io/cybozu/ubuntu:22.04
image: ghcr.io/cybozu/ubuntu:22.04
command: ["true"]
restartPolicy: Never
backoffLimit: 1
2 changes: 1 addition & 1 deletion mtest/reboot-job-running.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
spec:
containers:
- name: ubuntu
image: quay.io/cybozu/ubuntu:22.04
image: ghcr.io/cybozu/ubuntu:22.04
command: ["sleep", "3600"]
restartPolicy: Never
backoffLimit: 1
2 changes: 1 addition & 1 deletion mtest/reboot-slow-eviction-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: ubuntu
image: quay.io/cybozu/ubuntu:22.04
image: ghcr.io/cybozu/ubuntu:22.04
# Because sleep command ignores SIGTERM,
# this Pod will stay Terminating state after deletion
# for the time specified by terminationGracePeriodSeconds.
Expand Down
6 changes: 3 additions & 3 deletions sonobuoy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '2'
services:
cke:
container_name: cke
image: quay.io/cybozu/ubuntu:22.04
image: ghcr.io/cybozu/ubuntu:22.04
networks:
app_net:
ipv4_address: 172.30.0.11
Expand All @@ -19,7 +19,7 @@ services:
- --loglevel=debug
setup:
container_name: setup
image: quay.io/cybozu/ubuntu-debug:22.04
image: ghcr.io/cybozu/ubuntu-debug:22.04
networks:
app_net:
ipv4_address: 172.30.0.12
Expand Down Expand Up @@ -56,7 +56,7 @@ services:
- /entrypoint.sh
etcd:
container_name: etcd
image: quay.io/cybozu/etcd:3.5
image: ghcr.io/cybozu/etcd:3.5
networks:
app_net:
ipv4_address: 172.30.0.14
Expand Down

0 comments on commit f16cdf8

Please sign in to comment.