update README with Docker instructions
This commit is contained in:
parent
6a95336a9d
commit
ae7028b6f6
19
README.md
19
README.md
|
@ -5,7 +5,7 @@ The OpenPLC Project consists of three sub-projects:
|
|||
2. [Programming editor](http://www.openplcproject.com/plcopen-editor)
|
||||
3. [HMI builder](http://www.openplcproject.com/reference-installing-scadabr)
|
||||
|
||||
To install:
|
||||
## Installation:
|
||||
```bash
|
||||
git clone https://github.com/thiagoralves/OpenPLC_v3.git
|
||||
cd OpenPLC_v3
|
||||
|
@ -23,3 +23,20 @@ Where `[platform]` can be:
|
|||
`rpi` - Install OpenPLC on a Raspberry Pi
|
||||
|
||||
`custom` - Skip all specific package installation and tries to install OpenPLC assuming your system already has all dependencies met. This option can be useful if you're trying to install OpenPLC on an unsuported Linux platform or had manually installed all the dependency packages before.
|
||||
|
||||
### Building, Installing and Running inside Docker
|
||||
Make sure [`docker` is installed](https://docs.docker.com/install/linux/docker-ce/ubuntu/)
|
||||
|
||||
#### Build
|
||||
```
|
||||
# instead of running install.sh as stated above, run:
|
||||
docker build -t openplc:v3 .
|
||||
```
|
||||
|
||||
#### RUN
|
||||
_Devices can be passed to the `docker` daemon using the `-v` flag (e.g. `-v /dev/ttyACM0:/dev/ttyACM0`)_
|
||||
|
||||
```bash
|
||||
docker run -it --rm -p 8080:8080 openplc:v3
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue