File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
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"]
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments