Sign inSign up

tiny69/raspberrysay

By tiny69

Updated about 8 years ago

An Alternative version of cowsay showing a colored raspberry for ARM CPUs

Image
0

288

tiny69/raspberrysay repository overview

The Idea comes from a docker tutorial that I cannot find anymore, is based on docker/whalesay
This is for ARM based architecture, based on a raspbian image. Tested on raspberrypi 3B+ so far.

How to use this image

$ docker run tiny69/raspberrysay:justsaying cowsay boo

 _____
< boo >
 -----
    \
     \
      \     
       .~~.   .~~.
      '. \ ' ' / .'
       .~ .~~~..~.
      : .~.'~'.~. :
     ~ (   ) (   ) ~
    ( : '~'.~.'~' : )
     ~ .~ (   ) ~. ~
      (  : '~' :  )  Raspberry Pi
       '~ .~~~. ~'
           '~'

or

$ docker run tiny69/raspberrysay:fortune

After each run you will have a remaining container, see docker ps -a Restart the same container with docker start -i <container-id or -name>

Tags

:justsaying is the plain cowsay showing the raspberry

:fortune text from fortune goes into cowsay

no 'latest' !

Dockerfile justsaying

FROM resin/rpi-raspbian:stretch

# install cowsay, 
# and move the "default.cow" out of the way 
# so we can overwrite it with "raspberry.cow"
RUN apt-get -y update \
    && apt-get install -y cowsay --no-install-recommends \
    && apt-get clean && rm -rf /var/lib/apt/lists/* \
    && mv /usr/share/cowsay/cows/default.cow /usr/share/cowsay/cows/orig-default.cow

# "cowsay" installs to /usr/games
ENV PATH $PATH:/usr/games

COPY raspberry.cow /usr/share/cowsay/cows/
RUN ln -sv /usr/share/cowsay/cows/raspberry.cow /usr/share/cowsay/cows/default.cow

CMD ["cowsay"]

Dockerfile fortune

FROM resin/rpi-raspbian:stretch

# install cowsay, 
# and move the "default.cow" out of the way 
# so we can overwrite it with "raspberry.cow"
RUN apt-get -y update \
    && apt-get install -y cowsay fortunes fortune-mod --no-install-recommends \
    && apt-get clean && rm -rf /var/lib/apt/lists/* \
    && mv /usr/share/cowsay/cows/default.cow /usr/share/cowsay/cows/orig-default.cow

# "cowsay" installs to /usr/games
ENV PATH $PATH:/usr/games

COPY raspberry.cow /usr/share/cowsay/cows/
RUN ln -sv /usr/share/cowsay/cows/raspberry.cow /usr/share/cowsay/cows/default.cow

CMD /usr/games/fortune -a | cowsay

Raspberry Pi ASCII Art

This is taken from here: https://gist.github.com/maciakl/0c0cee608a0e96e28a69 color codes changed to make it work with cowsay.

Purpose

just for education

Tag summary

Content type

Image

Digest

Size

60.9 MB

Last updated

about 8 years ago

docker pull tiny69/raspberrysay:fortune