• Stars
    star
    103
  • Rank 321,862 (Top 7 %)
  • Language
    Shell
  • License
    GNU Lesser Genera...
  • Created about 9 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

👾 Run commands inside docker containers to keep your OS untouched using bash alias

docker-aliases

Run commands inside docker containers to keep your OS untouched using bash alias. The aliases are saved into the file called "aliases.sh", and it will use, mount files and open ports in a container instead of using the one in the host/main operative system.

The main concept is to run a comand using its docker container/image like that:

docker run -it --rm -v $(pwd):/directory -w /directory node node

But this repository contains some aliases to "replace" the main command:

alias node="docker run -it --rm -v $(pwd):/directory -w /directory node node"
alias npm="docker run -it --rm -v $(pwd):/directory -w /directory node npm"
# then run
node --version
npm --version

You can use these commands:

  • ruby
  • rails
  • php
  • node
  • npm
  • coffee ( coffeescript )
  • python ( python 3.4 )
  • python2.7
  • django-admin.py
  • nginx
  • redis-cli
  • redis-server
  • postgres
  • psql
  • ... more! See aliases.sh file!

How to use

Add, in your ~/.bash_profile file this line, replacing ~/PATH_OF_REPOSITORY with the PATH/directory of this repository.

source ~/PATH_OF_REPOSITORY/aliases.sh

And then it will start using these commands, inside a docker container each time you run any of them.

Note: Some commands may require some more configuration in order to work properly. Feel free to create a pull request or open an issue in case you find a solution!

More Repositories

1

python-digitalocean

🐍🐳 Python module to manage Digital Ocean droplets
Python
1,248
star
2

wallets

💰Multi-crypto wallets/keys generator for cold storage with built-in encryption.
Go
56
star
3

backpack

Template system and package manager to deploy Hashicorp Nomad Jobs. Mirror on GitHub, Official repo available on Gitlab.com
Go
18
star
4

django-smartcc

A django Middleware that will help to set cache-control header on the views.
Python
16
star
5

steroids

Steroids is a set of tools to help python developers to build real-time ready, non-blocking, web application reducing efforts and time.
Python
10
star
6

terraforming-bitcoin

Quick and easy setup to build Bitcoin nodes with Terraform on Multiple Locations
HCL
9
star
7

cachet-k8s-cronjob

A simple Kubernetes Cronjob to send custom metrics to Cachet
Shell
5
star
8

siderus-daemon

Daemon for a Peer-to-Peer network system
Python
4
star
9

202003-immutable-infrastructure-vault

Example of Immutable Infrastructure with Vault, using Packer, Terraform, Ansible and AWS
HCL
4
star
10

bitstamp-coffee-bot

Example of a working Bitcoin trading bot for Bitstamp using NodeJS and CoffeeScript
CoffeeScript
4
star
11

OpenProfile

Open your identity to the web
JavaScript
3
star
12

dlike

Decentralized (IPFS/OrbitDB based) Like Widget for any static website. Mirror of GitLab repo
JavaScript
3
star
13

admin-tools

Set of scripts to help administrator to perform some boring stuff wit just some commands.
Shell
2
star
14

torquery

Python module helps to perform a lot of HTTP queries using the onion router.
Python
2
star
15

docker-pubssh

My personal docker image with a specific public ssh key.
2
star
16

playbooks

[Moved to GitLab] My Ansible Playbooks
HCL
2
star
17

dhouse

Green Map for renting/selling houses.
JavaScript
2
star
18

fun-blockchain

Writing a blockchain node from scratch, just for fun.
Go
2
star
19

simple-explorer

Simple Explorer is a BIP-37 programmable blockchain explorer.
CoffeeScript
2
star
20

twitch-meme-generator

[GitLab Mirror] Twitch bot to generate meme and display them on the stream
Go
2
star
21

greatdiary

Automatically exported from code.google.com/p/greatdiary
Python
1
star
22

screeps

Screeps.com scripts
JavaScript
1
star
23

mymosaic

Automatically exported from code.google.com/p/mymosaic
PHP
1
star
24

easy-rsync-clone

Shell script to clone files into an external device.
Shell
1
star
25

InnLabAffinity

Innovaction Lab Affinity
JavaScript
1
star
26

blog

[Moved to GitLab] My own personal blog.
JavaScript
1
star
27

hk-svcs-bridge

Go HomeKit bridge for Services (SystemD or others)
Go
1
star
28

blog.setale.me

My own personal blog
HTML
1
star
29

koalalorenzo

My GitHub Profile
1
star
30

CacheLayer

URL-Cache layer, to keep live API/URL when unavailable.
Python
1
star
31

PhiFi

Phishing Fighter!
Python
1
star
32

koalalorenzo.github.io

My personal website.
HTML
1
star