forked from thiagopradi/octopus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (33 loc) · 1.3 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM ruby:2.5
RUN apt-get update && apt-get install -y \
mysql-client \
postgresql \
vim
# Install the IBM DB2 CLI driver. The ibm_db gem install
# will also do this, but it has no status output and takes
# several minutes.
ENV IBM_DB_HOME=/opt/ibm/clidriver
RUN wget http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz -O /tmp/linuxx64_odbc_cli.tar.gz \
&& mkdir -p /opt/ibm \
&& tar -C /opt/ibm -xzvf /tmp/linuxx64_odbc_cli.tar.gz
# Set up DB2 libraries and catalogs
COPY docker/db2-ld.conf /etc/ld.so.conf.d/
COPY docker/db2dsdriver.cfg /opt/ibm/clidriver/cfg/
RUN ldconfig
WORKDIR /usr/src/app
# Pull in a full profile for gem/bundler
SHELL ["/bin/bash", "-l", "-c"]
RUN gem install --no-document bundler -v 1.16.6
# Uncomment if you don't want to use Appraisal
# Copy only what's needed for bundler
#COPY Gemfile ar-octopus.gemspec /usr/src/app/
#COPY lib/octopus/version.rb /usr/src/app/lib/octopus/version.rb
#RUN bundle install --path=.bundle
# Uncomment if you want to copy the octopus repo
# into the Docker image itself. docker-compose is
# set up to use a bind mount of your local directory
# from the host
#COPY . /usr/src/app
# This just keeps the container running. Replace
# this with a rails server if you want
CMD ["/bin/sleep", "infinity"]