mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
update dev-setup commands
- Dockerfile moved - remove sudo from commands (usually not needed, better added by users where it is)
This commit is contained in:
@@ -14,14 +14,14 @@ The easiest & safest way to develop & test TLJH is with `Docker <https://www.doc
|
|||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
sudo docker build -t tljh-systemd .
|
docker build -t tljh-systemd . -f integration-tests/Dockerfile
|
||||||
|
|
||||||
#. Run a docker container with the image in the background, while bind mounting
|
#. Run a docker container with the image in the background, while bind mounting
|
||||||
your TLJH repository under ``/srv/src``.
|
your TLJH repository under ``/srv/src``.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
sudo docker run \
|
docker run \
|
||||||
--privileged \
|
--privileged \
|
||||||
--detach \
|
--detach \
|
||||||
--name=tljh-dev \
|
--name=tljh-dev \
|
||||||
@@ -33,7 +33,7 @@ The easiest & safest way to develop & test TLJH is with `Docker <https://www.doc
|
|||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
sudo docker exec -it tljh-dev /bin/bash
|
docker exec -it tljh-dev /bin/bash
|
||||||
|
|
||||||
#. Run the bootstrapper from inside the container (see step above):
|
#. Run the bootstrapper from inside the container (see step above):
|
||||||
The container image is already set up to default to a ``dev`` install, so
|
The container image is already set up to default to a ``dev`` install, so
|
||||||
@@ -41,7 +41,7 @@ The easiest & safest way to develop & test TLJH is with `Docker <https://www.doc
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
python3 /srv/src/bootstrap/bootstrap.py
|
python3 /srv/src/bootstrap/bootstrap.py --admin admin
|
||||||
|
|
||||||
The primary hub environment will also be in your PATH already for convenience.
|
The primary hub environment will also be in your PATH already for convenience.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user