Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
f1144602
Commit
f1144602
authored
Jul 29, 2015
by
Patrick Tescher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust permissions so that Cassandra can run without root access
This allows both non root access as well as running with —user=<random id>
parent
1367076d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
Dockerfile
examples/cassandra/image/Dockerfile
+10
-1
cassandra.yaml
examples/cassandra/image/cassandra.yaml
+1
-1
logback.xml
examples/cassandra/image/logback.xml
+14
-0
No files found.
examples/cassandra/image/Dockerfile
View file @
f1144602
...
...
@@ -15,8 +15,17 @@ RUN apt-get update
RUN
apt-get
-qq
-y
install
procps cassandra
COPY
cassandra.yaml /etc/cassandra/cassandra.yaml
COPY
logback.xml /etc/cassandra/logback.xml
COPY
run.sh /run.sh
COPY
kubernetes-cassandra.jar /kubernetes-cassandra.jar
RUN
chmod
a+x /run.sh
RUN
chmod
a+x /run.sh
&&
\
mkdir
-p
/cassandra_data/data
&&
\
chown
-R
cassandra.cassandra /etc/cassandra /cassandra_data
&&
\
chmod
o+w
-R
/etc/cassandra /cassandra_data
VOLUME
["/cassandra_data/data"]
USER
cassandra
CMD
/run.sh
examples/cassandra/image/cassandra.yaml
View file @
f1144602
...
...
@@ -215,7 +215,7 @@ counter_cache_save_period: 7200
# saved caches
# If not set, the default directory is $CASSANDRA_HOME/data/saved_caches.
saved_caches_directory
:
/
var/lib/cassandr
a/saved_caches
saved_caches_directory
:
/
cassandra_dat
a/saved_caches
# commitlog_sync may be either "periodic" or "batch."
# When in batch mode, Cassandra won't ack writes until the commit log
...
...
examples/cassandra/image/logback.xml
0 → 100644
View file @
f1144602
<?xml version="1.0"?>
<configuration
scan=
"true"
>
<jmxConfigurator/>
<appender
name=
"STDOUT"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder>
<pattern>
%-5level %date{HH:mm:ss,SSS} %msg%n
</pattern>
</encoder>
</appender>
<root
level=
"INFO"
>
<appender-ref
ref=
"STDOUT"
/>
</root>
<logger
name=
"com.thinkaurelius.thrift"
level=
"ERROR"
/>
</configuration>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment