Skip to content

Various implementations of the 99 Bottles of Beer song

Notifications You must be signed in to change notification settings

yvesonline/playground-99

Repository files navigation

Synopsis

This repository contains implementations of a program which outputs the lyrics to the 99 Bottles of Beer song in a variety of programming languages which I touched in my career. This is popular variety of the "Hello, World!" program.

Requirements

All implementations are accompanied by a Dockerfile in order to run it in a Docker container. Docker Compose is used to orchestrate the different implementations. Please make sure to have both installed. It's still possible to run the individual source code with the corresponding compiler, have a look in the Dockerfile to find out the installation steps.

Usage

Run all implementations by using this command, make sure you're in the root directory:

$ docker-compose up

An individual implementation can be run like this:

$ docker-compose up <programming_language>
$ docker-compose up freepascal  # e.g. like this for Free Pascal

If you want to play around with the programming language yourself you can start and keep the container alive like this:

$ docker run -it playground-99_<programming_language> /bin/bash
$ docker run -it playground-99_freepascal /bin/bash  # e.g. like this for Free Pascal
root@4c90a50c6e9f:/# fpc 99.pas  # then like this

If you changed the code and you want to rebuild the image use this:

$ docker-compose build --no-cache <programming_language>
$ docker-compose build --no-cache freepascal  # e.g. like this for Free Pascal

About

Various implementations of the 99 Bottles of Beer song

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published