Create a bash command for opening a shell to a running Docker container
Fetch container ID from docker ps and run docker-bash 880e6a9d9601 where "880e6a9d9601" is the container ID
| // I'm tired of extensions that automatically: | |
| // - show welcome pages / walkthroughs | |
| // - show release notes | |
| // - send telemetry | |
| // - recommend things | |
| // | |
| // This disables all of that stuff. | |
| // If you have more config, leave a comment so I can add it!! | |
| { |
| FROM williamyeh/ansible:debian9 | |
| WORKDIR /tmp | |
| COPY . /tmp | |
| RUN echo localhost > inventory | |
| RUN ansible-playbook -v -i inventory monitor-node.yml --connection=local |
| #!/bin/bash | |
| ulimit -n 2048 | |
| ######################################################################## | |
| ### CONSTANTS | |
| ######################################################################## | |
| MONGO_INSTANCE_CONFIG_SERVER_PORT="27017" | |
| MONGO_INSTANCE_QUERY_ROUTER_PORT="27011" | |
| MONGO_INSTANCE_SHARD_1_PORT="27012" |
| /// LIST ALL REGISTERED VMs | |
| /// Will returns the ID of each VM. In my case the id will be "1". | |
| vim-cmd vmsvc/getallvms | |
| /// POWER ON A SINGLE VM FROM IT'S ID | |
| vim-cmd vmsvc/power.on 1 | |
| /// POWER OFF A SINGLE VM FROM IT'S ID | |
| vim-cmd vmsvc/power.on 1 |
| var debugWatchers = function(selector, dump) { | |
| var target, i, checkInsideFn, jq, items, | |
| nb_watchers = 0, | |
| nb_scopes = 0, | |
| scopes_id = {}, | |
| scopeArray = []; | |
| if(typeof jQuery == 'undefined') { | |
| jq = document.createElement('script'); | |
| jq.type = 'text/javascript'; |
| { | |
| "vm_name": "my-vm", | |
| "remote_type": "esx5", | |
| "remote_host": "exsi.myhost.com", | |
| "remote_password": "myEsxiRootPassword", | |
| "remote_datastore": "datastore1", | |
| "type": "vmware-iso", | |
| "output_directory": "output-vm", | |
| "floppy_files": [ | |
| "preseed.cfg", |
| <dict> | |
| <key>name</key> | |
| <string>Diff insertion</string> | |
| <key>scope</key> | |
| <string>markup.inserted.diff, meta.diff.header.to-file</string> | |
| <key>settings</key> | |
| <dict> | |
| <key>foreground</key> | |
| <string>#aad2ac</string> | |
| <key>background</key> |