Skip to content

Commit b22967e

Browse files
asajmarekolszewski
authored andcommitted
Add dockerfile and helper script for deploying kuberneteth testnet (ethereum#3)
* Add dockerfile for kuberneteth bootnode * Add script to push docker containers needed for kuberneteth to GCR
1 parent a9194a4 commit b22967e

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

Dockerfile.kubeboot

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM golang:1.10-alpine
2+
3+
RUN apk add --update go make gcc musl-dev linux-headers ca-certificates openssl bash
4+
5+
ADD . /go-ethereum
6+
7+
RUN \
8+
update-ca-certificates && \
9+
(cd /go-ethereum && make all) && \
10+
cp /go-ethereum/build/bin/bootnode /bootnode && \
11+
cp /go-ethereum/build/bin/geth /geth && \
12+
apk del go make gcc musl-dev linux-headers && \
13+
rm -rf /go-ethereum && rm -rf /var/cache/apk/*
14+
15+
RUN \
16+
wget https://raw.githubusercontent.com/MaximilianMeister/kubernet-eth/master/scripts/start_boot.sh -O /start_boot.sh && \
17+
chmod +x /start_boot.sh
18+
19+
EXPOSE 30301
20+
21+
ENTRYPOINT ["/start_boot.sh"]

dockerize_testnet.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
PROJECT_NAME=$1
3+
4+
docker build . -t testnet-geth
5+
docker build . -f Dockerfile.kubeboot -t testnet-boot
6+
docker tag testnet-geth:latest gcr.io/$PROJECT_NAME/testnet-geth
7+
docker tag testnet-boot:latest gcr.io/$PROJECT_NAME/testnet-boot
8+
docker push gcr.io/$PROJECT_NAME/testnet-geth
9+
docker push gcr.io/$PROJECT_NAME/testnet-boot
10+
11+

0 commit comments

Comments
 (0)