Skip to content
Snippets Groups Projects
Commit 0f60a43d authored by Martin Weise's avatar Martin Weise
Browse files

Merge remote-tracking branch 'origin/17-database-create-temporal-tables' into...

Merge remote-tracking branch 'origin/17-database-create-temporal-tables' into 74-error-on-create-database-after-merge-at-dev
parents 3a043e20 5bf3c506
Branches
Tags
6 merge requests!81New stable release,!43Merge dev to master,!23Sprint results,!20Pull Request,!19Pull Request,!18Merge Conflicts
...@@ -66,6 +66,7 @@ public class ImageService { ...@@ -66,6 +66,7 @@ public class ImageService {
log.error("image already exists: {}", createDto); log.error("image already exists: {}", createDto);
throw new ImageAlreadyExistsException("image already exists"); throw new ImageAlreadyExistsException("image already exists");
} }
log.debug("created image {}", out);
return out; return out;
} }
...@@ -115,10 +116,10 @@ public class ImageService { ...@@ -115,10 +116,10 @@ public class ImageService {
} }
private void pull(String repository, String tag) throws ImageNotFoundException { private void pull(String repository, String tag) throws ImageNotFoundException {
log.debug("pulling image {}:{}", repository, tag);
final ResultCallback.Adapter<PullResponseItem> response; final ResultCallback.Adapter<PullResponseItem> response;
try { try {
response = dockerClient.pullImageCmd("library") response = dockerClient.pullImageCmd(repository)
.withRepository(repository)
.withTag(tag) .withTag(tag)
.start(); .start();
final Instant now = Instant.now(); final Instant now = Instant.now();
......
...@@ -11,18 +11,26 @@ public class GatewayConfig { ...@@ -11,18 +11,26 @@ public class GatewayConfig {
@Bean @Bean
public RouteLocator routes(RouteLocatorBuilder builder) { public RouteLocator routes(RouteLocatorBuilder builder) {
return builder.routes() return builder.routes()
.route("container-service", r -> r.path("/api/container/**") .route("fda-container-service", r -> r.path("/api/container/**")
.and()
.method("POST","GET","PUT","DELETE")
.and() .and()
.uri("lb://fda-container-service")) .uri("lb://fda-container-service"))
.route("table-service", r -> r.path("/api/database/{id}/table/**") .route("fda-container-service", r -> r.path("/api/image/**")
.and() .and()
.uri("lb://fda-table-service")) .method("POST","GET","PUT","DELETE")
.route("database-service", r -> r.path("/api/database/**") .and()
.uri("lb://fda-container-service"))
.route("fda-database-service", r -> r.path("/api/database/**")
.and()
.method("POST","GET","PUT","DELETE")
.and() .and()
.uri("lb://fda-database-service")) .uri("lb://fda-database-service"))
.route("query-service", r -> r.path("/api/query/**") .route("fda-table-service", r -> r.path("/api/database/**/table/**")
.and()
.method("POST","GET","PUT","DELETE")
.and() .and()
.uri("lb://fda-query-service")) .uri("lb://fda-table-service"))
.build(); .build();
} }
......
FROM postgres:12.4-alpine
RUN apk add --no-cache libpq make gcc clang llvm musl-dev python3-dev git
ENV PG_CONFIG=/usr/local/bin/pg_config
RUN git clone https://github.com/arkhipov/temporal_tables.git && cd temporal_tables && \
make && make install
WORKDIR ./temporal_tables
RUN echo "make installcheck PGUSER=postgres" > ./check.sh
RUN chmod +x ./check.sh
EXPOSE 5432
CMD ["postgres"]
\ No newline at end of file
...@@ -22,6 +22,10 @@ public class ImageCreateDto { ...@@ -22,6 +22,10 @@ public class ImageCreateDto {
@ApiModelProperty(required = true, example = "latest") @ApiModelProperty(required = true, example = "latest")
private String tag; private String tag;
@NotNull
@ApiModelProperty(required = true, example = "false", notes = "when false, the service pulls it from hub.docker.com")
private Boolean local;
@NotNull @NotNull
@ApiModelProperty(required = true, example = "5432") @ApiModelProperty(required = true, example = "5432")
private Integer defaultPort; private Integer defaultPort;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment