forked from ethereum/go-ethereum
-
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.
Add dockerfile and helper script for deploying kuberneteth testnet (e…
…thereum#3) * Add dockerfile for kuberneteth bootnode * Add script to push docker containers needed for kuberneteth to GCR
- Loading branch information
1 parent
a9194a4
commit b22967e
Showing
2 changed files
with
32 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,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"] |
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,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 | ||
|
||
|