An Alternative version of cowsay showing a colored raspberry for ARM CPUs
288
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.
$ 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>
:justsaying is the plain cowsay showing the raspberry
:fortune text from fortune goes into cowsay
no 'latest' !
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"]
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
This is taken from here: https://gist.github.com/maciakl/0c0cee608a0e96e28a69 color codes changed to make it work with cowsay.
just for education
Content type
Image
Digest
Size
60.9 MB
Last updated
about 8 years ago
docker pull tiny69/raspberrysay:fortune