Commit efeaf06c authored by cnguyen2's avatar cnguyen2
Browse files

Update prefix

parent bcfd628f
Pipeline #165700 failed with stages
in 51 seconds
*
!src/*
!data/*
!pom.xml
!target/*-runner
!target/*-runner.jar
!target/lib/*
stages:
- build
- containerize
- push
variables:
CONTAINER_TEMP_IMAGE: $CI_REGISTRY_IMAGE:temp-$CI_COMMIT_SHORT_SHA
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN"
build native:
stage: build
image: quay.io/quarkus/centos-quarkus-maven:20.3-java11
cache:
paths:
- .m2/repository
only:
- master
script:
- mvn -f $CI_PROJECT_DIR/pom.xml clean install -P native
artifacts:
paths:
- $CI_PROJECT_DIR/target/*-runner
containerize native:
stage: containerize
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
......@@ -18,7 +34,7 @@ build native:
- >
/kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/src/main/docker/Dockerfile.multistage
--dockerfile $CI_PROJECT_DIR/src/main/docker/Dockerfile.native
--destination $CONTAINER_TEMP_IMAGE
push latest:
......
......@@ -12,10 +12,10 @@
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus-plugin.version>1.9.2.Final</quarkus-plugin.version>
<quarkus-plugin.version>1.10.3.Final</quarkus-plugin.version>
<quarkus.platform.artifact-id>quarkus-universe-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
<quarkus.platform.version>1.9.2.Final</quarkus.platform.version>
<quarkus.platform.version>1.10.3.Final</quarkus.platform.version>
<surefire-plugin.version>2.22.1</surefire-plugin.version>
</properties>
<dependencyManagement>
......
......@@ -7,11 +7,11 @@
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/GeneinfoService-jvm .
# docker build -f src/main/docker/Dockerfile.jvm -t ibb/api/geneinfoservice-jvm .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/GeneinfoService-jvm
# docker run -i --rm -p 8080:8080 ibb/api/geneinfoservice-jvm
#
###
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.1
......@@ -40,6 +40,7 @@ ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jb
COPY target/lib/* /deployments/lib/
COPY target/*-runner.jar /deployments/app.jar
COPY data/* /deployments/data/
EXPOSE 8080
USER 1001
......
......@@ -7,28 +7,23 @@
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.native -t quarkus/GeneinfoService .
# docker build -f src/main/docker/Dockerfile.native -t ibb/api/geneinfoservice .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/GeneinfoService
# docker run -i --rm -p 8080:8080 ibb/api/geneinfoservice
#
###
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.1
WORKDIR /work/
COPY target/*-runner /work/application
COPY data/* /work/data/
# set up permissions for user `1001`
RUN chmod 775 /work /work/application \
&& chown -R 1001 /work \
&& chmod -R "g+rwX" /work \
&& chown -R 1001:root /work
# Comment because of Kaniko's error
# COPY --chown=1001:root target/*-runner /work/application
COPY target/*-runner /work/application
RUN chown 1001:root /work/application
COPY data/* /work/data/
EXPOSE 8080
USER 1001
......
package de.unigoettingen.ibeetlebase.geneinfo.provider;
import java.io.IOException;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
import javax.ws.rs.ext.Provider;
import org.jboss.logging.Logger;
@Provider
public class RequestLoggingFilter implements ContainerRequestFilter {
private static final Logger LOG = Logger.getLogger(RequestLoggingFilter.class);
@Override
public void filter(ContainerRequestContext requestContext)
throws IOException {
LOG.infov("{0} - {1}", requestContext.getMethod(), requestContext.getUriInfo().getPath());
}
}
......@@ -47,7 +47,7 @@ public class GeneResource {
@GET
@Metered
@Path("/flybase/genes/{id: FBgn[0-9]{7}}")
@Path("/drosophila/genes/{id: FBgn[0-9]{7}}")
@Operation(summary = "Get information for a fly gene.")
public DrosophilaGene getFlybaseGene(
@Parameter(
......@@ -59,7 +59,7 @@ public class GeneResource {
@GET
@Metered
@Path("/flybase/genes")
@Path("/drosophila/genes")
@Operation(summary = "Get information for a list of fly genes")
@APIResponse(
responseCode = "200",
......
......@@ -2,5 +2,5 @@
# key = value
quarkus.http.cors=true
quarkus.http.root-path=/geneinfo/v1
quarkus.http.root-path=/ibb/api/geneinfo/v1
quarkus.swagger-ui.always-include=true
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment