use of io.seldon.apife.AppProperties in project seldon-core by SeldonIO.
the class SeldonGrpcServer method main.
/**
* Main method for basic testing.
*/
public static void main(String[] args) throws Exception {
DeploymentStore store = new DeploymentStore(null, new InMemoryClientDetailsService());
SeldonDeployment dep = SeldonDeployment.newBuilder().setApiVersion("v1alpha1").setKind("SeldonDeplyment").setSpec(DeploymentSpec.newBuilder().setName("0.0.0.0").setOauthKey("key").setOauthSecret("secret")).build();
AppProperties appProperties = new AppProperties();
appProperties.setEngineGrpcContainerPort(5000);
store.deploymentAdded(dep);
SeldonGrpcServer server = new SeldonGrpcServer(appProperties, store, null, null, SERVER_PORT);
server.start();
server.blockUntilShutdown();
}
Aggregations