| FROM onap/policy-jdk-debian:2.0.1 |
| #RUN addgroup --gid 1000 sdc |
| #RUN adduser --gecos "sdc sdc,1,1,1" -u 1000 --disabled-password --ingroup sdc --shell /bin/sh sdc |
| RUN adduser --gecos "sdc sdc,1,1,1" --disabled-password --ingroup sdc --shell /bin/sh sdc |
| RUN mkdir ~/.cassandra/ && \ |
| echo '[cql]' > ~/.cassandra/cqlshrc && \ |
| echo 'version=3.4.4' >> ~/.cassandra/cqlshrc |
| RUN apt-get update && apt-get install -y python-pip && \ |
| echo '[cql]' > ~/.cassandra/cqlshrc && \ |
| echo 'version=3.4.4' >> ~/.cassandra/cqlshrc && \ |
| gem install chef:13.8.5 berkshelf:6.3.1 io-console:0.4.6 etc 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 |
| 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" ] |