Sign inSign up

jeffdecola/concourse-deploy-docker-resource

By jeffdecola

Updated over 3 years ago

A concourse resource to deploy a dockerhub docker image on a machine via ssh.

Image
0

564

jeffdecola/concourse-deploy-docker-resource repository overview

CONCOURSE DEPLOY DOCKER RESOURCE

Tag Latest codeclimate Issue Count Docker Pulls MIT License jeffdecola.com

A concourse resource to deploy a dockerhub docker image on a machine via ssh.

GitHub Repo

HOW TO USE

To use this resource, you will provide the following dockerhub information in the pipeline,

  • username: jeffdecola
  • password: ((dockerhub_password))

Then define the machine where you want and what dockerhub image to deploy,

  • DOCKER_HOST_IP: '192.168.20.124'
  • DOCKER_HOST_PORT: '22'
  • DOCKER_HOST_USER: 'jeffdecola'
  • DOCKER_HOST_RUN_PRIVILEGED_MODE: 'true'
  • DOCKER_HOST_SSH_PRIVATE_KEY_FILE: {{docker_host_ssh_private_key_file}}
  • DOCKER_IMAGE_TO_DEPLOY: 'jeffdecola/crypto-miner-manager'

The resource is,

resource_types:

  - name: deploy-docker
    type: docker-image
    source:
      repository: jeffdecola/concourse-deploy-docker-resource
      tag: latest

resources:

  - name: test-resource-deploy-docker
    type: deploy-docker
    icon: docker
    source:
      username: jeffdecola
      password: ((dockerhub_password))

And to use as a put,

- put: test-resource-deploy-docker
  params:
    DOCKER_HOST_IP: '192.168.20.124'
    DOCKER_HOST_PORT: '22'
    DOCKER_HOST_USER: 'jeffdecola'
    DOCKER_HOST_RUN_PRIVILEGED_MODE: 'true'
    DOCKER_HOST_SSH_PRIVATE_KEY_FILE: {{jeffs_mbp_docker_host_ssh_private_key}}
    DOCKER_IMAGE_TO_DEPLOY: 'jeffdecola/crypto-miner-manager'

Tag summary

Content type

Image

Digest

sha256:ee14b871e

Size

13.4 MB

Last updated

over 3 years ago

docker pull jeffdecola/concourse-deploy-docker-resource