Skip to content

Commit

Permalink
Merge pull request #1 from punktDe/elastic-sync-in-docker
Browse files Browse the repository at this point in the history
TASK: Improve Docker compatibility
  • Loading branch information
daniellienert committed Mar 30, 2020
2 parents c978ffb + 1ba8e94 commit 0d24c29
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Resources/Private/Template/CopyElastic.sh.template
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env bash
export NODE_TLS_REJECT_UNAUTHORIZED=0

ssh {remoteInstance.sshOptions->f:format.raw()} -C -f -N -L 9210:{remoteConfiguration.elasticsearchHost}:{remoteConfiguration.elasticsearchPort} {remoteInstance.user}@{remoteInstance.host}
ssh {remoteInstance.sshOptions->f:format.raw()} -C -f -N -L 127.0.0.1:9210:{remoteConfiguration.elasticsearchHost}:{remoteConfiguration.elasticsearchPort} {remoteInstance.user}@{remoteInstance.host}
sshpid=$?
trap "kill $sshpid" SIGTERM SIGINT
trap "kill $sshpid" EXIT

<f:for each="{indices}" as="index">
{elasticDumpPath} \
Expand All @@ -17,5 +17,3 @@ trap "kill $sshpid" SIGTERM SIGINT
--output={localConfiguration.elasticsearchScheme}://{localConfiguration.elasticsearchHost}:{localConfiguration.elasticsearchPort}/{index.local.indexName} \
--type=data
</f:for>

kill $sshpid

0 comments on commit 0d24c29

Please sign in to comment.