blob: f49986ee97f75c8f3fdd188452ea583cdefce7f4 [file] [log] [blame]
Yuli Shlosberge11dc232018-01-29 16:19:52 +02001FROM openjdk:8-jdk-alpine
2
MichaelMorrisbf71d492020-03-06 16:50:50 +00003RUN addgroup -g 1000 sdc && adduser -S -u 1000 -G sdc -s /bin/sh sdc
4USER sdc
5RUN mkdir ~/.cassandra/ && \
6 echo '[cql]' > ~/.cassandra/cqlshrc && \
7 echo 'version=3.4.4' >> ~/.cassandra/cqlshrc
8USER root
9
Michael Landoc789e6f2018-05-03 18:05:37 +030010RUN apk add --no-cache py-pip && \
Pratik raj31fdee52020-12-30 12:28:02 +053011 pip install --no-cache-dir cqlsh==5.0.4 && \
shrek2000c0e96b52019-10-29 09:38:53 +020012 mkdir ~/.cassandra/ && \
shrek20007adc3782019-11-14 15:34:40 +020013 echo '[cql]' > ~/.cassandra/cqlshrc && \
14 echo 'version=3.4.4' >> ~/.cassandra/cqlshrc && \
Michael Landoc789e6f2018-05-03 18:05:37 +030015 set -ex && \
Pratik raj31fdee52020-12-30 12:28:02 +053016 pip install --no-cache-dir cqlsh && \
Tal Gitelmand18094d2018-10-29 19:51:30 +020017 apk add --no-cache \
18 bash \
19 build-base \
vasraze373c542020-05-05 12:31:39 +010020 ruby=2.5.8-r0 \
Tal Gitelmand18094d2018-10-29 19:51:30 +020021 ruby-dev \
22 libffi-dev \
23 libxml2-dev && \
24 gem install chef:13.8.5 berkshelf:6.3.1 io-console:0.4.6 etc webrick --no-document && \
Gary Wuf2da63d2018-05-07 17:21:22 -070025 apk update && \
Tal Gitelmand18094d2018-10-29 19:51:30 +020026 apk add binutils \
27 libtasn1
MichaelMorrisbf71d492020-03-06 16:50:50 +000028USER sdc