Public Repository

Last pushed: 14 days ago
Short Description
this wildfly-image provides the simple start of deployments without the need to build your own image
Full Description

WildFly Docker Image

This is a Docker image for the Java application server WildFly. The image is based on image jboss/wildfly and prepared for the tools of the MOSAIC-project:

  • E-PIX (Enterprise Patient Identifier Crossreferencing)
  • gPAS (generic Pseudonym Administration Service)
  • gICS (generic Informed Consent Service)

Tags

  • 11.0.0.Final-20171204, latest (Dockerfile)
    • from: jboss/wildfly:11.0.0.Final
    • updated: mySQL-connector to 5.1.45
    • updated: mariaDB-connector to 2.2.0
    • updated: EclipseLink to 2.7.0
  • 10.1.0.Final-20170707
    • updated: mySQL-connector to 5.1.42
    • added: mariaDB-connector 2.0.3
    • improved: changed all sha1sum to sha256sum
  • 10.1.0.Final-20170418
    • updated: mySQL-connector to 5.1.41
    • updated: EclipseLink to 2.6.4
    • added: script to check wildfly is complete started
    • added: Docker-Healthcheck
  • 10.1.0.Final-20160930
    • updated: mySQL-connector to 5.1.40
    • added: script to create admin-user with given or random password at first run
    • improved: jboss-completed-files moved into container
  • 10.1.0.Final-20160913
    • added: sha1-hash to check mySQL-connector download
    • added: sha1-hash to check wait-for-it.sh download
    • renamed: command startWildfly.sh to run.sh
    • few improvements
  • 10.1.0.Final-20160912
    • from: jboss/wildfly:10.1.0.Final
    • added: mySQL-connector 5.1.39
    • added: wait-for-it.sh
    • added: script to execute automatical jboss-batch-files
  • 10.0.0.Final-20160601
    • from: piegsaj/wildfly
    • added: mysql-connector 5.1.38
    • added: EclipseLink 2.6.2

Run your Image

  • only deployments and add admin with random-password per default
    docker run \
      -p 8080:8080 \
      -v /path/to/your/deployments:/entrypoint-deployments \
      mosaicgreifswald/wildfly
    
  • if you want to set admin-password by self, you can do it over environment variable

    docker run \
      -e WILDFLY_PASS=top-secret
      ...
    
  • or you don't want to create an admin-user

    docker run \
      -e NO_ADMIN=true
      ...
    
  • with deployments and jboss-batch

    docker run \
      -p 8080:8080 \
      -v /path/to/your/deployments:/entrypoint-deployments \
      -v /path/to/your/batch-files:/entrypoint-jboss-batch \
      mosaicgreifswald/wildfly
    
  • over docker-compose

    version: '2'
    services:
    
      app:
        image: mosaicgreifswald/wildfly
        ports:
          - 8080:8080
        volumes:
          - /path/to/your/batch-files:/entrypoint-jboss-batch
          - /path/to/your/deployments:/entrypoint-deployments
    
  • over docker-compose with dependent on mysql-db (example)

    version: '2'
    services:
    
      db:
        image: mysql:5.7
        environment:
          MYSQL_ROOT_PASSWORD: top-secret
        volumes:
          - /path/to/your/init-sql-files:/docker-entrypoint-initdb.d
    
      app:
        image: mosaicgreifswald/wildfly
        ports:
          - 8080:8080
        depends_on:
          - db
        links:
          - db:app-db
        volumes:
          - /path/to/your/batch-files:/entrypoint-jboss-batch
          - /path/to/your/deployments:/entrypoint-deployments
        entrypoint: /bin/bash
        command: -c "./wait-for-it.sh app-db:3306 -t 60 && ./run.sh"
    

Examples for create JBoss-CLI-File

  • add mysql-datasource

    data-source add \
      --name=MySQLPool \
      --jndi-name=java:/jboss/MySQLDS \
      --connection-url=jdbc:mysql://app-db:3306/dbName \
      --user-name=mosaic \
      --password=top-secret \
      --driver-name=mysql
    
  • add postgresql-jdbc-driver-module and datasource

    batch
    
    module add \
      --name=org.postgre \
      --resources=/entrypoint-jboss-batch/postgresql.jar \
      --dependencies=javax.api,javax.transaction.api
    
    /subsystem=datasources/jdbc-driver=postgre: \
      add( \
        driver-name="postgre", \
        driver-module-name="org.postgre", \
        driver-class-name=org.postgresql.Driver \
      )
    
    data-source add \
      --name=PostgreSQLPool \
      --jndi-name=java:/jboss/PostgreSQLDS \
      --connection-url=jdbc:postgresql://app-db:5432/dbName \
      --user-name=mosaic \
      --password=top-secret \
      --driver-name=postgre
    
    run-batch
    
Docker Pull Command
Owner
mosaicgreifswald