Skip to content

Instantly share code, notes, and snippets.

@tqyq
Last active August 31, 2017 03:14
Show Gist options
  • Save tqyq/cbdb34680cd890a6a4bb663b99abeefc to your computer and use it in GitHub Desktop.
Save tqyq/cbdb34680cd890a6a4bb663b99abeefc to your computer and use it in GitHub Desktop.
docker fake command shell
vi /usr/bin/xlsx
#!/bin/bash
docker run --rm -v /root/upload:/upload -v /data:/data xlsx xlsx $1 $2
vi /usr/bin/ssconvert
#!/bin/bash
docker run --rm -v /root/upload:/upload ssconvert ssconvert $1 $2 $3
vi /usr/bin/js
#!/bin/bash
docker run --rm -v /root/upload:/upload -v /data:/data xlsx timeout 5 node $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment