Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

7ws/docker-python-fabric

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

python-nodejs

A Python image that includes Fabric.

How to use

$ ls
tasks.py

$ docker run --rm -it -v $(pwd):/app emyller/python-fabric -l
[task list]

SSH

In order to execute SSH commands, you have to share your private key with the container and pass some additional parameters so that fabric.connection.Connection can work. This is how you'd do it:

$ docker run --rm -it \
    -v $(pwd):/app \
    -v $(pwd)/my-key.pem:/data/ssh-key \
    emyller/python-fabric my-ssh-task -H my-host -i /data/ssh-key

There are also other forms of configuration in Fabric 2, if you want to make that easier.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages