Sign inSign up

lenacloud/lena-cluster

By lenacloud

•Updated 4 months ago

Docker image of LENA Application Server. (on developing)

Image
3

10K+

lenacloud/lena-cluster repository overview

⁠LENA Application Server Docker image

This is an example Dockerfile with LENA application server (Cluster Edition)
This image is built from lena-base image⁠ .

⁠Usage

⁠To boot in standalone mode

docker run -itd -p 8180:8180 lenacloud/lena-cluster:tagname

⁠To boot in standalone mode with auto registration to LENA manager console in remote.

docker run -itd -p 8180:8180 lenacloud/lena-cluster:tagname -e LENA_MANAGER_ADDRESS=${MANGER_ADDRESS} -e LENA_CONFIG_TEMPLATE_ID=${TEMPLATE_ID}

  • ${MANGER_ADDRESS:UDP_PORT} means the IPAddress(or Domain Address):UdpServicePort. (ex 172.17.0.2:16100)
  • ${CONTAINER_ID} means the Id of container group which is managed in LENA Manager.
⁠To boot in standalone mode with download configuration files from LENA manager.

docker run -itd -p 8180:8180 lenacloud/lena-cluster:tagname -e LENA_MANAGER_ADDRESS=${MANGER_ADDRESS} -e LENA_CONFIG_TEMPLATE_DOWNLOAD=Y -e LENA_MANAGER_ACCESS_KEY=${ACCESS_KEY} -e LENA_CONFIG_TEMPLATE_ID=${TEMPLATE_ID}

  • ${MANGER_ADDRESS} means the IPAddress(or Domain Address):WebServicePort. (ex 172.17.0.2:7700 or hostname.yourdomain:7700)
  • ${TEMPLATE_ID} means the Id of template (format : {container group name}:{version number}) which is managed in LENA Manager.
  • ${ACCESS_KEY} means the key value which is used to access to LENA manager, this can be acquired from LENA manager web console.
⁠Application deployment

With LENA application server you can deploy your application in two ways:

  • You can use CLI
  • You can use the LENA manager web console

Simply, you can deploy a web application to drop the archive file to dir '/usr/local/lena/servers/appServer/webapps'. More simply you can do it through LENA Manager web console.

⁠Create your own docker image

Create Dockerfile with following content:

  • FROM lenacloud/lena-cluster:tag
  • Place your war file in the same directory as your Dockerfile.
  • ADD your war to /usr/local/lena/servers/appServer/webapps/
  • Run the build with docker build --tag your-own-tag.
  • Run the container. Application will be deployed on the container boot.
⁠Customizing configuration

Sometimes you need to customize the application server configuration. There two ways to do it and this blog post tries to summarize it.

  • You can use CLI
  • You can use the LENA manager web console

The directory '/usr/local/lena/servers/appServer/' is the home of application server. By updating configuration files, you can custmize cofigurations.
And you can do it, via LENA manager console if your application server is registered to LENA Manager.

Specially the Max Heap Memory size is set as 1024m and Max Metaspace Size is set to 128m. You can reset it by updating /usr/local/lena/servers/appServer/bin/setenv.sh file.

⁠Logging

LENA write server logs to standard out as default. If environment variable 'LOG_OUTPUT_TYPE' is set as 'file', server logs will be written to dir '/usr/local/lena/servers/appServer/logs/'. You can get it by specifying volume with docker -v.

⁠Version History

Tag 1.3.1.0_5 is recently version.

⁠License

This image contains a license valid for 1 month from the date of creation. If you want to more long term license please contact us via LENA Support Mail ( [email protected]⁠ )

⁠Issues

Please report any issues or file RFEs via [email protected]⁠

Tag summary

Content type

Image

Digest

sha256:7bd1b9be3…

Size

523.4 MB

Last updated

4 months ago

docker pull lenacloud/lena-cluster:1.3.4.7-EN10-ubuntu22.04-jdk17-openjdk