Public Repository

Last pushed: 2 months ago
Short Description
Vert.x 3 stack - base image
Full Description

These docker images let you run vert.x 3 application in docker images. For details on:
the web site

Using the image

The image is intended to be used by extension using the Docker FROM directive. Here is an example:

FROM vertx/vertx3

# Set the location of the verticles
ENV VERTICLE_HOME /usr/verticles

# Set the name of the verticle to deploy
ENV VERTICLE_NAME io.vertx.example.HelloWorldVerticle

# Set vertx option
ENV VERTX_OPTIONS ""

###
# The rest of the file should be fine.
###

COPY ./verticles $VERTICLE_HOME

# We use the "sh -c" to turn around https://github.com/docker/docker/issues/5509 - variable not expanded
ENTRYPOINT ["sh", "-c"]
CMD ["vertx run $VERTICLE_NAME -cp $VERTICLE_HOME/* $VERTX_OPTIONS"]

Launching the image

The resulting image is not made to be launched directly (as it contains only vert.x and no applications). If you still want to launch it uses:

docker run -i -t vertx/vertx3

The vert.x files are located in /usr/local/vert.x-VERSION/.

You can access the vertx command directly using:

docker run -i -t vertx/vertx3 vertx
Docker Pull Command
Owner
vertx

Comments (4)
tenebaul
8 months ago

mvn package can't be executed in this Dockerfile. Docker cloud providers can always pull codes from github.com but some of them can't support building and packaging before Dockerfile embedded in the project hosted in github.com to be executed.

frangarcia
2 years ago

Is there any plan to support different versions of vertx? Not only vertx3 but also vertx2

cescoffier
2 years ago

you are right @nembleton - I've updated the page.

nembleton
2 years ago

It seems the Github link referenced in the image is broken: https://github.com/vert-x3/vertx-stack/tree/master/docker/vertx-docker-base-image
I believe it should be:
https://github.com/vert-x3/vertx-stack/tree/master/stack-docker