Run API using remote Elastic Search#33
Run API using remote Elastic Search#33andreformento wants to merge 2 commits intookfn-brasil:mainfrom
Conversation
| run-standalone: build | ||
| podman run --rm \ | ||
| --env QUERIDO_DIARIO_ELASTICSEARCH_INDEX=$(REMOTE_ELASTICSEARCH_INDEX) \ | ||
| --env QUERIDO_DIARIO_ELASTICSEARCH_HOST=$(REMOTE_ELASTICSEARCH_HOST) \ | ||
| --env QUERIDO_DIARIO_DATABASE_CSV=$(QUERIDO_DIARIO_DATABASE_CSV) \ | ||
| --publish $(API_PORT):$(API_PORT) \ | ||
| --user=$(UID):$(UID) \ | ||
| $(IMAGE_NAMESPACE)/$(IMAGE_NAME):$(IMAGE_TAG) \ | ||
| python main |
There was a problem hiding this comment.
Is this working in your env? I'm not sure if this will work. With this command, it will run the process inside a container/namespace which is not guarantee to has the Elasticsearch running.
There was a problem hiding this comment.
the idea is to use with another Elasticsearch, e.g., when you setup with real data using data processing to create a real scenery.
The problem here is do a make run and try to create another Elasticsearch when you are running Elasticsearch with querido-diario-data-processing. Because of that, you need to run with 2 parameters as you can see at README:
REMOTE_ELASTICSEARCH_INDEX="querido-diario" REMOTE_ELASTICSEARCH_HOST="my.ip" make run-standaloneI think another option is to create all environment in one place. But I don't know if is a good idea.
What you think about this @jvanz ?
set base image Update Makefile
9c81c01 to
1b3cdb6
Compare
adf2084 to
8352b14
Compare
cc @jvanz @giuliocc
Useful for connect on Elastic Search created by querido-diario-data-processing