Skip to content

Commit

Permalink
Add Dockerfile for experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
ksss committed Jun 26, 2018
1 parent 2822437 commit 6dc40f2
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/Dockerfile
@@ -0,0 +1,6 @@
FROM alpine:3.6
RUN apk add --no-cache git gcc make bison ruby musl-dev
RUN git clone --depth 1 https://github.com/mruby/mruby.git
RUN git clone --depth 1 https://github.com/ksss/mruby-spec.git
RUN mkdir -p /mruby-spec/unsupported/signal
RUN echo "Signal.list doesn't contain other signals than the known list" > /mruby-spec/unsupported/signal/list.txt
13 changes: 13 additions & 0 deletions docker/build_config.rb
@@ -0,0 +1,13 @@
MRuby::Build.new do |conf|
toolchain :gcc
enable_debug
conf.gembox 'full-core'
end
MRuby::Build.new('test') do |conf|
toolchain :gcc
enable_debug
conf.gembox 'full-core'
conf.enable_bintest
conf.enable_test
conf.gem "/mruby-signal"
end
11 changes: 11 additions & 0 deletions docker/docker-compose.yml
@@ -0,0 +1,11 @@
version: "2"
services:
test:
build:
context: .
dockerfile: Dockerfile
volumes:
- ../:/mruby-signal
working_dir: /mruby
environment:
MRUBY_CONFIG: /mruby-signal/docker/build_config.rb

0 comments on commit 6dc40f2

Please sign in to comment.