This repository contains the Dockerfile that has been used to create the docker container "doccam".
Doccam is an Ubuntu-cased container providing KRoC, the occam/occam-pi language platform.
For further information concerning the KRoC installation process please visit:
- (http://projects.cs.kent.ac.uk/projects/kroc/trac/wiki/Installation) and
How to enable the occam compiler tools
Just change the current working directory to
... and run the following command (don't forget the
How to run a HelloWorld
Create a project folder (e. g.
/home/root/dev/occam/hello) and change the working directory to this newly created directory.
Copy and paste the HelloWorld example given in the occam subdirectory and use the cat command to save it into a
cat > hello.occ << EOF #INCLUDE "course.module" PROC hello (CHAN BYTE out!) out.string ("Hello, world!*n", 0, out!) : EOF
The sourcecode above has been taken from this repo.
After that you can try to compile the application using this command:
occbuild --program hello.occ
The application can be started easily by calling the occbuild output: