Parcourir la source

:pencil: add workspace support for docker

Jeremy Zheng il y a 4 ans
Parent
commit
7cc0dd8feb
4 fichiers modifiés avec 7 ajouts et 6 suppressions
  1. 6 5
      docker/README.md
  2. BIN
      docker/documents/start.png
  3. BIN
      docker/documents/workspace.png
  4. 1 1
      docker/first.sh

+ 6 - 5
docker/README.md

@@ -20,12 +20,15 @@
   ```
 
 - Enjoy it!
-  
+
+  ![workspace](documents/workspace.png)
+  ![start](documents/start.png)
+
   ```bash
   # for the first time start
-  ./docker/ubuntu/first.sh
+  ./docker/first.sh
   # fot the next time start
-  ./docker/ubuntu/next.sh
+  ./docker/next.sh
   
   # start servers
   > sudo supervisord -c /etc/supervisor/supervisord.conf
@@ -37,8 +40,6 @@
   > /etc/redis/redis.sh
   ```
 
-  ![start](documents/start.png)
-
   - RabbitMQ: `http://localhost:15672`, user `guest`, password `guest`
   - Redis cluster ports `6371~6376`
   - Minio server: `http://localhost:9001` user `admin`, password `12345678`

BIN
docker/documents/start.png


BIN
docker/documents/workspace.png


+ 1 - 1
docker/first.sh

@@ -1,2 +1,2 @@
 #!/bin/sh
-podman run --name mint -it --userns=keep-id --hostname=palm --user=$(id -ur):$(id -gr) --network host --events-backend=file -v $PWD:/workspace:z palm
+podman run --name mint -it --userns=keep-id --hostname=palm --user=$(id -ur):$(id -gr) --network host --events-backend=file -v $PWD/..:/workspace:z palm