Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Kubernetes Agent for dockerhub #74

Merged
merged 1 commit into from
Nov 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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