blob: 71e51be64fd42f1595597a31e3247ad3d69fbe82 (
plain)
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
|
FROM onap/policy-jdk-debian:2.0.2
RUN addgroup sdc
RUN adduser --gecos "sdc sdc,1,1,1" --disabled-password --ingroup sdc --shell /bin/sh sdc
USER sdc
RUN mkdir ~/.cassandra/ && \
echo '[cql]' > ~/.cassandra/cqlshrc && \
echo 'version=3.4.4' >> ~/.cassandra/cqlshrc
USER root
RUN apt-get update --allow-releaseinfo-change && apt-get install -y python-pip && \
python -m pip install --upgrade pip \
pip install cqlsh==6.0.0 && \
mkdir ~/.cassandra/ && \
echo '[cql]' > ~/.cassandra/cqlshrc && \
echo 'version=3.4.4' >> ~/.cassandra/cqlshrc && \
set -ex && \
apt-get install -y \
make \
gcc \
ruby \
ruby-dev \
libffi-dev \
libxml2-dev && \
gem install public_suffix -v 4.0.7 --no-document && \
gem install multipart-post -v 2.2.0 --no-document && \
gem install etc -v 1.3.0 --no-document && \
gem install chef:13.8.5 berkshelf:6.3.1 io-console:0.4.6 webrick --no-document && \
apt-get update -y && apt-get remove bash -y --allow-remove-essential && \
apt-get install -y binutils && apt-get clean && gem cleanup
USER sdc
COPY --chown=sdc:sdc chef-solo /home/sdc/chef-solo/
COPY --chown=sdc:sdc chef-repo/cookbooks /home/sdc/chef-solo/cookbooks/
COPY --chown=sdc:sdc startup.sh /home/sdc/
RUN chmod 770 /home/sdc/startup.sh
ENTRYPOINT [ "/home/sdc/startup.sh" ]
|