View gitlab-push.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Helper script to push changes as part of a Gitlab-CI pipeline | |
# The script requires a user name (GITLAB_PUSH_USER) and token (GITLAB_PUSH_TOKEN) | |
# Example Usage: | |
# gitlab-push.sh "My commit message 1" gen-doc/*.html | |
# gitlab-push.sh "My commit message 2" my/file1 and/another/file2 | |
COMMENT=$1 | |
# remove comment from arguments |
View slack-stormstack-simple-workflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "workflow_test" | |
description: "Simple Action Chain workflow" | |
runner_type: "action-chain" | |
entry_point: "workflows/workflow_test.yaml" | |
enabled: true | |
parameters: | |
vm_name: | |
description: "VM Name" | |
type: string |
View registry-run.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -i -t -p 5042:5000 \ | |
-e SETTINGS_FLAVOR=openstack-swift \ | |
-e OS_USERNAME=${OS_USERNAME} \ | |
-e OS_PASSWORD=${OS_PASSWORD} \ | |
-e OS_TENANT_NAME=${OS_TENANT_NAME} \ | |
-e OS_GLANCE_URL=${OS_GLANCE_URL} \ | |
-e OS_AUTH_URL=${OS_AUTH_URL} \ | |
-e OS_REGION_NAME=${OS_REGION_NAME} \ | |
-e SWIFT_CONTAINER=${SWIFT_CONTAINER} \ | |
docker-registry |
View vagrant_cpu_and_mem_increase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "precise64" | |
config.vm.provider :virtualbox do |vb, override| | |
vb.customize ["modifyvm", :id, "--memory", "2048"] | |
vb.customize ["modifyvm", :id, "--cpus", "4"] | |
end |
View openstack-docker-registry-start.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
source ./keystone_adminrc | |
echo ${OS_USERNAME} | |
echo ${OS_PASSWORD} | |
docker run -d -p 5042:5000 \ | |
-e SETTINGS_FLAVOR=openstack \ | |
-e OS_USERNAME=${OS_USERNAME} \ | |
-e OS_PASSWORD=${OS_PASSWORD} \ | |
-e OS_TENANT_NAME=${OS_TENANT_NAME} \ | |
-e OS_GLANCE_URL="http://10.129.184.9:9292" \ |
View cinder-setup-volume.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$1" == "" ]; then | |
echo "[ERROR] Please specify volume size. Usage: $0 3G" | |
exit 1 | |
fi | |
# Create a file | |
dd if=/dev/zero of=cinder-volumes bs=1 count=0 seek=$1 | |
# Create a loop device |
View vagrant-docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### BEGIN INIT INFO | |
# INIT INFO | |
# Provides: docker | |
# Required-Start: networking | |
# Required-Stop: networking | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: docker |
View start-docker-registry.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d -p 5042:5000 -e SETTINGS_FLAVOR=openstack -e OS_USERNAME=${OS_USERNAME} -e OS_PASSWORD=${OS_PASSWORD} -e OS_TENANT_NAME=${OS_TENANT_NAME} -e OS_GLANCE_URL="http://10.129.184.9:9292" -e OS_AUTH_URL=${OS_AUTH_URL} docker-registry ./docker-registry/run.sh |
View openstack-docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### BEGIN INIT INFO | |
# INIT INFO | |
# Provides: docker | |
# Required-Start: networking | |
# Required-Stop: networking | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: docker |
View docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/bin/bash | |
### BEGIN INIT INFO | |
# INIT INFO | |
# Provides: docker | |
# Required-Start: networking | |
# Required-Stop: networking | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: docker |
NewerOlder