Skip to content

Instantly share code, notes, and snippets.

flux7-user

Block or report user

Report or block flux7-user

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View supervisord.conf
[supervisord]
nodaemon=true
[program:sshd]
command=/usr/sbin/sshd -D
[program:apache2]
View Dockerfile
# VERSION 0.0.1
FROM flux7/wp-site # This is the location of our docker container.
RUN apt-get install supervisor
RUN mkdir -p /var/log/supervisor
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
View Dockerrun.aws.json
{
"AWSEBDockerrunVersion": "1",
"Authentication": {
"Bucket": "flux7.com",
"Key": "docker/dockercfg"
View Cassandra Container
docker run -d -p 9160:9160 -name db flux7/cassandra
View multi-tenant-docker.py
# Yes. We love Python!
def start_provider(provider_id, gateway_port, admin_port ):
docker_client = docker.Client(base_url='unix://var/run/docker.sock',
version='1.6',
timeout=100)
# start a docker container for consuming gateway data at gateway_port
start_command = 'python software/remote_server.py ' + provider_id
remote_server = docker_client.create_container('flux7/labs', # docker image
command=start_command, # start command contains the keyspace parameter, keyspace is the provider_id
View Code base launch in container
docker run -name remote_server_1 -link db:cassandra -p 6001:6000 flux7/labs python software/remote_server.py provider1
docker run -name flask_app_1 -link db:cassandra -p 8081:80 flux7/labs python software/flask_app.py provider1
View Docker
docker run -d -p 9160:9160 -name db flux7/cassandra
View single-provider-launch.sh
nohup python tcp_server.py & # For firing up the TCP server.
nohup python flask_app.py & # For firing up the admin panel
You can’t perform that action at this time.