Skip to content

Commit f0032b5

Browse files
- Edits all docker-compose commands with 'docker compose' instead.
- Condenses database commands
1 parent 63a2f31 commit f0032b5

1 file changed

Lines changed: 18 additions & 16 deletions

File tree

src/utils/commands.json

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -79,48 +79,50 @@
7979
"description": "Default option"
8080
},
8181
"Get Logs": {
82-
"command": "docker-compose logs",
82+
"command": "docker compose logs",
8383
"option": "$CONTAINER",
8484
"description": "Get the logs of a container."
8585
},
8686
"List Containers": {
87-
"command": "docker-compose ps -a",
87+
"command": "docker compose ps -a",
8888
"option": "",
8989
"description": "Get a list of containers."
9090
},
9191
"Kill Containers": {
92-
"command": "docker-compose kill",
92+
"command": "docker compose kill",
9393
"option": "",
9494
"description": "Get a list of containers."
9595
},
9696
"Start Sourcegraph": {
97-
"command": "docker-compose up -d",
97+
"command": "docker compose up -d",
9898
"option": "",
9999
"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."
100100
},
101101
"Shutdown Sourcegraph": {
102-
"command": "docker-compose down",
102+
"command": "docker compose down",
103103
"option": "",
104104
"description": "Stops containers and removes containers, networks, volumes, and images created by docker up."
105105
},
106106
"Run Bash Shell": {
107-
"command": "docker-compose exec -it",
107+
"command": "docker compose exec -it",
108108
"option": "$CONTAINER",
109109
"command2": "bash",
110110
"description": "This allows you to execute an interactive bash shell on a running container."
111111
},
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"
121123
},
122124
"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",
124126
"option": "",
125127
"description": "This allows you to generate the database dumps for the main database. Replace pgsql to codeintel-db for codeintel-db."
126128
}

0 commit comments

Comments
 (0)