Merge branch 'logplus' into 'master'

Add extra logging, make builds use BUILDKIT and make the container more secure...

See merge request jdejeu/ottobotv2!13
merge-requests/14/head
Julius 2019-09-10 19:55:13 +00:00
commit a4503ce993
3 changed files with 8 additions and 1 deletions

View File

@ -8,6 +8,7 @@ stages:
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:latest
NAME: $CI_PROJECT_NAME
DOCKER_BUILDKIT: 1
build_and_push:
stage: build

View File

@ -10,4 +10,10 @@ FROM openjdk:8-jre-stretch
COPY --from=build /app/build/libs/ottobot.jar /otto.jar
RUN chmod 444 /otto.jar
RUN useradd -r -u 1001 otto
USER otto
CMD java -jar /otto.jar

View File

@ -6,7 +6,7 @@
</appender>
<root level="INFO">
<root level="DEBUG">
<appender-ref ref="STDOUT"/>
<!--<appender-ref ref="FILE"/>-->
</root>