Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
[#255] removed '-i' flag usages in docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
avasyukhin committed Apr 18, 2019
1 parent 6ea06ef commit 92e58c6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ You can run Postgres by yourself, but it's better to use Docker. If you have
Docker installed, you can do this:

$ make build # Build the project
$ make db # Download and start Postgres (wait a bit after this step)
$ make serve # Run the server

If you head to <http://localhost:9000> now, you should see the project
Expand All @@ -39,7 +38,7 @@ running. The port can be changed:
$ make serve port=7000

Note: if you get an error at the `make tables` stage, you probably haven't
waited enough. Do `make db-kill` and start from `make db` again.
waited enough. Do `make db-kill` and start from `make serve` again.

### Indexing packages

Expand Down
5 changes: 0 additions & 5 deletions docker/core/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# Create tables
.PHONY: tables
tables:
java -Dconfig.resource=production.conf -jar codesearch-core.jar -i

# Download package index. Acceptable values: {haskell, rust, ruby, javascript}
download-%:
java -Dconfig.resource=production.conf -jar codesearch-core.jar -d -l "$*"
Expand Down
3 changes: 1 addition & 2 deletions docker/docker-stack-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ services:
- /mnt/vol/index:/index
- /mnt/vol/logs:/logs
command: >
sh -c "./wait-for postgres:5432 -- make tables && \
make download-haskell update-haskell index-haskell && \
sh -c "./wait-for postgres:5432 -- make download-haskell update-haskell index-haskell && \
make download-rust update-rust index-rust && \
make download-ruby update-ruby index-ruby"
networks:
Expand Down

0 comments on commit 92e58c6

Please sign in to comment.