2020-12-02 17:31:25 -05:00
|
|
|
# Getting Started ##
|
|
|
|
|
|
|
|
This documentation intends to explain how to get penpot application and run it locally.
|
|
|
|
|
|
|
|
The simplest approach is using docker and docker-compose.
|
|
|
|
|
2021-01-27 04:55:26 -05:00
|
|
|
|
2020-12-02 17:31:25 -05:00
|
|
|
## Install Docker ##
|
|
|
|
|
2021-02-05 18:27:33 -05:00
|
|
|
Skip this section if you already have docker installed, up and running.
|
2020-12-02 17:31:25 -05:00
|
|
|
|
|
|
|
You can install docker and its dependencies from your distribution
|
2021-02-05 18:27:33 -05:00
|
|
|
repository with:
|
2020-12-02 17:31:25 -05:00
|
|
|
|
|
|
|
```bash
|
|
|
|
sudo apt-get install docker docker-compose
|
|
|
|
```
|
|
|
|
|
2021-02-05 18:27:33 -05:00
|
|
|
Or follow installation instructions from docker.com; (for Debian
|
2020-12-02 17:31:25 -05:00
|
|
|
https://docs.docker.com/engine/install/debian/).
|
|
|
|
|
|
|
|
Ensure that the docker is started and optionally enable it to start
|
|
|
|
with the system:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sudo systemctl start docker
|
|
|
|
sudo systemctl enable docker
|
|
|
|
```
|
|
|
|
|
|
|
|
And finally, add your user to the docker group:
|
|
|
|
|
|
|
|
```basb
|
|
|
|
sudo usermod -aG docker $USER
|
|
|
|
```
|
|
|
|
|
2021-02-05 18:27:33 -05:00
|
|
|
This will make use of the docker without `sudo` command all the time.
|
2020-12-02 17:31:25 -05:00
|
|
|
|
2021-01-26 16:14:27 -05:00
|
|
|
NOTE: probably you will need to re-login again to make this change
|
2020-12-02 17:31:25 -05:00
|
|
|
take effect.
|
|
|
|
|
|
|
|
|
|
|
|
## Start penpot application ##
|
|
|
|
|
|
|
|
You can create it from scratch or take a base from the [penpot
|
|
|
|
repository][1]
|
|
|
|
|
|
|
|
[1]: https://raw.githubusercontent.com/penpot/penpot/develop/docker/images/docker-compose.yaml
|
|
|
|
|
|
|
|
```bash
|
|
|
|
wget https://raw.githubusercontent.com/penpot/penpot/develop/docker/images/docker-compose.yaml
|
|
|
|
```
|
|
|
|
|
|
|
|
And then:
|
|
|
|
|
|
|
|
```bash
|
2021-01-26 16:14:27 -05:00
|
|
|
docker-compose -p penpot -f docker-compose.yaml up
|
2020-12-02 17:31:25 -05:00
|
|
|
```
|
2021-01-26 16:14:27 -05:00
|
|
|
|
|
|
|
The docker compose file contains the essential configuration for
|
|
|
|
getting the application running, and many essential configurations
|
2021-02-05 18:27:33 -05:00
|
|
|
already explained in the comments. All other configuration options are
|
2021-02-03 06:23:07 -05:00
|
|
|
explained in [configuration guide](./05-Configuration-Guide.md).
|