This repository has been archived by the owner on Jun 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 00ba51e Author: maxmcd <max.t.mcdonnell@gmail.com> Date: Tue Jul 17 13:11:35 2018 -0400 Update readme commit ce6c30b Author: maxmcd <max.t.mcdonnell@gmail.com> Date: Tue Jul 17 13:03:19 2018 -0400 Add tests to travis commit 5f4f797 Author: maxmcd <max.t.mcdonnell@gmail.com> Date: Tue Jul 17 12:59:28 2018 -0400 Handle incremental build with full cached deno build in build-cache commit d2864fa Author: maxmcd <max.t.mcdonnell@gmail.com> Date: Wed Jul 4 11:26:07 2018 -0400 Ls third party commit 114e153 Author: maxmcd <max.t.mcdonnell@gmail.com> Date: Wed Jun 27 11:43:39 2018 -0400 fix gn gen command commit cfc2118 Author: maxmcd <max.t.mcdonnell@gmail.com> Date: Wed Jun 27 11:41:30 2018 -0400 Third party cache dir commit f311e4b Author: maxmcd <max.t.mcdonnell@gmail.com> Date: Wed Jun 27 11:35:44 2018 -0400 Echo command commit 2e1fd17 Author: maxmcd <max.t.mcdonnell@gmail.com> Date: Wed Jun 27 11:26:21 2018 -0400 Use absolute volume path commit c2263cf Author: maxmcd <max.t.mcdonnell@gmail.com> Date: Wed Jun 27 11:22:05 2018 -0400 Don’t need to make cache directories commit 50a2e6a Author: maxmcd <max.t.mcdonnell@gmail.com> Date: Wed Jun 27 11:20:12 2018 -0400 Attempt better cached travis build commit fcc8815 Author: maxmcd <max.t.mcdonnell@gmail.com> Date: Fri Jun 22 14:14:49 2018 -0400 Create build cache for deno2, remove deno1 commit 77c4510 Author: maxmcd <max.t.mcdonnell@gmail.com> Date: Fri Jun 22 10:06:25 2018 -0400 Deno2 fixes from /ry/deno/.travis.yml
- Loading branch information
Showing
6 changed files
with
47 additions
and
82 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
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
FROM maxmcd/deno:_build-cache | ||
|
||
# Will not exit cleanly before make populates proto structs | ||
RUN go get -u github.com/ry/deno/... || true | ||
RUN git pull origin master | ||
RUN ./tools/build_third_party.py | ||
RUN gn gen out/Default/ --args='is_debug=false use_allocator="none" cc_wrapper="ccache" use_custom_libcxx=false use_sysroot=false' | ||
RUN ccache -s | ||
RUN ninja -C out/Default/ :all | ||
|
||
WORKDIR $GOPATH/src/github.com/ry/deno | ||
RUN make | ||
|
||
CMD make |
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
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 |
---|---|---|
@@ -1,47 +1,36 @@ | ||
FROM golang:1.10-stretch | ||
FROM phusion/baseimage | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
unzip \ | ||
ca-certificates \ | ||
# Deps for v8worker2 build | ||
libgtk-3-dev \ | ||
pkg-config \ | ||
ccache \ | ||
xz-utils \ | ||
lbzip2 \ | ||
libglib2.0 \ | ||
curl \ | ||
gnupg \ | ||
build-essential \ | ||
git \ | ||
&& apt-get clean -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ENV PATH="/usr/lib/ccache/:$PATH" | ||
RUN mkdir -p /root/.ccache/ && touch /root/.ccache/ccache.conf | ||
ENV CCACHE_SLOPPINESS=time_macros | ||
ENV CCACHE_CPP2=yes | ||
|
||
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \ | ||
&& apt-get update && apt-get install -y nodejs \ | ||
&& npm install -g yarn | ||
|
||
RUN wget https://github.com/google/protobuf/releases/download/v3.1.0/protoc-3.1.0-linux-x86_64.zip \ | ||
&& unzip protoc-3.1.0-linux-x86_64.zip \ | ||
&& mv bin/protoc /usr/local/bin \ | ||
&& rm -rf include \ | ||
&& rm readme.txt \ | ||
&& rm protoc-3.1.0-linux-x86_64.zip | ||
RUN curl -sSf https://sh.rustup.rs | sh -s -- -y | ||
ENV PATH=/root/.cargo/bin:$PATH | ||
|
||
RUN go get -u github.com/golang/protobuf/protoc-gen-go | ||
RUN go get -u github.com/jteeuwen/go-bindata/... | ||
RUN cd /opt/ && git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | ||
ENV PATH=$PATH:/opt/depot_tools | ||
|
||
# v8worker2 build wants a valid git config | ||
RUN git config --global user.email "you@example.com" | ||
RUN git config --global user.name "Your Name" | ||
RUN cd /opt/ && git clone https://github.com/ry/deno.git | ||
WORKDIR /opt/deno | ||
RUN ./tools/build_third_party.py | ||
RUN gn gen out/Default/ --args='is_debug=false use_allocator="none" cc_wrapper="ccache" use_custom_libcxx=false use_sysroot=false' | ||
RUN ccache -s | ||
RUN ninja -C out/Default/ :all | ||
|
||
# Pulling submodules manually, errors abound with go get | ||
# See: https://github.com/ry/deno/issues/92 | ||
RUN mkdir -p $GOPATH/src/github.com/ry/v8worker2 | ||
RUN cd $GOPATH/src/github.com/ry/v8worker2 \ | ||
&& git clone https://github.com/ry/v8worker2.git . \ | ||
&& rm -rf v8 \ | ||
&& git clone --depth 1 https://chromium.googlesource.com/v8/v8.git \ | ||
&& rm -rf depot_tools \ | ||
&& git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git \ | ||
&& git submodule update --init --recursive \ | ||
&& python -u ./build.py --use_ccache \ | ||
&& rm -rf $GOPATH/src/github.com/ry/v8worker2/v8/build \ | ||
&& rm -rf $GOPATH/src/github.com/ry/v8worker2/v8/.git \ | ||
&& rm -rf $GOPATH/src/github.com/ry/v8worker2/v8/third_party \ | ||
&& rm -rf $GOPATH/src/github.com/ry/v8worker2/v8/test \ | ||
&& rm -rf $GOPATH/src/github.com/ry/v8worker2/depot_tools |
This file was deleted.
Oops, something went wrong.
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