-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c08f27b
commit e7e71e1
Showing
11 changed files
with
489 additions
and
529 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,18 @@ | ||
from ruby:3.0.0-slim | ||
from ruby:2.7.2-slim | ||
|
||
RUN apt update && apt -y upgrade | ||
RUN apt install -y \ | ||
bison \ | ||
gcc \ | ||
gcc-arm-linux-gnueabi \ | ||
git \ | ||
make \ | ||
qemu \ | ||
qemu-kvm \ | ||
qemu-system-arm | ||
RUN apt install -y bison make git gcc gcc-arm-linux-gnueabi qemu qemu-kvm qemu-system-arm | ||
|
||
RUN gem update --system | ||
|
||
ARG USER_ID | ||
RUN useradd -m -u $USER_ID mrubyc | ||
RUN mkdir /work && chown mrubyc /work | ||
|
||
USER mrubyc | ||
|
||
VOLUME /work/mrubyc | ||
COPY --chown=mrubyc Gemfile /work/mrubyc/ | ||
COPY --chown=mrubyc Gemfile.lock /work/mrubyc/ | ||
RUN git clone https://github.com/mruby/mruby /root/mruby | ||
ARG MRUBY_TAG | ||
RUN cd /root/mruby; git checkout $MRUBY_TAG; make | ||
|
||
USER root | ||
WORKDIR /work/mrubyc | ||
VOLUME /root/mrubyc | ||
COPY Gemfile /root/mrubyc/ | ||
COPY Gemfile.lock /root/mrubyc/ | ||
WORKDIR /root/mrubyc | ||
RUN bundle install | ||
|
||
USER mrubyc | ||
ENV CFLAGS="-DMRBC_USE_MATH=1 -DMAX_SYMBOLS_COUNT=500" | ||
|
||
RUN git clone https://github.com/mruby/mruby /work/mruby | ||
ARG MRUBY_TAG | ||
RUN cd /work/mruby; git fetch --prune; git checkout $MRUBY_TAG; make clean && make | ||
|
||
CMD ["bundle", "exec", "mrubyc-test", "-e", "10", "-p", "/work/mruby/build/host/bin/mrbc"] | ||
CMD ["bundle", "exec", "mrubyc-test", "-e", "100", "-p", "/root/mruby/build/host/bin/mrbc"] |
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,3 +1,3 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "mrubyc-test", "~> 0.6.1" | ||
gem "mrubyc-test", "~> 0.6" |
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,31 +1,32 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
activesupport (6.1.1) | ||
activesupport (6.0.3.4) | ||
concurrent-ruby (~> 1.0, >= 1.0.2) | ||
i18n (>= 1.6, < 2) | ||
minitest (>= 5.1) | ||
tzinfo (~> 2.0) | ||
zeitwerk (~> 2.3) | ||
i18n (>= 0.7, < 2) | ||
minitest (~> 5.1) | ||
tzinfo (~> 1.1) | ||
zeitwerk (~> 2.2, >= 2.2.2) | ||
concurrent-ruby (1.1.7) | ||
i18n (1.8.7) | ||
i18n (1.8.5) | ||
concurrent-ruby (~> 1.0) | ||
minitest (5.14.3) | ||
mrubyc-test (0.6.1) | ||
minitest (5.14.2) | ||
mrubyc-test (0.6.0) | ||
activesupport (~> 6.0) | ||
rufo (~> 0.12) | ||
thor (~> 1.0) | ||
rufo (0.12.0) | ||
thor (1.0.1) | ||
tzinfo (2.0.4) | ||
concurrent-ruby (~> 1.0) | ||
zeitwerk (2.4.2) | ||
thread_safe (0.3.6) | ||
tzinfo (1.2.7) | ||
thread_safe (~> 0.1) | ||
zeitwerk (2.4.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
mrubyc-test (~> 0.6.1) | ||
mrubyc-test (~> 0.6) | ||
|
||
BUNDLED WITH | ||
2.2.5 | ||
2.1.4 |
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
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
Oops, something went wrong.