Skip to content

Instantly share code, notes, and snippets.

@scpeters
Created December 22, 2020 01:03
Show Gist options
  • Save scpeters/4eaf5703b21ad251d0e616e07dc7ecb4 to your computer and use it in GitHub Desktop.
Save scpeters/4eaf5703b21ad251d0e616e07dc7ecb4 to your computer and use it in GitHub Desktop.
problem with off-your-rocker
$ mkdir -p off_your_rocker/venv
$ cd off_your_rocker/venv
$ python3.7 -m venv .
$ cd off_your_rocker/venv
$ . bin/activate
(venv) $ pip install wheel
Collecting wheel
Using cached https://files.pythonhosted.org/packages/65/63/39d04c74222770ed1589c0eaba06c05891801219272420b40311cd60c880/wheel-0.36.2-py2.py3-none-any.whl
Installing collected packages: wheel
Successfully installed wheel-0.36.2
(venv) $ pip install off-your-rocker
Collecting off-your-rocker
Using cached https://files.pythonhosted.org/packages/d6/5a/d984ea60fe2bb01abee5cd353a2dd63106c53f27d7dc3ad9f2c1a8cbbc98/off_your_rocker-0.1.0-py3-none-any.whl
Collecting rocker (from off-your-rocker)
Using cached https://files.pythonhosted.org/packages/02/a2/d6fd8c3efdc06ff55ac5ab61909c7a2744f7f1e4cb8581cc3621c06db6ac/rocker-0.2.3-py3-none-any.whl
Collecting pexpect (from rocker->off-your-rocker)
Using cached https://files.pythonhosted.org/packages/39/7b/88dbb785881c28a102619d46423cb853b46dbccc70d3ac362d99773a78ce/pexpect-4.8.0-py2.py3-none-any.whl
Collecting empy (from rocker->off-your-rocker)
Using cached https://files.pythonhosted.org/packages/3b/95/88ed47cb7da88569a78b7d6fb9420298df7e99997810c844a924d96d3c08/empy-3.3.4.tar.gz
Collecting packaging (from rocker->off-your-rocker)
Using cached https://files.pythonhosted.org/packages/b1/a7/588bfa063e7763247ab6f7e1d994e331b85e0e7d09f853c59a6eb9696974/packaging-20.8-py2.py3-none-any.whl
Collecting docker (from rocker->off-your-rocker)
Using cached https://files.pythonhosted.org/packages/ef/b7/eb7b7138bb5e6d28cf84fa586fe594619ca097b6207caa5f2ebe0c66a4ed/docker-4.4.0-py2.py3-none-any.whl
Collecting ptyprocess>=0.5 (from pexpect->rocker->off-your-rocker)
Using cached https://files.pythonhosted.org/packages/d1/29/605c2cc68a9992d18dada28206eeada56ea4bd07a239669da41674648b6f/ptyprocess-0.6.0-py2.py3-none-any.whl
Collecting pyparsing>=2.0.2 (from packaging->rocker->off-your-rocker)
Using cached https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl
Collecting requests!=2.18.0,>=2.14.2 (from docker->rocker->off-your-rocker)
Using cached https://files.pythonhosted.org/packages/29/c1/24814557f1d22c56d50280771a17307e6bf87b70727d975fd6b2ce6b014a/requests-2.25.1-py2.py3-none-any.whl
Collecting six>=1.4.0 (from docker->rocker->off-your-rocker)
Using cached https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl
Collecting websocket-client>=0.32.0 (from docker->rocker->off-your-rocker)
Using cached https://files.pythonhosted.org/packages/4c/5f/f61b420143ed1c8dc69f9eaec5ff1ac36109d52c80de49d66e0c36c3dfdf/websocket_client-0.57.0-py2.py3-none-any.whl
Collecting idna<3,>=2.5 (from requests!=2.18.0,>=2.14.2->docker->rocker->off-your-rocker)
Using cached https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl
Collecting chardet<5,>=3.0.2 (from requests!=2.18.0,>=2.14.2->docker->rocker->off-your-rocker)
Using cached https://files.pythonhosted.org/packages/19/c7/fa589626997dd07bd87d9269342ccb74b1720384a4d739a1872bd84fbe68/chardet-4.0.0-py2.py3-none-any.whl
Collecting urllib3<1.27,>=1.21.1 (from requests!=2.18.0,>=2.14.2->docker->rocker->off-your-rocker)
Using cached https://files.pythonhosted.org/packages/f5/71/45d36a8df68f3ebb098d6861b2c017f3d094538c0fb98fa61d4dc43e69b9/urllib3-1.26.2-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests!=2.18.0,>=2.14.2->docker->rocker->off-your-rocker)
Using cached https://files.pythonhosted.org/packages/5e/a0/5f06e1e1d463903cf0c0eebeb751791119ed7a4b3737fdc9a77f1cdfb51f/certifi-2020.12.5-py2.py3-none-any.whl
Building wheels for collected packages: empy
Running setup.py bdist_wheel for empy ... done
Stored in directory: /home/scpeters/.cache/pip/wheels/bd/e0/93/4558733f591dd47c560c86ddf8e8c81f5a0ae0493c52e4c56f
Successfully built empy
Installing collected packages: ptyprocess, pexpect, empy, pyparsing, packaging, idna, chardet, urllib3, certifi, requests, six, websocket-client, docker, rocker, off-your-rocker
Successfully installed certifi-2020.12.5 chardet-4.0.0 docker-4.4.0 empy-3.3.4 idna-2.10 off-your-rocker-0.1.0 packaging-20.8 pexpect-4.8.0 ptyprocess-0.6.0 pyparsing-2.4.7 requests-2.25.1 rocker-0.2.3 six-1.15.0 urllib3-1.26.2 websocket-client-0.57.0
(venv) $ rocker --help
usage: rocker [-h] [--noexecute] [--nocache] [--pull] [-v] [--dev-helpers]
[--devices [DEVICES [DEVICES ...]]] [--env NAME[=VALUE]
[NAME[=VALUE] ...]] [--env-file ENV_FILE] [--git] [--home]
[--name NAME] [--network {none,host,bridge}] [--nvidia]
[--pulse] [--ssh] [--user] [--x11]
[--mode {interactive,non-interactive,dry-run}]
[--extension-blacklist [EXTENSION_BLACKLIST [EXTENSION_BLACKLIST ...]]]
image [command [command ...]]
A tool for running docker with extra options
positional arguments:
image
command
optional arguments:
-h, --help show this help message and exit
--noexecute Deprecated (default: False)
--nocache
--pull
-v, --version show program's version number and exit
--dev-helpers add development tools emacs and byobu to your
environment (default: None)
--devices [DEVICES [DEVICES ...]]
Mount devices into the container. (default: None)
--env NAME[=VALUE] [NAME[=VALUE] ...], -e NAME[=VALUE] [NAME[=VALUE] ...]
set environment variables (default: [])
--env-file ENV_FILE set environment variable via env-file (default: None)
--git Use the global Git settings from the host
(/etc/gitconfig and ~/.gitconfig) (default: None)
--home mount the users home directory (default: None)
--name NAME Name of the container. (default: )
--network {none,host,bridge}
What network configuration to use. (default: None)
--nvidia Enable nvidia (default: None)
--pulse mount pulse audio devices (default: None)
--ssh Forward SSH agent into the container (default: None)
--user mount the current user's id and run as that user
(default: None)
--x11 Enable x11 (default: None)
--mode {interactive,non-interactive,dry-run}
Choose mode of operation for rocker (default:
interactive)
--extension-blacklist [EXTENSION_BLACKLIST [EXTENSION_BLACKLIST ...]]
Prevent any of these extensions from being loaded.
(default: [])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment