Skip to content

Instantly share code, notes, and snippets.

@edewit
Last active August 29, 2019 08:24
Show Gist options
  • Save edewit/e60c0fdf4ba2aeb9bf7699c01adda611 to your computer and use it in GitHub Desktop.
Save edewit/e60c0fdf4ba2aeb9bf7699c01adda611 to your computer and use it in GitHub Desktop.
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/*"]
<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>
This file has been truncated, but you can view the full file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment