vasraz | 987fc74 | 2021-11-29 17:42:02 +0000 | [diff] [blame] | 1 | FROM onap/policy-jdk-debian:2.0.2 |
sebdet | 30670ac | 2020-08-04 14:16:00 +0200 | [diff] [blame] | 2 | |
sebdet | 30670ac | 2020-08-04 14:16:00 +0200 | [diff] [blame] | 3 | RUN addgroup sdc |
sebdet | 30670ac | 2020-08-04 14:16:00 +0200 | [diff] [blame] | 4 | RUN adduser --gecos "sdc sdc,1,1,1" --disabled-password --ingroup sdc --shell /bin/sh sdc |
| 5 | USER sdc |
| 6 | RUN mkdir ~/.cassandra/ && \ |
| 7 | echo '[cql]' > ~/.cassandra/cqlshrc && \ |
| 8 | echo 'version=3.4.4' >> ~/.cassandra/cqlshrc |
| 9 | USER root |
| 10 | |
eschcam | 94176d7 | 2023-03-30 13:47:20 +0100 | [diff] [blame] | 11 | RUN apt-get update --allow-releaseinfo-change && \ |
| 12 | apt-get purge python* -y && \ |
| 13 | apt-get install -y python3-pip && \ |
| 14 | python3 -m pip install --upgrade pip && \ |
| 15 | pip3 install cqlsh==6.1.0 && \ |
sebdet | 30670ac | 2020-08-04 14:16:00 +0200 | [diff] [blame] | 16 | mkdir ~/.cassandra/ && \ |
| 17 | echo '[cql]' > ~/.cassandra/cqlshrc && \ |
| 18 | echo 'version=3.4.4' >> ~/.cassandra/cqlshrc && \ |
| 19 | set -ex && \ |
sebdet | 30670ac | 2020-08-04 14:16:00 +0200 | [diff] [blame] | 20 | apt-get install -y \ |
| 21 | make \ |
| 22 | gcc \ |
| 23 | ruby \ |
| 24 | ruby-dev \ |
| 25 | libffi-dev \ |
| 26 | libxml2-dev && \ |
vasraz | 36edaac | 2023-06-06 17:12:59 +0100 | [diff] [blame^] | 27 | gem install --no-update-sources public_suffix:4.0.7 multipart-post:2.2.0 etc:1.3.0 bundler:2.3.26 chef:13.8.5 berkshelf:6.3.1 io-console:0.4.6 webrick --no-document && \ |
sebdet | df353be | 2020-09-21 22:13:05 +0200 | [diff] [blame] | 28 | apt-get update -y && apt-get remove bash -y --allow-remove-essential && \ |
sebdet | 30670ac | 2020-08-04 14:16:00 +0200 | [diff] [blame] | 29 | apt-get install -y binutils && apt-get clean && gem cleanup |
sebdet | df353be | 2020-09-21 22:13:05 +0200 | [diff] [blame] | 30 | |
sebdet | 30670ac | 2020-08-04 14:16:00 +0200 | [diff] [blame] | 31 | USER sdc |
MichaelMorris | a2abf6e | 2020-03-10 12:37:48 +0000 | [diff] [blame] | 32 | COPY --chown=sdc:sdc chef-solo /home/sdc/chef-solo/ |
MichaelMorris | a2abf6e | 2020-03-10 12:37:48 +0000 | [diff] [blame] | 33 | COPY --chown=sdc:sdc chef-repo/cookbooks /home/sdc/chef-solo/cookbooks/ |
MichaelMorris | a2abf6e | 2020-03-10 12:37:48 +0000 | [diff] [blame] | 34 | COPY --chown=sdc:sdc startup.sh /home/sdc/ |
Yuli Shlosberg | 0875ce0 | 2018-01-25 13:53:36 +0200 | [diff] [blame] | 35 | |
MichaelMorris | a2abf6e | 2020-03-10 12:37:48 +0000 | [diff] [blame] | 36 | RUN chmod 770 /home/sdc/startup.sh |
Yuli Shlosberg | 0875ce0 | 2018-01-25 13:53:36 +0200 | [diff] [blame] | 37 | |
MichaelMorris | a2abf6e | 2020-03-10 12:37:48 +0000 | [diff] [blame] | 38 | ENTRYPOINT [ "/home/sdc/startup.sh" ] |