Last active
August 29, 2019 08:24
-
-
Save edewit/e60c0fdf4ba2aeb9bf7699c01adda611 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM vertx/vertx3 | |
# (1) | |
ENV VERTICLE_NAME org.acme.quickstart.HttpApplication | |
ENV VERTICLE_FILE mushy-vest-1.0.0.jar | |
# Set the location of the verticles | |
ENV VERTICLE_HOME /usr/verticles | |
EXPOSE 8080 | |
# Copy your verticle to the container (2) | |
COPY $VERTICLE_FILE $VERTICLE_HOME/ | |
COPY logback.xml $VERTICLE_HOME/ | |
ADD https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/1.7.28/slf4j-simple-1.7.28.jar $VERTICLE_HOME/ | |
# Launch the verticle | |
WORKDIR $VERTICLE_HOME | |
ENTRYPOINT ["sh", "-c"] | |
CMD ["exec vertx run $VERTICLE_NAME -cp $VERTICLE_HOME/*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | |
<!-- encoders are assigned the type | |
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --> | |
<encoder> | |
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> | |
</encoder> | |
</appender> | |
<root level="info"> | |
<appender-ref ref="STDOUT" /> | |
</root> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment