Public | Automated Build

Last pushed: 10 months ago
Short Description
Makes a container for dockerhub2slack with Node 6.10 LTS
Full Description


Builds a Docker container containing dockerhub2slack in Node 6.10 LTS.
The container put out by the author of the module is running on an out-dated
version of Node so I decided to build my own.

Note that currently the Dockerfile patches dockerhub2slack
module using the code that was submitted in

Deploying with Puppet

# Before using the manifest below be sure to install the module:
# puppet module install garethr-docker --version 5.3.0

class { '::docker':
  use_upstream_package_source => false,
  log_driver                  => 'journald',
  package_name                => 'docker',
  service_overrides_template  => false,

::docker::image { 'genebean/d2s':
  image_tag => 'latest',

::docker::run { 'slacker':
  image           => 'genebean/d2s',
  ports           => '',
  env             => 'SLACK_WEBHOOK=',
  restart_service => true,
  privileged      => false,

Fronting with Nginx

The deployment above makes the container only listen at
I want all communications with my sites to be over https so I front all my sites
with Nginx and take advantage of Let’s Encrypt certs with Subject
Alternative Names. The location block below directs anything sent to /d2s/ to
the container.

location /d2s/ {
    proxy_set_header   X-Real-IP         $remote_addr;
    proxy_set_header   X-Forwarded-For   $proxy_add_x_forwarded_for;
    proxy_set_header   Host              $http_host;
    proxy_set_header   X-Forwarded-Proto $scheme;
Docker Pull Command
Source Repository