Docker scripts that I wrote/tweaked useful for me.
Shell Java Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Docker Scripts

Some of the Docker scripts that I wrote/tweaked useful for me have been committed here without any warranty of any kind. These work exclusively on my OSX El Capitan machine, and may be used in yours too, but use at your own risk. I have written them according to my own convention over configuration mindset, therefore in many instances, names, ports, etc. are assigned as freely willed.

Before you start using the commands, build first:

$ make

If you'd like to build the images locally that are required by the scripts:

$ ./

If you'd like to download the images locally only, but build them:

$ ./

Now you should be able to access sweet shortcuts on a new Terminal, for example:

General Docker usage
dock                        # Starts Docker machine 
resetdock                   # Destroys current Docker VM, and reinstalls it back

cont <img-name>             # New container from the specified image name 
conts                       # List all containers
contsh <container-name>     # Log into the shell for a container
contlogs <container-name>   # Tailing logs for the specified container
rmcont <container-name>     # Remove specified container
rmconts                     # Remove all containers

imgs                        # List all images
rmimg <image-name>          # Remove a specified image
rmimgs                      # Remove all images
rmnone                      # Remove all images that are in state <none>
General commands
get                         # wget 
odoo9                       # Runs Odoo 9 Community Edition at port 10101
odoo9p <port>               # Same as above, but specified by a port
bahmni                      # (doesn't work yet) Runs Bahmni at port 10201
pg                          # Launches PostgreSQL, user: postgresql, password: postgresql, port: 10301
pgp <user> <pwd> <port>     # PostgreSQL, at the specified user, password & port
simws                       # Launches a Python simple webserver from the current directory
simwsp <port>               # Same as above, but specified by a port
                            # Known issue of aggressive caching
py <python-file>            # Executes Python script found in the currect directory, has issues
alpine                      # Launches an Alpine Linux instance 
springb <target>            # Builds the project thru Maven from current dir., and runs target jar
                            # Example: springboot target/gs-spring-boot-0.1.0.jar
springbp <target> <port>    # Runs above on a specified port
springbd                    # Runs above example on 10301 port
springbdp <port>            # Runs above example on a specified post
redis                       # Runs a Redis instance at 6379
rabbitmq                    # Runs a RabbitMQ instance namely my-rabbitmq
wrk                         # | Example: wrk 
stress                      # | Example: stress
ab                          # 
                            # Example: ab -n 100 -c 10
wpscan <url>                #
nmap                        #

Relevant Docker images: