Skip to content
Snippets Groups Projects
Commit fabccff9 authored by Valery Sizov's avatar Valery Sizov
Browse files

Using docker where gems are pre-installed

parent 24982017
No related branches found
No related tags found
No related merge requests found
Pipeline #
image: "ruby:2.3"
image: "registry.gitlab.com/gitlab-org/gitlab-elasticsearch-git"
 
services:
- elasticsearch:5.1
Loading
Loading
@@ -6,11 +6,15 @@ services:
variables:
ELASTICSEARCH_HOST: "elasticsearch"
 
before_script:
- apt-get update -yqqq; apt-get -o dir::cache::archives="vendor/apt" install -y -qq --force-yes libicu-dev cmake
- gem install bundler # Bundler is not installed with the image
- bundle install -j $(nproc) # Install dependencies
rspec:
script:
- rspec
- pwd
- whoami
- echo $GEM_HOME
- echo $BUNDLE_PATH
- echo $BUNDLE_BIN
- ls -la
- bundle install -j $(nproc)
- gem list
- bundle env
- bundle exec rspec spec
FROM ruby:2.3.3
RUN apt-get -y update && apt-get install -y libicu-dev cmake
RUN mkdir /temporary
ADD . /temporary
WORKDIR /temporary
RUN gem install charlock_holmes -v '0.7.3'
RUN bundle install
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment