Files
concrete/frontends/concrete-python/docs/dev/docker.md
2023-03-08 11:23:21 +01:00

46 lines
890 B
Markdown

# Docker Setup
## Installation
Before you start this section, go ahead and install Docker. You can follow [this](https://docs.docker.com/engine/install/) official guide if you need help.
## X forwarding
### Linux.
You can use this xhost command:
```shell
xhost +localhost
```
### macOS.
To use X forwarding on macOS:
* Install XQuartz
* Open XQuartz.app application, make sure in the application parameters that `authorize network connections` are set (currently in the Security settings)
* Open a new terminal within XQuartz.app and type:
```shell
xhost +127.0.0.1
```
X server should be all set for Docker in the regular terminal.
## Building
You can use the dedicated target in the makefile to build the docker image:
```shell
make docker_build
```
## Starting
You can use the dedicated target in the makefile to start the docker session:
```shell
make docker_start
```