Skip to content

Commit

Permalink
chore: Use full image names in hardcoded DB provisioner configs
Browse files Browse the repository at this point in the history
  • Loading branch information
kierendavies committed Mar 22, 2023
1 parent d62eb63 commit 3eb2996
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions cargo-shuttle/src/provisioner_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ fn db_type_to_config(db_type: Type) -> EngineConfig {
match db_type {
Type::Shared(SharedEngine::Postgres) => EngineConfig {
r#type: "shared_postgres".to_string(),
image: "postgres:11".to_string(),
image: "docker.io/library/postgres:11".to_string(),
engine: "postgres".to_string(),
username: "postgres".to_string(),
password: "postgres".to_string(),
Expand All @@ -343,7 +343,7 @@ fn db_type_to_config(db_type: Type) -> EngineConfig {
},
Type::Shared(SharedEngine::MongoDb) => EngineConfig {
r#type: "shared_mongodb".to_string(),
image: "mongo:5.0.10".to_string(),
image: "docker.io/library/mongo:5.0.10".to_string(),
engine: "mongodb".to_string(),
username: "mongodb".to_string(),
password: "password".to_string(),
Expand All @@ -362,7 +362,7 @@ fn db_type_to_config(db_type: Type) -> EngineConfig {
},
Type::AwsRds(AwsRdsEngine::Postgres) => EngineConfig {
r#type: "aws_rds_postgres".to_string(),
image: "postgres:13.4".to_string(),
image: "docker.io/library/postgres:13.4".to_string(),
engine: "postgres".to_string(),
username: "postgres".to_string(),
password: "postgres".to_string(),
Expand All @@ -377,7 +377,7 @@ fn db_type_to_config(db_type: Type) -> EngineConfig {
},
Type::AwsRds(AwsRdsEngine::MariaDB) => EngineConfig {
r#type: "aws_rds_mariadb".to_string(),
image: "mariadb:10.6.7".to_string(),
image: "docker.io/library/mariadb:10.6.7".to_string(),
engine: "mariadb".to_string(),
username: "root".to_string(),
password: "mariadb".to_string(),
Expand All @@ -394,7 +394,7 @@ fn db_type_to_config(db_type: Type) -> EngineConfig {
},
Type::AwsRds(AwsRdsEngine::MySql) => EngineConfig {
r#type: "aws_rds_mysql".to_string(),
image: "mysql:8.0.28".to_string(),
image: "docker.io/library/mysql:8.0.28".to_string(),
engine: "mysql".to_string(),
username: "root".to_string(),
password: "mysql".to_string(),
Expand Down
4 changes: 2 additions & 2 deletions provisioner/tests/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ impl From<DbType> for Config<'_> {
match db_type {
DbType::Postgres => Config {
container_name: PG_CONTAINER_NAME,
image: "postgres:11",
image: "docker.io/library/postgres:11",
engine: "postgres",
port: "5432",
env: vec!["POSTGRES_PASSWORD=password"],
is_ready_cmd: vec!["exec", PG_CONTAINER_NAME, "pg_isready"],
},
DbType::MongoDb => Config {
container_name: MONGODB_CONTAINER_NAME,
image: "mongo:5.0.10",
image: "docker.io/library/mongo:5.0.10",
engine: "mongodb",
port: "27017",
env: vec![
Expand Down

0 comments on commit 3eb2996

Please sign in to comment.