-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hardcode some config for opensearch.
- Loading branch information
Showing
5 changed files
with
54 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,7 @@ | |
/log/* | ||
/tmp/* | ||
/*/log/* | ||
/*/tmp/* | ||
/*/tmp/* | ||
|
||
# Ignore dockerfile | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ COPY elasticgraph-support/lib/elastic_graph/version.rb ./elasticgraph-support/li | |
# Use Ruby 3.x as the base image | ||
FROM ruby:3.4 | ||
|
||
WORKDIR /app | ||
WORKDIR /app/elasticgraph | ||
|
||
|
||
# Copy files from the first build stage. | ||
|
@@ -33,5 +33,28 @@ RUN bundle install | |
# Copy the entire project | ||
COPY . . | ||
|
||
# Running the new command will commit to git. Setup defaults | ||
RUN git config --global user.email "[email protected]" | ||
RUN git config --global user.name "Demo User" | ||
|
||
# Use the elasticgraph gem local to the container | ||
RUN sed -i 's|"#{VERSION}"|path: \"/app/elasticgraph\"|g' elasticgraph/lib/elastic_graph/cli.rb | ||
|
||
|
||
# Why does this need to run a second time? | ||
RUN bundle install | ||
|
||
WORKDIR /app | ||
|
||
|
||
RUN BUNDLE_GEMFILE=/app/elasticgraph/Gemfile bundle exec elasticgraph new demo | ||
|
||
|
||
|
||
WORKDIR /app/demo | ||
|
||
# Reference ES from the docker container | ||
RUN sed -i 's/localhost:9293/elasticsearch:9200/g' config/settings/local.yaml | ||
|
||
|
||
CMD ["bundle", "exec", "rake", "boot_in_container[${PORT,--host=0.0.0.0,true]"] | ||
CMD ["bundle", "exec", "rake", "index_fake_data:artists" ,"boot_graphiql[9393,--host=0.0.0.0,true]"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters