Repository navigation
PLCC in Docker
Stoney Jackson edited this page Apr 18, 2023
·
5 revisions
- https://docs.docker.com/desktop/install/windows-install/
- https://docs.docker.com/desktop/install/mac-install/
- https://docs.docker.com/desktop/install/linux-install/
On Windows, open a command prompt (e.g., Start menu -> type cmd), and position it in the directory where you want to work. Then run the following.
docker run -it --rm -v "%cd%:/code" -w /code ghcr.io/ourplcc/plcc:latestOn MacOS or Linux, open a terminal running a standard shell (e.g., bash, zsh, etc), and position it in the directory where you want to work. Then run the following
docker run -it --rm -v "$PWD:/code" -w /code ghcr.io/ourplcc/plcc:latestNow you are inside a bash shell, positioned in /code, within Alpine linux, with PLCC and its dependencies installed, and the current directory (/code) contains all your code. You can now use all of PLCC's commands.
Feel free to use your favorite editor on your host machine to edit files.
When you are done, type exit. All the files you generated will be in your current working directory and its subdirectories.
None