Skip to content

Commit

Permalink
Update Kubernetes Agent for dockerhub
Browse files Browse the repository at this point in the history
Kubernetes Agent for dockerhub changes

Updates hyperledger-cello#73

Signed-off-by: Manank Patni <manank321@gmail.com>
  • Loading branch information
Man-Jain committed Nov 15, 2019
1 parent 541c4cb commit 8dfaf9d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/agent/fabric-operator/agent/Dockerfile
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

0 comments on commit 8dfaf9d

Please sign in to comment.