Merge branch 'logplus' into 'master'
Add extra logging, make builds use BUILDKIT and make the container more secure... See merge request jdejeu/ottobotv2!13
This commit is contained in:
commit
a4503ce993
|
@ -8,6 +8,7 @@ stages:
|
||||||
variables:
|
variables:
|
||||||
IMAGE_TAG: $CI_REGISTRY_IMAGE:latest
|
IMAGE_TAG: $CI_REGISTRY_IMAGE:latest
|
||||||
NAME: $CI_PROJECT_NAME
|
NAME: $CI_PROJECT_NAME
|
||||||
|
DOCKER_BUILDKIT: 1
|
||||||
|
|
||||||
build_and_push:
|
build_and_push:
|
||||||
stage: build
|
stage: build
|
||||||
|
|
|
@ -10,4 +10,10 @@ FROM openjdk:8-jre-stretch
|
||||||
|
|
||||||
COPY --from=build /app/build/libs/ottobot.jar /otto.jar
|
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
|
CMD java -jar /otto.jar
|
|
@ -6,7 +6,7 @@
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
|
|
||||||
<root level="INFO">
|
<root level="DEBUG">
|
||||||
<appender-ref ref="STDOUT"/>
|
<appender-ref ref="STDOUT"/>
|
||||||
<!--<appender-ref ref="FILE"/>-->
|
<!--<appender-ref ref="FILE"/>-->
|
||||||
</root>
|
</root>
|
||||||
|
|
Loading…
Reference in a new issue