Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sidecar-client-chain33
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
sidecar-client-chain33
Commits
1f4a84f5
Commit
1f4a84f5
authored
Nov 01, 2021
by
harrylee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update sidecar-client-chain33
parent
09e01534
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
Dockerfile
Dockerfile
+17
-17
docker_entrypoint.sh
scripts/docker_entrypoint.sh
+3
-3
No files found.
Dockerfile
View file @
1f4a84f5
FROM
golang:1.14.2 as builder
RUN
mkdir
-p
/go/src/git
hub.com/meshplus/pie
r
RUN
mkdir
-p
/go/src/git
hub.com/meshplus/pie
r-client-chain33
WORKDIR
/go/src/git
hub.com/meshplus/pie
r
RUN
mkdir
-p
/go/src/git
lab.33.cn/link33/sideca
r
RUN
mkdir
-p
/go/src/git
lab.33.cn/link33/sideca
r-client-chain33
WORKDIR
/go/src/git
lab.33.cn/link33/sideca
r
# Cache dependencies
COPY
go.mod ../
pie
r-client-chain33/
COPY
go.sum ../
pie
r-client-chain33/
COPY
build/
pie
r/go.mod .
COPY
build/
pie
r/go.sum .
COPY
go.mod ../
sideca
r-client-chain33/
COPY
go.sum ../
sideca
r-client-chain33/
COPY
build/
sideca
r/go.mod .
COPY
build/
sideca
r/go.sum .
RUN
go
env
-w
GOPROXY
=
https://goproxy.cn,direct
RUN
go mod download
-x
...
...
@@ -16,14 +16,14 @@ RUN go mod download -x
#RUN apk add make
# Build real binaries
COPY
build/
pie
r .
COPY
. ../
pie
r-client-chain33/
COPY
build/
sideca
r .
COPY
. ../
sideca
r-client-chain33/
RUN
go get
-u
github.com/gobuffalo/packr/packr
RUN
make
install
RUN
cd
../
pie
r-client-chain33
&&
\
RUN
cd
../
sideca
r-client-chain33
&&
\
make chain33
&&
\
cp
build/chain33-client.so /go/bin/chain33-client.so
...
...
@@ -33,20 +33,20 @@ FROM frolvlad/alpine-glibc
WORKDIR
/root
# Copy over binaries from the builder
COPY
--from=builder /go/bin/
pie
r /usr/local/bin
COPY
./build/
pie
r/build/libwasmer.so /lib
COPY
--from=builder /go/bin/
sideca
r /usr/local/bin
COPY
./build/
sideca
r/build/libwasmer.so /lib
ENV
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib
RUN
[
"
pie
r"
,
"init"
]
RUN
[
"
sideca
r"
,
"init"
]
RUN
mkdir
-p
/root/.
pie
r/plugins
COPY
--from=builder /go/bin/*.so /root/.
pie
r/plugins/
RUN
mkdir
-p
/root/.
sideca
r/plugins
COPY
--from=builder /go/bin/*.so /root/.
sideca
r/plugins/
#COPY config/validating.wasm /root/.pier/validating.wasm
COPY
scripts/docker_entrypoint.sh /root/docker_entrypoint.sh
RUN
chmod
+x /root/docker_entrypoint.sh
COPY
config /root/.
pie
r/chain33
COPY
config/
pier.toml /root/.pier/pie
r.toml
COPY
config /root/.
sideca
r/chain33
COPY
config/
sidecar.toml /root/.sidecar/sideca
r.toml
ENV
APPCHAIN_NAME=chain33
...
...
scripts/docker_entrypoint.sh
View file @
1f4a84f5
...
...
@@ -3,6 +3,6 @@ set -e
APPCHAIN_NAME
=
$1
pier
--repo
=
/root/.pier appchain register
--name
=
${
APPCHAIN_NAME
}
--type
=
fabric
--validators
=
/root/.pier/fabric/fabric.validators
--desc
=
"appchain for test"
--version
=
1.4.3
pier
--repo
=
/root/.pier rule deploy
--path
=
/root/.pier/validating.wasm
pier
--repo
=
/root/.pie
r start
sidecar
--repo
=
/root/.sidecar appchain register
--name
=
${
APPCHAIN_NAME
}
--type
=
chain33 -
--desc
=
"appchain for test"
--version
=
v1.65.0
#sidecar --repo=/root/.sidecar
sidecar
--repo
=
/root/.sideca
r start
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment