Skip to content

Commit

Permalink
Merge pull request #12 from hortonworks/fix-poller
Browse files Browse the repository at this point in the history
Update pollprogress
  • Loading branch information
pdarvasi authored Aug 31, 2017
2 parents 9980175 + 3f2bcfb commit d374c3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN cd /azure && npm install
ADD ./cli_tools /bin/
ADD ./azure-copy /bin/

RUN curl -L https://github.com/hortonworks/pollprogress/releases/download/v0.1.0/pollprogress_0.1.0_Linux_x86_64.tgz | tar -xz -C /bin
RUN curl -Lsf https://github.com/hortonworks/pollprogress/releases/download/v0.1.1/pollprogress_0.1.1_Linux_x86_64.tgz | tar -xz -C /bin
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/azure/bin

ENTRYPOINT ["/bin/cli_tools"]
4 changes: 2 additions & 2 deletions azure-copy
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ azure_blob_copy() {
--dest-blob $dest_blob \
--json 1>&2

local checkCmd="azure storage blob copy show -a $dest_account -k $dest_key --container $dest_container --blob $dest_blob --json | tee -a azure-copy-progress.json | jq 'if .copy.progress then .copy.progress elif .copyProgress then .copyProgress else \"42/42\" end' -r"
local checkCmd="azure storage blob copy show -a $dest_account -k $dest_key --container $dest_container --blob $dest_blob --json | tee -a azure-copy-progress.json | jq -r .copy.progress"
debug "===> CHECK PROGRESS: $checkCmd"
echo "$dest_account: $checkCmd"
}
Expand All @@ -86,7 +86,7 @@ _azure_get_account_key() {
group=$(_azure_get_account_group ${storage})
fi

azure storage account keys list -g $group $storage --json | jq -r .[].value | head -1
azure storage account keys list -g $group $storage --json | jq -r .[0].value
}

azure_latest_vhd_by_prefix() {
Expand Down

0 comments on commit d374c3c

Please sign in to comment.