mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-03 15:55:17 -07:00
dev: add helper run.sh script (#860)
This commit is contained in:
1 parent
8f10b2829a
commit
eb1eedecd2
2 files changed
+19
-4
No files matched your search
@@ -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.
|
||||
Executable
+10
@@ -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 \
|
||||
"$@"
|
||||
Reference in new issue
Block a user