-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-etl
34 lines (29 loc) · 1.03 KB
/
Dockerfile-etl
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
FROM ruby:3.0.3
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9 && \
echo "deb http://repos.azulsystems.com/debian stable main" | tee /etc/apt/sources.list.d/zulu.list && \
apt-get update -qq && \
apt-get install -y curl \
git \
build-essential \
libpq-dev \
nodejs \
libpq-dev \
postgresql-client \
zulu-8 \
zip \
--fix-missing \
--no-install-recommends && \
gem update bundler
# Set up the shell RC file
COPY export-root-env.sh .env /root/
RUN chmod +x /root/export-root-env.sh && echo "source /root/export-root-env.sh" >> /root/.bashrc && echo "export SCRIPT_ENV=development" >> /root/.bashrc
# Install some additional files
WORKDIR /aprexis
COPY wait-for-it.sh setup-for-etl.sh ./
# Disable IPV6
RUN cp /etc/hosts /tmp/hosts.original && sed -e 's/localhost ip6-localhost/ip6-localhost/' /tmp/hosts.original >/tmp/hosts
WORKDIR /aprexis-etl
COPY ./aprexis-etl/Gemfile ./aprexis-etl/Gemfile.lock ./
RUN bundle install
# Install the application
ADD ./aprexis-etl /aprexis-etl