forked from BallAerospace/COSMOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
69 lines (59 loc) · 1.72 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# This Dockerfile is for development of COSMOS
# See Docker Hub: ballaerospace/cosmos for production docker images
FROM ubuntu:18.04
RUN apt-get update -y && apt-get install -y \
cmake \
default-jdk \
freeglut3 \
freeglut3-dev \
gcc \
g++ \
git \
iproute2 \
libffi-dev \
libgdbm-dev \
libgdbm5 \
libgstreamer-plugins-base1.0-dev \
libgstreamer1.0-dev \
libncurses5-dev \
libreadline6-dev \
libsmokeqt4-dev \
libssl-dev \
libyaml-dev \
net-tools \
postgresql-server-dev-all \
qt4-default \
qt4-dev-tools \
ruby2.5 \
ruby2.5-dev \
vim \
xterm \
zlib1g-dev
RUN gem install rake --no-document
# We require a local certificate file so set that up.
# You must place a valid cert.pem file in your COSMOS development folder for this work
# Comment out these lines if this is not required in your environment
COPY cert.pem /devel/cert.pem
ENV SSL_CERT_FILE /devel/cert.pem
ENV CURL_CA_BUNDLE /devel/cert.pem
ENV REQUESTS_CA_BUNDLE /devel/cert.pem
RUN git config --global http.sslCAinfo /devel/cert.pem
# Download and install jruby
RUN cd /opt \
&& curl -G https://repo1.maven.org/maven2/org/jruby/jruby-dist/9.2.9.0/jruby-dist-9.2.9.0-bin.tar.gz > jruby.tar.gz \
&& tar xvf jruby.tar.gz \
&& mv jruby-9.2.9.0 jruby
ARG COSMOS_REPO=https://github.com/BallAerospace/COSMOS.git
# Download and setup COSMOS devel area
RUN gem install bundler --no-document
RUN cd /devel \
&& git clone ${COSMOS_REPO} COSMOS \
&& cd /devel/COSMOS \
&& bundle install
ARG COSMOS_DOCKER_REPO=https://github.com/BallAerospace/cosmos-docker.git
# Download COSMOS docker files to support docker release
RUN cd /devel \
&& git clone ${COSMOS_DOCKER_REPO}
ENV COSMOS_DEVEL /devel/COSMOS
WORKDIR /devel/COSMOS
CMD bash