Skip to content

Commit

Permalink
use internal docker mirror for CI (hashicorp#20435)
Browse files Browse the repository at this point in the history
* use internal docker mirror for CI

* maybe it needs to be https

* no just kidding it's docker://

* apparently overriding it globally causes creates to fail. time to override each image individually lol

* maybe this works
  • Loading branch information
raskchanky authored May 5, 2023
1 parent 9480573 commit ef6d8cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion builtin/logical/nomad/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func prepareTestContainer(t *testing.T, bootstrap bool) (func(), *Config) {
}

runner, err := docker.NewServiceRunner(docker.RunOptions{
ImageRepo: "multani/nomad",
ImageRepo: "docker.mirror.hashicorp.services/multani/nomad",
ImageTag: "1.1.6",
ContainerName: "nomad",
Ports: []string{"4646/tcp"},
Expand Down
7 changes: 4 additions & 3 deletions plugins/database/influxdb/influxdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"testing"
"time"

dbplugin "github.com/hashicorp/vault/sdk/database/dbplugin/v5"
"github.com/hashicorp/vault/sdk/database/dbplugin/v5"
dbtesting "github.com/hashicorp/vault/sdk/database/dbplugin/v5/testing"
"github.com/hashicorp/vault/sdk/helper/docker"
influx "github.com/influxdata/influxdb1-client/v2"
Expand Down Expand Up @@ -61,8 +61,9 @@ func prepareInfluxdbTestContainer(t *testing.T) (func(), *Config) {
}

runner, err := docker.NewServiceRunner(docker.RunOptions{
ImageRepo: "influxdb",
ImageTag: "1.8-alpine",
ImageRepo: "docker.mirror.hashicorp.services/influxdb",
ContainerName: "influxdb",
ImageTag: "1.8-alpine",
Env: []string{
"INFLUXDB_DB=vault",
"INFLUXDB_ADMIN_USER=" + c.Username,
Expand Down

0 comments on commit ef6d8cc

Please sign in to comment.