Closed eatoncns closed 3 years ago
As an example in our crawler_stats repo we have an upgrade command like:
crawler_stats
command: [ curl, -X, PUT, 'http://crawler-stats-elasticsearch:9200/crawler_stats_dev/crawl/_mapping', -H, 'Content-Type: application/json', -d@/opt/crawler_stats/mappings/mappings.json ]
After change in https://github.com/EDITD/kubetools/pull/95 this is now " ".joined to override the entrypoint. The problem in this case is that the space in Content-Type: application/json is then interpreted by the shell and the command fails.
" ".join
Content-Type: application/json
['docker-compose', '--project-directory', '.', '--project-name', 'crawlerstatsd803929dprcacheoption', '--file', '/jenkins/workspace/ub_crawler_stats_pr-cache-option/.kubetools/d803929dprcacheoption-compose.yml', 'run', '--entrypoint', 'curl -X PUT http://crawler-stats-elasticsearch:9200/crawler_stats_dev/crawl/_mapping -H Content-Type: application/json -d@/opt/crawler_stats/mappings/mappings.json', 'webserver']
As an example in our
crawler_stats
repo we have an upgrade command like:After change in https://github.com/EDITD/kubetools/pull/95 this is now
" ".join
ed to override the entrypoint. The problem in this case is that the space inContent-Type: application/json
is then interpreted by the shell and the command fails.