diff --git a/.gitignore b/.gitignore index 589d00dc..f1a14831 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ pkg/ Gemfile.lock .project .buildpath +vendor/ *~ diff --git a/Dockerfile b/Dockerfile index e544ff13..c23a2346 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,7 +34,9 @@ RUN apt-get install -y \ libxslt-dev \ libxml2-dev \ zlib1g-dev \ - libidn11-dev + libidn11-dev \ + pandoc \ + vim-nox ENV PATH $PATH:/opt/rakudo-pkg/bin RUN install-zef @@ -44,19 +46,24 @@ RUN zef install Pod::To::HTML2 RUN curl -L http://cpanmin.us | perl - App::cpanminus RUN cpanm --installdeps --notest Pod::Simple +RUN apt-get purge ruby -y + # Install Rbenv and Ruby RUN git clone https://github.com/rbenv/rbenv.git ~/.rbenv && echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc && echo 'eval "$(rbenv init -)"' >> ~/.bashrc RUN git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build ENV PATH $PATH:/root/.rbenv/bin:/root/.rbenv/shims RUN cd /root/.rbenv/plugins/ruby-build && git pull && cd - ENV RUBY_VERSION 3.3.0 +RUN rbenv install -l RUN rbenv install $RUBY_VERSION && rbenv global $RUBY_VERSION && rbenv rehash +RUN rbenv install --list-all RUN echo 'gem: --no-rdoc --no-ri' >> /.gemrc +RUN gem install rubygems-update && update_rubygems RUN gem install bundler:2.4.22 RUN bundle config --global build.nokogiri --use-system-libraries -RUN dpkg -i https://github.com/jgm/pandoc/releases/download/3.1.12.1/pandoc-3.1.12.1-linux-amd64.tar.gz +#RUN dpkg -i https://github.com/jgm/pandoc/releases/download/3.1.12.1/pandoc-3.1.12.1-1-amd64.deb WORKDIR /data/github-markup COPY github-markup.gemspec . diff --git a/Gemfile b/Gemfile index 0e1aa030..58f6ce6c 100644 --- a/Gemfile +++ b/Gemfile @@ -6,7 +6,7 @@ gem "posix-spawn", :platforms => :ruby gem "redcarpet", :platforms => :ruby gem "kramdown", :platforms => :jruby gem "RedCloth" -gem "commonmarker", "= 1.0.4" +gem "commonmarker", "~> 1.0.4" gem 'rdoc', '~> 6.6', '>= 6.6.2' gem 'org-ruby', '~> 0.9.12' gem 'creole', '~> 0.5.0'