Skip to content

Instantly share code, notes, and snippets.


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
command=/usr/sbin/sshd -D
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
"AWSEBDockerrunVersion": "1",
"Authentication": {
"Bucket": "",
"Key": "docker/dockercfg"
View Cassandra Container
docker run -d -p 9160:9160 -name db flux7/cassandra
# Yes. We love Python!
def start_provider(provider_id, gateway_port, admin_port ):
docker_client = docker.Client(base_url='unix://var/run/docker.sock',
# start a docker container for consuming gateway data at gateway_port
start_command = 'python software/ ' + 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/ provider1
docker run -name flask_app_1 -link db:cassandra -p 8081:80 flux7/labs python software/ provider1
View Docker
docker run -d -p 9160:9160 -name db flux7/cassandra
nohup python & # For firing up the TCP server.
nohup python & # For firing up the admin panel
You can’t perform that action at this time.