Skip to content

This plugin adds Docker support to Play! Framework 1 applications.

License

Notifications You must be signed in to change notification settings

sismics/play-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub release License

play-docker plugin

This plugin adds Docker support to Play! Framework 1 applications.

How to use

Add the dependency to your dependencies.yml file

require:
    - docker -> docker 1.2.0
    
    # Needed by Docker
    - org.apache.httpcomponents -> httpclient 4.5.3
    - org.apache.httpcomponents -> httpcore 4.4.5

repositories:
    - sismicsNexusRaw:
        type: http
        artifact: "https://nexus.sismics.com/repository/sismics/[module]-[revision].zip"
        contains:
            - docker -> *

Run the play deps command

Add the configuration to application.conf

docker.remote_host=yourdockerhost.com
docker.remote_port=2400

Connect with socket

docker.use_socket=true

Connect with certificate

docker.remote_host=yourdockerhost.com
docker.remote_port=2376
docker.cert_dir=/your/cert/dir

Basic authentication

Alternately, you can authenticate to the Docker Engine using basic auth:

docker.authorization=base64_encoded

Registry authentication

If you need to authenticate to the Docker Registry, add the following configuration parameters:

docker.registry.username=username
docker.registry.password=password
docker.registry.address=registry_address

Enable the admin console

The admin console allows you to monitor queries in realtime.

Add the following parameter to enable the admin console:

docker.console.enabled=true

Note: the admin console is enabled by default in Dev mode.

Secure the admin console

Add the following parameter to secure the admin console

docker.console.username=console
docker.console.password=pass1234

License

This software is released under the terms of the Apache License, Version 2.0. See LICENSE for more information or see https://opensource.org/licenses/Apache-2.0.