Skip to content

Commit

Permalink
Move dockerfile to ./dev, update .dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol committed Jun 25, 2024
1 parent c792e11 commit f45a87d
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 12 deletions.
30 changes: 29 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
**/node_modules
# This file should be kept in sync with .gitignore

# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Editor directories
.idea/
.vscode/

# Test binary, built with `go test -c`
*.test

# CLI binary
/scip

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

**/node_modules/
.bin/
**/target/

# Dependency directories (remove the comment below to include it)
# vendor/
dist-newstyle/
15 changes: 5 additions & 10 deletions Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,13 @@

1. Regenerating definitions after changing the schema in [scip.proto](./scip.proto).

If you have **asdf** setup on your machine, you can use the binding generation script directly:
`./dev/generate-all-in-docker.sh`

```
./dev/proto-generate.sh
```

For the Haskell bindings, see `bindings/haskell/README.md`.
We provide a script that sets up the correct build environment in Docker
and runs the necessary regeneration steps.

You can also run the same script in a pre-configured Docker environment,
by running `./dev/generate-all-in-docker.sh` - this command will
build the environment and generate both the proto bindings, and the reprolang
parser generation. The only dependency you need is Docker.
Both the proto bindings and reprolang parser are generated.
The only dependency you need is Docker.

2. Regenerating snapshots after making changes to the CLI.
```
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion dev/build-docker-environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ cd "$(dirname "${BASH_SOURCE[0]}")/.." # cd to repo root dir

IMAGE_NAME="sourcegraph/scip-bindings-env"

docker build . -t $IMAGE_NAME -f Dockerfile.bindings && echo $IMAGE_NAME
docker build . -t $IMAGE_NAME -f ./dev/Dockerfile.bindings && echo $IMAGE_NAME

0 comments on commit f45a87d

Please sign in to comment.