forked from hyperledger-cello/cello
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Kubernetes Agent for dockerhub
Kubernetes Agent for dockerhub changes Updates hyperledger-cello#73 Signed-off-by: Manank Patni <manank321@gmail.com>
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Dockerfile for hyperledger fabirc kubernetes operator agent | ||
# | ||
# @see https://github.com/hyperledger/cello/blob/master/src/agent/fabric-operator/README.md | ||
# | ||
|
||
# Get all necessary source code from github | ||
FROM alpine/git AS downloader | ||
RUN cd /tmp && git init cello && cd cello && \ | ||
git remote add origin https://github.com/hyperledger/cello.git && \ | ||
git config core.sparsecheckout true && \ | ||
echo "src/agent/fabric-operator/*" >> .git/info/sparse-checkout && \ | ||
git pull --depth=1 origin master | ||
|
||
RUN wget https://storage.googleapis.com/kubernetes-release/release/\ | ||
`wget -O - https://storage.googleapis.com/kubernetes-release/release/stable.txt`\ | ||
/bin/linux/amd64/kubectl && chmod +x kubectl && \ | ||
mv kubectl /usr/local/bin/kubectl && \ | ||
apk update && \ | ||
apk add jq gettext curl wget bash | ||
|
||
ENV HOME /home | ||
COPY --from=downloader /tmp/cello/src/agent/fabric-operator/deploy/ /home/app/deploy | ||
COPY --from=downloader /tmp/cello/src/agent/fabric-operator/agent/ /home/app | ||
WORKDIR /home/app | ||
ENV KUBECONFIG /home/.kube/config | ||
|
||
CMD bash /home/app/agent_operation.sh | ||
|