diff --git a/Dockerfile-sdk b/Dockerfile-sdk index 3dc28c1..6becb4c 100644 --- a/Dockerfile-sdk +++ b/Dockerfile-sdk @@ -5,3 +5,5 @@ COPY ./build_wasm.sh / COPY *.cc *.h *.js *.proto Makefile* *.a /sdk/ RUN ./sdk_container.sh + +ENV PATH="${PATH}:/usr/local/go/bin:/root/go/bin" \ No newline at end of file diff --git a/sdk_container.sh b/sdk_container.sh index daa5aff..cb383ff 100755 --- a/sdk_container.sh +++ b/sdk_container.sh @@ -31,6 +31,17 @@ export CC=gcc-7 export CXX=g++-7 export CPP=cpp-7 +# goland + +wget https://golang.org/dl/go1.16.6.linux-amd64.tar.gz +rm -rf /usr/local/go && tar -C /usr/local -xzf go1.16.6.linux-amd64.tar.gz +rm -rf go1.16.6.linux-amd64.tar.gz +export PATH=$PATH:/usr/local/go/bin + +# bazel +go get github.com/bazelbuild/bazelisk +ln -s /root/go/bin/bazelisk /root/go/bin/bazel + # get $HOME cd