Skip to content

Commit

Permalink
[Images] Small refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
avano committed Nov 3, 2023
1 parent 46c557e commit 20fe6a1
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ public abstract class LocalStack extends Service<AWSAccount, SdkClient, Validati

@Override
public String defaultImage() {
return "quay.io/fuse_qe/localstack:1.4.0";
return "quay.io/fuse_qe/localstack:2.3";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ public class LocalFhir extends Fhir implements Deployable {
private static final Logger LOG = LoggerFactory.getLogger(LocalFhir.class);
private FhirContainer container;

@Override
public String defaultImage() {
return FHIR_IMAGE;
}

@Override
public void deploy() {
LOG.info("Starting FHIR container");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
@AutoService(Fhir.class)
public class OpenshiftFhir extends Fhir implements ReusableOpenshiftDeployable, WithName, WithInClusterHostname {

@Override
public String defaultImage() {
return FHIR_IMAGE;
}

@Override
public void undeploy() {
OpenshiftClient.get().deploymentConfigs().withName(name()).delete();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import java.util.Map;

public abstract class Fhir extends Service<NoAccount, NoClient, NoValidation> implements WithDockerImage {
public static final String FHIR_IMAGE = "quay.io/fuse_qe/hapi:v4.2.0";
public static final int PORT = 8080;

public abstract int getPortMapping();
Expand All @@ -21,4 +20,9 @@ public Map<String, String> containerEnvironment() {
"HAPI_FHIR_VERSION", "DSTU3",
"HAPI_REUSE_CACHED_SEARCH_RESULTS_MILLIS", "-1");
}

@Override
public String defaultImage() {
return "quay.io/fuse_qe/hapi:v4.2.0";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ public class LocalRabbitMQBroker extends RabbitMQ implements Deployable, WithDoc
private static final Logger LOG = LoggerFactory.getLogger(RabbitMQ.class);
private RabbitMQBrokerContainer container;

@Override
public String defaultImage() {
return IMAGE;
}

@Override
public void deploy() {
LOG.info("Starting RabbitMQ container");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
@AutoService(RabbitMQ.class)
public class OpenshiftRabbitMQBroker extends RabbitMQ implements ReusableOpenshiftDeployable, WithName, WithInClusterHostname, WithDockerImage {

@Override
public String defaultImage() {
return IMAGE;
}

@Override
public void undeploy() {
OpenshiftClient.get().deploymentConfigs().withName(name()).delete();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package software.tnb.jms.rabbitmq.service;

import software.tnb.common.deployment.WithDockerImage;
import software.tnb.common.service.Service;
import software.tnb.jms.rabbitmq.account.RabbitmqAccount;
import software.tnb.jms.rabbitmq.validation.RabbitMQValidation;
Expand All @@ -9,10 +10,9 @@

import jakarta.jms.Connection;

public abstract class RabbitMQ extends Service<RabbitmqAccount, Connection, RabbitMQValidation> {
public abstract class RabbitMQ extends Service<RabbitmqAccount, Connection, RabbitMQValidation> implements WithDockerImage {
public static final int PORT = 5672;
public static final int MANAGEMENT_PORT = 15672;
public static final String IMAGE = "quay.io/rh_integration/rabbitmq:3-management";

protected abstract String getServerUrl();

Expand All @@ -31,4 +31,9 @@ protected Map<String, String> containerEnvironment() {
env.put("RABBITMQ_DEFAULT_PASS", account().password());
return env;
}

@Override
public String defaultImage() {
return "quay.io/rh_integration/rabbitmq:3-management";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ public RedisValidation validation() {

@Override
public String defaultImage() {
return "quay.io/fuse_qe/redis-image:6.0.20-alpine";
return "quay.io/fuse_qe/redis-image:6.0.20";
}
}

0 comments on commit 20fe6a1

Please sign in to comment.