blob: e35f8419843c2e90b1b958d7b6577c1907c9ef5c [file] [log] [blame]
sebdet30670ac2020-08-04 14:16:00 +02001FROM onap/policy-jdk-debian:2.0.1
2
3#RUN addgroup --gid 1000 sdc
4RUN addgroup sdc
5#RUN adduser --gecos "sdc sdc,1,1,1" -u 1000 --disabled-password --ingroup sdc --shell /bin/sh sdc
6RUN adduser --gecos "sdc sdc,1,1,1" --disabled-password --ingroup sdc --shell /bin/sh sdc
7USER sdc
8RUN mkdir ~/.cassandra/ && \
9 echo '[cql]' > ~/.cassandra/cqlshrc && \
10 echo 'version=3.4.4' >> ~/.cassandra/cqlshrc
11USER root
12
13RUN apt-get update && apt-get install -y python-pip && \
14 pip install cqlsh && \
15 mkdir ~/.cassandra/ && \
16 echo '[cql]' > ~/.cassandra/cqlshrc && \
17 echo 'version=3.4.4' >> ~/.cassandra/cqlshrc && \
18 set -ex && \
19 pip install cqlsh && \
20 apt-get install -y \
21 make \
22 gcc \
23 ruby \
24 ruby-dev \
25 libffi-dev \
26 libxml2-dev && \
27 gem install chef:13.8.5 berkshelf:6.3.1 io-console:0.4.6 etc webrick --no-document && \
28 apt-get update -y && \
29 apt-get install -y binutils && apt-get clean && gem cleanup
30USER sdc
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020031
MichaelMorrisa2abf6e2020-03-10 12:37:48 +000032COPY --chown=sdc:sdc chef-solo /home/sdc/chef-solo/
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020033
MichaelMorrisa2abf6e2020-03-10 12:37:48 +000034COPY --chown=sdc:sdc chef-repo/cookbooks /home/sdc/chef-solo/cookbooks/
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020035
MichaelMorrisa2abf6e2020-03-10 12:37:48 +000036COPY --chown=sdc:sdc startup.sh /home/sdc/
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020037
MichaelMorrisa2abf6e2020-03-10 12:37:48 +000038RUN chmod 770 /home/sdc/startup.sh
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020039
MichaelMorrisa2abf6e2020-03-10 12:37:48 +000040ENTRYPOINT [ "/home/sdc/startup.sh" ]
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020041