Skip to content

Commit

Permalink
Add dockerfile and helper script for deploying kuberneteth testnet (e…
Browse files Browse the repository at this point in the history
…thereum#3)

* Add dockerfile for kuberneteth bootnode

* Add script to push docker containers needed for kuberneteth to GCR
  • Loading branch information
asaj authored and marekolszewski committed May 25, 2018
1 parent a9194a4 commit b22967e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile.kubeboot
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM golang:1.10-alpine

RUN apk add --update go make gcc musl-dev linux-headers ca-certificates openssl bash

ADD . /go-ethereum

RUN \
update-ca-certificates && \
(cd /go-ethereum && make all) && \
cp /go-ethereum/build/bin/bootnode /bootnode && \
cp /go-ethereum/build/bin/geth /geth && \
apk del go make gcc musl-dev linux-headers && \
rm -rf /go-ethereum && rm -rf /var/cache/apk/*

RUN \
wget https://raw.githubusercontent.com/MaximilianMeister/kubernet-eth/master/scripts/start_boot.sh -O /start_boot.sh && \
chmod +x /start_boot.sh

EXPOSE 30301

ENTRYPOINT ["/start_boot.sh"]
11 changes: 11 additions & 0 deletions dockerize_testnet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
PROJECT_NAME=$1

docker build . -t testnet-geth
docker build . -f Dockerfile.kubeboot -t testnet-boot
docker tag testnet-geth:latest gcr.io/$PROJECT_NAME/testnet-geth
docker tag testnet-boot:latest gcr.io/$PROJECT_NAME/testnet-boot
docker push gcr.io/$PROJECT_NAME/testnet-geth
docker push gcr.io/$PROJECT_NAME/testnet-boot


0 comments on commit b22967e

Please sign in to comment.