Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 1.08 KB

README.md

File metadata and controls

37 lines (21 loc) · 1.08 KB

Docker Remote

Docker Build Status Commit Download size

An SSH client meant to be run in CI services.

Getting started

Fetch the docker image:

$ docker pull apihackers/remote

and then execute your remote commands:

$ docker run -rm -e SSH_USER -e SSH_HOST -e SSH_KEY -e WORKDIR apihackers/remote run-my-command with params

Environment variables

SSH_USER: the user to connect with. Default to root

SSH_HOST: the remote host to connect to

SSH_KEY: the private ssh key to authenticate with

WORKDIR: an optionnal directory into which command will be executed

DEBUG: if set to true, print some debug infos (ie. echo commands)

Examples

Gitlab CI

Circle CI