Skip to content

Commit

Permalink
Fix etcdctl uid/gid
Browse files Browse the repository at this point in the history
- the high uid/gid of /usr/local/bin/etcdctl prevents image being run in
  circleci because of userns issue

https://circleci.com/docs/2.0/high-uid-error/
  • Loading branch information
Ryan Luckie authored and hangxie committed May 14, 2020
1 parent 7af2520 commit 9451cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ function layer_install_apps_not_provided_by_os_packages() {
echo "Install etcdctl." && \
export ORG="etcd-io" && export REPO="etcd" && export VERSION=$(get_latest_github_release_version "${ORG}" "${REPO}") && export ARTIFACT="etcdctl" && \
curl -sSfL https://github.com/"${ORG}"/"${REPO}"/releases/download/v"${VERSION}"/"${REPO}"-v"${VERSION}"-linux-amd64.tar.gz | tar xz && \
mv "${REPO}"*/${ARTIFACT} /usr/local/bin/${ARTIFACT} && rm -rf "${REPO}"* && \
chown root:root "${REPO}"*/${ARTIFACT} && mv "${REPO}"*/${ARTIFACT} /usr/local/bin/${ARTIFACT} && rm -rf "${REPO}"* && \
echo "Install fluxctl." && \
export ORG="fluxcd" && export REPO="flux" && export VERSION=$(get_latest_github_release_version "${ORG}" "${REPO}") && export ARTIFACT="fluxctl" && \
curl -sSfLo /usr/local/bin/"${ARTIFACT}" https://github.com/"${ORG}"/"${REPO}"/releases/download/"${VERSION}"/"${ARTIFACT}"_linux_amd64 && \
Expand Down

0 comments on commit 9451cfe

Please sign in to comment.