Skip to content

Commit 2d0a4bf

Browse files
committed
Cleaned up useless files and took configurations out of Dockerfiles
1 parent 7190378 commit 2d0a4bf

File tree

7 files changed

+0
-98
lines changed

7 files changed

+0
-98
lines changed

cassandra/src/address.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

cassandra/src/start-agent.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
#!/bin/bash
22

3-
# Configure Datstax agent
4-
sed -i -e "s/%OPSCENTER_HOST%/$OPSCENTER_HOST/" /etc/datastax-agent/address.yaml
5-
63
exec /usr/share/datastax-agent/bin/datastax-agent -f

cassandra/src/start-cass.sh

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,3 @@
11
#!/bin/bash
22

3-
# Accept listen_address
4-
IP=${LISTEN_ADDRESS:-`hostname --ip-address`}
5-
# Cassandr aConfig location
6-
CONFIG=/etc/cassandra
7-
8-
# Setup Cassandra params
9-
sed -i -e "s/^listen_address.*/listen_address: $IP/" $CONFIG/cassandra.yaml
10-
sed -i -e "s/^rpc_address.*/rpc_address: $IP/" $CONFIG/cassandra.yaml
11-
sed -i -e "s/# broadcast_address.*/broadcast_address: $IP/" $CONFIG/cassandra.yaml
12-
sed -i -e "s/# broadcast_rpc_address.*/broadcast_rpc_address: $IP/" $CONFIG/cassandra.yaml
13-
sed -i -e "s/# native_transport_max_threads.*/native_transport_max_threads: 1024/" $CONFIG/cassandra.yaml
14-
sed -i -e "s/^commitlog_segment_size_in_mb.*/commitlog_segment_size_in_mb: 64/" $CONFIG/cassandra.yaml
15-
sed -i -e "s/- seeds: \"127.0.0.1\"/- seeds: \"$SEEDS\"/" $CONFIG/cassandra.yaml
16-
sed -i -e "s/incremental_backups: false/incremental_backups: $ENABLE_INCREMENTAL_BACKUPS/g" $CONFIG/cassandra.yaml
17-
sed -i -e "s/# JVM_OPTS=\"$JVM_OPTS -Djava.rmi.server.hostname=<public name>\"/ JVM_OPTS=\"$JVM_OPTS -Djava.rmi.server.hostname=$IP\"/" $CONFIG/cassandra-env.sh
18-
#sed -i -e "s/# initial_token:.*/initial_token: $INITIAL_TOKEN/" $CONFIG/cassandra.yaml
19-
sed -i -e "s/num_tokens.*/num_tokens: 256/" $CONFIG/cassandra.yaml
20-
sed -i -e "s/^\(\\s*\)<appender-ref ref=\"ASYNCDEBUGLOG\" \/>/\\1<\!--<appender-ref ref=\"ASYNCDEBUGLOG\" \/>-->/" $CONFIG/logback.xml
21-
22-
# SETUP CASSANDRA PORTS
23-
24-
sed -i -e "s/^storage_port.*/storage_port: $INTERNODE_PORT/" $CONFIG/cassandra.yaml
25-
sed -i -e "s/^rpc_port.*/rpc_port: $THRIFT_PORT/" $CONFIG/cassandra.yaml
26-
sed -i -e "s/^native_transport_port.*/native_transport_port: $NATIVE_TRANSPORT_PORT/" $CONFIG/cassandra.yaml
27-
sed -i -e "s/^JMX_PORT=\"7199\"/JMX_PORT=\"$JMXPORT\"/" $CONFIG/cassandra-env.sh
28-
29-
if [[ $SNITCH ]]; then
30-
sed -i -e "s/endpoint_snitch: SimpleSnitch/endpoint_snitch: $SNITCH/" $CONFIG/cassandra.yaml
31-
fi
32-
if [[ $DC && $RACK ]]; then
33-
echo "dc=$DC" > $CONFIG/cassandra-rackdc.properties
34-
echo "rack=$RACK" >> $CONFIG/cassandra-rackdc.properties
35-
fi
36-
373
exec cassandra -f

opscenter/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ RUN echo "deb http://debian.datastax.com/community stable main" | sudo tee -a /e
1010
&& curl -L http://debian.datastax.com/debian/repo_key | sudo apt-key add - \
1111
&& apt-get update && apt-get -y install opscenter
1212

13-
# Add Opscenter Config File
14-
ADD opscenterd.conf /etc/opscenter/opscenterd.conf
15-
1613
# Add service starutp scripts
1714
RUN mkdir -p /etc/service/opscenter
1815
ADD start-opscenter.sh /etc/service/opscenter/run

opscenter/opscenterd.conf

Lines changed: 0 additions & 35 deletions
This file was deleted.

opscenter/src/datastax.repo

Lines changed: 0 additions & 6 deletions
This file was deleted.

opscenter/src/start.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)