|
79 | 79 | "description": "Default option" |
80 | 80 | }, |
81 | 81 | "Get Logs": { |
82 | | - "command": "docker-compose logs", |
| 82 | + "command": "docker compose logs", |
83 | 83 | "option": "$CONTAINER", |
84 | 84 | "description": "Get the logs of a container." |
85 | 85 | }, |
86 | 86 | "List Containers": { |
87 | | - "command": "docker-compose ps -a", |
| 87 | + "command": "docker compose ps -a", |
88 | 88 | "option": "", |
89 | 89 | "description": "Get a list of containers." |
90 | 90 | }, |
91 | 91 | "Kill Containers": { |
92 | | - "command": "docker-compose kill", |
| 92 | + "command": "docker compose kill", |
93 | 93 | "option": "", |
94 | 94 | "description": "Get a list of containers." |
95 | 95 | }, |
96 | 96 | "Start Sourcegraph": { |
97 | | - "command": "docker-compose up -d", |
| 97 | + "command": "docker compose up -d", |
98 | 98 | "option": "", |
99 | 99 | "description": "Builds, (re)creates, starts, and attaches to containers for Sourcegraph. `-d` flag starts the container in the detached mode where the container runs in the background." |
100 | 100 | }, |
101 | 101 | "Shutdown Sourcegraph": { |
102 | | - "command": "docker-compose down", |
| 102 | + "command": "docker compose down", |
103 | 103 | "option": "", |
104 | 104 | "description": "Stops containers and removes containers, networks, volumes, and images created by docker up." |
105 | 105 | }, |
106 | 106 | "Run Bash Shell": { |
107 | | - "command": "docker-compose exec -it", |
| 107 | + "command": "docker compose exec -it", |
108 | 108 | "option": "$CONTAINER", |
109 | 109 | "command2": "bash", |
110 | 110 | "description": "This allows you to execute an interactive bash shell on a running container." |
111 | 111 | }, |
112 | | - "Access pgsql database": { |
113 | | - "command": "docker exec -it pgsql psql -U sg", |
114 | | - "option": "", |
115 | | - "description": "This allows you to access the main database and run psql commands on a running container." |
116 | | - }, |
117 | | - "Access codeintel database": { |
118 | | - "command": "docker exec -it codeintel-db psql -U sg", |
119 | | - "option": "", |
120 | | - "description": "This allows you to access codeintel database and run psql commands on a running container." |
| 112 | + "Access frontend or codeintel DB postgres shell": { |
| 113 | + "command": "docker compose exec -it", |
| 114 | + "option": "$CONTAINER", |
| 115 | + "command2": "psql -U sg", |
| 116 | + "description": "Access the postgres shell for the frontend or code-intel databases." |
| 117 | + }, |
| 118 | + "Access Codeinsights DB postgres shell": { |
| 119 | + "command": "docker compose exec -it", |
| 120 | + "option": "$CONTAINER", |
| 121 | + "command2": "psql -U postgres", |
| 122 | + "description": "Access the postgres shell for the code insights database" |
121 | 123 | }, |
122 | 124 | "Generate the database dumps": { |
123 | | - "command": "docker exec pgsql sh -c 'pg_dump -C --username sg sg' > sourcegraph_db.out", |
| 125 | + "command": "docker compose exec pgsql sh -c 'pg_dump -C --username sg sg' > sourcegraph_db.out", |
124 | 126 | "option": "", |
125 | 127 | "description": "This allows you to generate the database dumps for the main database. Replace pgsql to codeintel-db for codeintel-db." |
126 | 128 | } |
|
0 commit comments