Skip to content

Instantly share code, notes, and snippets.

@markllama
markllama / kube_qpid_service.json
Created December 19, 2014 14:55
Kubernetes service description for QPID
{
"id": "msg",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 5672,
"publicIPs": ["10.245.1.3"],
"selector": {
"name": "msg"
}
}
@markllama
markllama / docker_pulp_apache_run_sh
Created October 27, 2014 16:43
Initialize and start the Apache/WSGI services for Pulp
#!/bin/sh
#
# Configure the Apache daemon and WSGI application
# Install SSL certificates
# Configure the web tree in the volumes
#
set -x
# Requires environment variables:
#
@markllama
markllama / docker_pulp_apache_Dockerfile
Last active August 29, 2015 14:08
The description of a Pulp Apache/WSGI service container
FROM markllama/pulp-base
MAINTAINER Mark Lamourine <[email protected]>
#
# docker run -d --name pulp-apache \
# -v /dev/log:/dev/log --volumes-from pulp-content
# -p 443:443 \
# -e PULP_SERVER_NAME=pulp.example.com \
# -e SSL_TARBALL_URL=<url> markllama/pulp-apache
#
@markllama
markllama / docker_pulp_worker_run.sh
Created October 3, 2014 15:12
Run the Pulp/Celery worker process within a Docker container
#!/bin/sh
set -x
# Inherits script from pulp-base: /configure_pulp_server.sh
#
# Requires environment variables:
# SERVICE_HOST
#
# DB_SERVICE_HOST
@markllama
markllama / docker_pulp_worker_dockerfile
Last active August 29, 2015 14:07
The description of a Pulp Worker container in Docker
FROM markllama/pulp-base
MAINTAINER Mark Lamourine <[email protected]>
#
# Pulp Worker service - coordinate activities
#
# Environment Variables:
# DB_SERVER_HOST: name or IP address of the MongoDB server
# DB_SERVER_PORT: TCP port for MongoDB (default: 27017)
# MSG_SERVER_HOST: name or IP address of the qpid server
# MSG_SERVER_PORT: TCP port for qpidd (default: 5672)
@markllama
markllama / docker_pulp_content_volumes_dockerfile
Last active August 29, 2015 14:07
A content image for Pulp worker and apache containers
FROM markllama/pulp-base
MAINTAINER Mark Lamourine <[email protected]>
# Define and export the Pulp content locations
VOLUME ["/var/www", "/var/lib/pulp"]
# Run a command that indicates (trivial) success and exits
CMD ["/bin/true"]
FROM markllama/pulp-base
MAINTAINER Mark Lamourine <[email protected]>
VOLUME ["/var/www", "/var/lib/pulp"]
CMD ["sleep", "86400"]
@markllama
markllama / kubernetes_pulp_resource_manager_pod
Created September 29, 2014 23:43
The Kubernetes pod definition for a Pulp Resource Manager
{
"id": "pulp-resource-manager",
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "pulp-resource-manager",
"containers": [{
"name": "pulp-resource-manager",
"image": "markllama/pulp-resource-manager",
"env": [{
#!/bin/sh
set -x
#
# Use the test_db_available.py script to poll for the DB server
#
wait_for_database() {
DB_TEST_TRIES=12
DB_TEST_POLLRATE=5
FROM markllama/pulp-base
MAINTAINER Mark Lamourine <[email protected]>
#
# Pulp Resource Manager service - coordinate resource access
#
# Environment Variables:
# DB_SERVER_HOST: name or IP address of the MongoDB server
# DB_SERVER_PORT: TCP port for MongoDB (default: 27017)
# MSG_SERVER_HOST: name or IP address of the qpid server