Sign inSign up

michaelkuk/compass

By michaelkuk

Updated almost 11 years ago

Ruby Sass and Compass in docker

Image
1

229

michaelkuk/compass repository overview

Compass Image

was created in order to not pollute my system with Ruby just in order to compile some .scss files.

It has no entrypoint specified so user can launch any of the following binaries:

  • ruby
  • sass
  • compass

Usage

I recommend creating simple bash script files and putting them to /home//bin folder (valid for Ubuntu)

ruby
#!/bin/bash

docker run --rm -it -v $(pwd):$(pwd) -w $(pwd) michaelkuk/compass ruby $@
sass
#!/bin/bash

docker run --rm -it -v $(pwd):$(pwd) -w $(pwd) michaelkuk/compass sass $@
compass
#!/bin/bash

docker run --rm -it -v $(pwd):$(pwd) -w $(pwd) michaelkuk/compass compass $@

Issues

You can verify that the scripts are working by checking versions of all above.

source ~/.profile

ruby -v

sass -v

compass -v

If you are having issues launching the scripts try the following commands:

chmod +x /home/<USER>/bin/sass
chmod +x /home/<USER>/bin/compass
chmod +x /home/<USER>/bin/ruby

Tag summary

Content type

Image

Digest

sha256:b69530cf6

Size

267.9 MB

Last updated

almost 11 years ago

docker pull michaelkuk/compass