Skip to content

Instantly share code, notes, and snippets.

@rajagp
rajagp / custom_couchbase_dev_image.md
Last active October 25, 2022 09:47
Steps to create a custom Couchbase Server Docker Image for development

Purpose

Follow the steps below if you are interested in creating your own custom configurable Couchbase docker image. You will start off with the official Couchbase Enterprise docker image that is available on Docker Hub and use the Couchbase CLI and REST interface to create a custom configurable image.

Credits

This approach inspired by the tutorial. We essentially built a custom docker image from the base Coucbase server image that is configured for our development needs!

Steps

  • Create a new file named DockerFile and open it using an editor of your choice
  • Now add the following lines to the DockerFile.
@rajagp
rajagp / gist:3309edf21b2751637e7f89c260e8a7fb
Created September 28, 2016 01:50
iOS Run Script to Generate Aggregate multi-platform Framework (swift)
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal
# make sure the output directory exists
mkdir -p "${UNIVERSAL_OUTPUTFOLDER}"
if [ "true" == ${ALREADYINVOKED:-false} ]
then
echo "RECURSION: I am NOT the root invocation, so I'm NOT going to recurse"
else
@rajagp
rajagp / gist:382f6f5c4c4f7aa8b703
Created October 7, 2014 16:56
Run script Build Phase to create a universal iOS8 framework using an aggregate target. The build target uses CocoaPods (so replace project/target with workspace/scheme).
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal
# make sure the output directory exists
mkdir -p "${UNIVERSAL_OUTPUTFOLDER}"
# Replace with your scheme
SCHEME_NAME="MyScheme"
# Build Device and Simulator versions
xcodebuild ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -workspace "${PROJECT_DIR}/${PROJECT_NAME}.xcworkspace" -scheme ${SCHEME_NAME} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build