Skip to content

Instantly share code, notes, and snippets.

@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 <markllama@gmail.com>
#
# 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 <markllama@gmail.com>
# 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 <markllama@gmail.com>
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 <markllama@gmail.com>
#
# 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
@markllama
markllama / kubernetes_pulp_beat_pod
Created September 26, 2014 13:53
The JSON description of a Pulp Beat container for Kubernetes
{
"id": "pulp-beat",
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "pulp-beat",
"containers": [{
"name": "pulp-beat",
"image": "markllama/pulp-beat",
"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
@markllama
markllama / docker_pulp_beat_Dockerfile
Created September 23, 2014 21:02
A Dockerfile which composes a Pulp beat server from the base image
FROM markllama/pulp-base
MAINTAINER Mark Lamourine <markllama@gmail.com>
#
# Pulp Celerybeat 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