Skip to content

Commit 63453b9

Browse files
committed
chore: use ghcr instead of gcr
1 parent 7cf0595 commit 63453b9

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

docker-compose.spanner.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
# docker-compose -f docker-compose.spanner.yaml up --build
44
services:
55
spanner:
6-
image: "gcr.io/cloud-spanner-emulator/emulator"
6+
image: "ghcr.io/cloud-spanner-emulator/emulator"
77
restart: "no"
88
ports:
99
- "9010:9010"
1010
spanner-init:
11-
image: "gcr.io/google.com/cloudsdktool/cloud-sdk"
11+
image: "ghcr.io/google.com/cloudsdktool/cloud-sdk"
1212
command: >
1313
bash -c 'gcloud config configurations create emulator &&
1414
gcloud config set auth/disable_credentials true &&

internal/datastore/crdb/crdb_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ func newCRDBWithUser(t *testing.T, pool *dockertest.Pool) (adminConn *pgx.Conn,
458458
require.NoError(t, rootCertFile.Close())
459459

460460
resource, err := pool.RunWithOptions(&dockertest.RunOptions{
461-
Repository: "mirror.gcr.io/cockroachdb/cockroach",
461+
Repository: "cockroachdb/cockroach",
462462
Tag: "v" + crdbTestVersion(),
463463
Cmd: []string{"start-single-node", "--certs-dir", "/certs", "--accept-sql-without-tls"},
464464
Mounts: []string{certDir + ":/certs"},

internal/fdw/pgserver_e2e_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ func runPostgres(t *testing.T) (conn *pgx.Conn) {
785785
postgresContainerHostname := fmt.Sprintf("postgres-%s", uuid.New().String())
786786
postgres, err := pool.RunWithOptions(&dockertest.RunOptions{
787787
Name: postgresContainerHostname,
788-
Repository: "mirror.gcr.io/library/postgres",
788+
Repository: "postgres",
789789
Tag: pgVersion,
790790
Env: []string{
791791
"POSTGRES_USER=" + postgresTestUser,

internal/testserver/datastore/crdb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func RunCRDBForTesting(t testing.TB, bridgeNetworkName string, crdbVersion strin
4141
name := "crds-" + uuid.New().String()
4242
resource, err := pool.RunWithOptions(&dockertest.RunOptions{
4343
Name: name,
44-
Repository: "mirror.gcr.io/cockroachdb/cockroach",
44+
Repository: "cockroachdb/cockroach",
4545
Tag: "v" + crdbVersion,
4646
Cmd: []string{"start-single-node", "--insecure", "--max-offset=50ms"},
4747
NetworkID: bridgeNetworkName,

internal/testserver/datastore/mysql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func RunMySQLForTestingWithOptions(t testing.TB, options MySQLTesterOptions, bri
5858
name := "mysql-" + uuid.New().String()
5959
resource, err := pool.RunWithOptions(&dockertest.RunOptions{
6060
Name: name,
61-
Repository: "mirror.gcr.io/library/mysql",
61+
Repository: "mysql",
6262
Tag: containerImageTag,
6363
Env: []string{"MYSQL_ROOT_PASSWORD=secret"},
6464
// increase max connections (default 151) to accommodate tests using the same docker container

internal/testserver/datastore/postgres.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func RunPostgresForTestingWithCommitTimestamps(t testing.TB, bridgeNetworkName s
6666

6767
postgres, err := pool.RunWithOptions(&dockertest.RunOptions{
6868
Name: postgresContainerHostname,
69-
Repository: "mirror.gcr.io/library/postgres",
69+
Repository: "postgres",
7070
Tag: pgVersion,
7171
Env: []string{
7272
"POSTGRES_USER=" + PostgresTestUser,
@@ -189,7 +189,7 @@ func (b *postgresTester) runPgbouncerForTesting(t testing.TB, pool *dockertest.P
189189

190190
pgbouncer, err := pool.RunWithOptions(&dockertest.RunOptions{
191191
Name: pgbouncerContainerHostname,
192-
Repository: "mirror.gcr.io/edoburu/pgbouncer",
192+
Repository: "ghcr.io/edoburu/pgbouncer",
193193
Tag: "latest",
194194
Env: []string{
195195
"DB_USER=" + PostgresTestUser,

internal/testserver/datastore/spanner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func RunSpannerForTesting(t testing.TB, bridgeNetworkName string, targetMigratio
3535
name := "spanner-" + uuid.New().String()
3636
resource, err := pool.RunWithOptions(&dockertest.RunOptions{
3737
Name: name,
38-
Repository: "gcr.io/cloud-spanner-emulator/emulator",
38+
Repository: "cloud-spanner-emulator/emulator",
3939
Tag: "1.5.41",
4040
ExposedPorts: []string{"9010/tcp"},
4141
NetworkID: bridgeNetworkName,

0 commit comments

Comments
 (0)