`Docker`_ is the recommended installation method for a Patchwork development
environment. To install Patchwork:
-1. Install `Docker`_ and `docker-compose`_.
+#. Install `Docker`_ and `docker-compose`_.
-2. Clone the Patchwork repo::
+#. Clone the Patchwork repo::
$ git clone https://github.com/getpatchwork/patchwork.git
-3. (Optional) Create a ``.env`` file in the root directory of the project and
- store your ``UID`` and ``GID`` attributes there::
-
- $ cd patchwork && printf "UID=$(id -u)\nGID=$(id -g)\n" > .env
-
- This should only be necessary if you have a ``UID`` or ``GID`` other than
- ``1000``.
-
-4. Build the images. This will download a number of packages from the internet,
+#. Build the images. This will download a number of packages from the internet,
and compile several versions of Python::
$ docker-compose build
-5. Run `docker-compose up`::
+#. Run `docker-compose up`::
$ docker-compose up
Mac users might need to enable Rosetta emulation in the docker engine.
-#. (Optional) Create a ``.env`` file in the root directory of the project and
- store your ``UID`` and ``GID`` attribute there.
-
- .. code-block:: shell
-
- $ echo "UID=$UID" > .env
- $ echo "GID=`id -g`" >> .env
-
- This should only be necessary if you have a ``UID`` or ``GID`` other than
- ``1000``. For more information on why this is necessary, refer to this
- `docker-compose issue`__.
-
- __ https://github.com/docker/compose/issues/2380
-
#. Build the images. This will download over 200MB from the internet:
.. code-block:: shell