Skip to content

Commit 6f902c6

Browse files
swallezJoshMock
andauthored
Move new implementation to the main branch (#146)
Co-authored-by: Josh Mock <[email protected]>
1 parent 5c19aea commit 6f902c6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+5208
-6907
lines changed

.buildkite/docker-push.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@
22

33
set -euo pipefail
44

5-
version_tag=$(jq -r ".version" ./package.json)
5+
version_tag=$(grep '^version = ' Cargo.toml | sed -e 's/[^"]*"//' -e 's/".*//')
66
elastic_image="docker.elastic.co/mcp/elasticsearch"
77

8+
# set up multi-arch image builder
9+
docker buildx create \
10+
--name multi-arch \
11+
--driver docker-container \
12+
--driver-opt default-load=true \
13+
--platform linux/amd64,linux/arm64 \
14+
--bootstrap
15+
816
# build image
9-
docker buildx create --use --name builder
10-
docker buildx inspect --bootstrap
11-
docker buildx build -t "$elastic_image:$version_tag" --platform linux/amd64,linux/arm64 --builder builder --load .
17+
docker buildx build -t "$elastic_image:$version_tag" --builder multi-arch .
18+
19+
# tag image
1220
docker tag "$elastic_image:$version_tag" "$elastic_image:latest"
1321

1422
# push to docker.elastic.co

.dockerignore

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
.buildkite
2-
.github
3-
.nvmrc
4-
dist
1+
npm-package
52
docs
6-
renovate.json
7-
scripts
8-
node_modules
9-
catalog-info.yaml
10-
yarn.lock
3+
target
4+
.idea
5+
.vscode

.env-example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# The MCP server looks for `.env` files to populate environment variables that aren't already set
2+
# Copy and edit this file (it's listed in .gitignore)
3+
4+
ES_URL="http://localhost:9200"
5+
ES_API_KEY="<my-api-key>"

.gitignore

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
1-
dist
2-
node_modules
3-
yarn.lock
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
debug/
4+
target/
5+
6+
# These are backup files generated by rustfmt
7+
**/*.rs.bk
8+
9+
# MSVC Windows builds of rustc generate these, which store debugging information
10+
*.pdb
11+
12+
# Generated by cargo mutants
13+
# Contains mutation testing data
14+
**/mutants.out*/
15+
16+
.idea/
17+
.vscode/
18+
419
.env
5-
.idea
6-
.vscode

0 commit comments

Comments
 (0)