-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial version of docker config for testing rspec on ubuntu.
- Loading branch information
Showing
4 changed files
with
60 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM buildpack-deps:stretch | ||
MAINTAINER github@digressed.net | ||
|
||
ENV LC_ALL C.UTF-8 | ||
|
||
# Update Ubuntu Software repository | ||
RUN apt-get update | ||
|
||
# install dependencies & utils | ||
RUN apt-get install -y \ | ||
libicu-dev \ | ||
curl \ | ||
libreadline-dev | ||
|
||
# aliases, environment | ||
RUN echo 'alias h="history"' >> /root/.bashrc | ||
RUN echo 'alias be="bundle exec"' >> /root/.bashrc | ||
ENV PATH "/root/.rbenv/bin:/root/.rbenv/shims:$PATH" | ||
|
||
# install rbenv & ruby | ||
RUN \curl -sL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | bash - | ||
RUN eval "$(rbenv init -)" | ||
|
||
ENV RUBY_VERSION=2.6.3 | ||
RUN rbenv install ${RUBY_VERSION} | ||
RUN rbenv global ${RUBY_VERSION} | ||
|
||
# mute bundle warning about root user | ||
RUN bundle config --global silence_root_warning 1 | ||
|
||
WORKDIR /gem | ||
|
||
# cleanup | ||
RUN rm -rf /var/lib/apt/lists/* |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if [[ $# -ne 1 ]]; then | ||
RUBY_VERSION=2.6.3 | ||
else | ||
RUBY_VERSION=$1 | ||
fi | ||
|
||
docker build -t edn_turbo_image:$RUBY_VERSION . |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
docker-compose run edn_turbo /bin/bash |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: "3" | ||
services: | ||
|
||
edn_turbo: | ||
image: edn_turbo_image:2.6.3 | ||
stdin_open: true | ||
tty: true | ||
volumes: | ||
- ~/.bash_history:/root/.bash_history | ||
- /Volumes/homes/ep/work/edn_turbo:/gem |