Skip to content

Commit 04d2480

Browse files
committed
wasmsdk image support bazel
Signed-off-by: Lei Chu <[email protected]>
1 parent fd0be84 commit 04d2480

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Dockerfile-sdk

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ COPY ./build_wasm.sh /
55
COPY *.cc *.h *.js *.proto Makefile* *.a /sdk/
66

77
RUN ./sdk_container.sh
8+
9+
ENV PATH="${PATH}:/usr/local/go/bin:/root/go/bin"

sdk_container.sh

+11
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ export CC=gcc-7
3131
export CXX=g++-7
3232
export CPP=cpp-7
3333

34+
# goland
35+
36+
wget https://golang.org/dl/go1.16.6.linux-amd64.tar.gz
37+
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.16.6.linux-amd64.tar.gz
38+
rm -rf go1.16.6.linux-amd64.tar.gz
39+
export PATH=$PATH:/usr/local/go/bin
40+
41+
# bazel
42+
go get github.com/bazelbuild/bazelisk
43+
ln -s /root/go/bin/bazelisk /root/go/bin/bazel
44+
3445
# get $HOME
3546
cd
3647

0 commit comments

Comments
 (0)