Skip to content

willhallonline/docker-devtools-aliases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker DevTools

Docker DevTools is a set of Docker containers with an easy to use set of aliases to make using Dev tools easier and simpler.

Documentation on https://docker-devtools.gitlab.io (site built with Hugo!)

Let's get cooking

So, lets keep things simple. Assumptions are that you know how to use command line. So if that is not the case then you are going to struggle, but you knew that already right?

Get Docker

[https://www.docker.com/get-docker](Get Docker). This is called Docker DevTools so, if you don't have Docker installed, you are going to not be able to do anything. Docker has [https://docs.docker.com/](excellent documentation), so I am not going to repeat it here.

Clone Docker-Devtools or Download

Clone

I would recommend cloning as this would make it easier to get upgrades in the future... This does require that you have git installed. But if you don't you probably don't have Docker either.

git clone https://github.com/willhallonline/docker-devtools-aliases.git ~/.docker-devtools

Download (not recommended)

Using either curl or wget, get the file. I would recommend you save it to your home directory as ~/.docker-devtools. Whatever you save it as, remember where it is.

wget https://github.com/willhallonline/docker-devtools-aliases/archive/master.zip
unzip master.zip ~/.docker-devtools

Add to your .bashrc or .zshrc

If you are using bash or the awesome zsh or some other command line tool then you will need to add these aliases so that you can run them easily.

... (whatever you have before)
source ~/.docker-devtools/docker-devtools.sh

Run a command

Lets try with a simple command. Here is some bad css.

#id {color: brown}
  1. Save this to a file... I'll call it bad.css.
  2. Run stylelint-docker on it:
➜  ~ stylelint-docker bad.css
  1. Get stylelint output.
➜  ~ stylelint-docker bad.css

bad.css
 1:6   ✖  Expected single space after "{"  block-opening-brace-space-after
          of a single-line block
 1:12  ✖  Expected single space after ":"  declaration-colon-space-after
          with a single-line declaration
 1:16  ✖  Expected single space before     block-closing-brace-space-before
          "}" of a single-line block
 1:16  ✖  Expected a trailing semicolon    declaration-block-trailing-semicolon

--- Stylelint Complete ---
  1. Win o'clock!

Doing more

There is more you can do, you are just starting... So, lets keep going!

About

Aliases for loading different docker containers for aliases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages