dev: add helper run.sh script (#860)

This commit is contained in:
Geoffrey Gilmore authored and GitHub committed 2022-09-26 17:13:12 +00:00
1 parent 8f10b2829a
commit eb1eedecd2
2 files changed
+19 -4

No files matched your search

+9 -4
View File
@@ -3,13 +3,18 @@
For use developing Sourcegraph's docker-compose deployment only.
For deployments, refer to the official [Sourcegraph with Docker Compose](https://docs.sourcegraph.com/admin/install/docker-compose) documentation.
This folder includes a helper script, [run.sh](./run.sh), that will run the `docker-compose` command (with any provided arguments) while automatically specifying the appropriate set of overlays.
Example usage:
```sh
docker-compose \
-f docker-compose/docker-compose.yaml \
-f docker-compose/jaeger/docker-compose.yaml \
-f docker-compose/dev/docker-compose.yaml up
./run.sh up -d
```
The above will deploy Sourcegraph on [http://localhost:8080](http://localhost:8080) with the indicated overlays.
```sh
./run.sh down
```
The above will tear down the local Sourcegraph instance that was set up using the previous command.
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE[0]}")/../.."
set -euxo pipefail
docker-compose \
-f docker-compose/docker-compose.yaml \
-f docker-compose/jaeger/docker-compose.yaml \
-f docker-compose/dev/docker-compose.yaml \
"$@"