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
π ~/go/src/github.com/openshift/origin ./hack/test-extended/s2i/run.sh | |
[INFO] Compiling test/extended package ... | |
# github.com/openshift/origin/pkg/cmd/cli/config | |
pkg/cmd/cli/config/loader.go:8: inconsistent definition for type pflag.Flag during import | |
struct { Name string; Shorthand string; Usage string; Value pflag.Value; DefValue string; Changed bool; NoOptDefVal string; Deprecated string; Annotations map[string][]string } (in "github.com/openshift/origin/pkg/cmd/util") | |
struct { Name string; Shorthand string; Usage string; Value pflag.Value; DefValue string; Changed bool; Deprecated string; Annotations map[string][]string } (in "github.com/spf13/cobra") | |
pkg/cmd/cli/config/loader.go:8: inconsistent definition for type cobra.Command during import | |
struct { name string; Use string; Aliases []string; Short string; Long string; Example string; ValidArgs []string; BashCompletionFunction string; Deprecated string; flags *pflag.FlagSet; pflags *pflag.FlagSet; lflags *pflag.FlagSet; PersistentPreRun func(*cobra. |
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
# var_name moze byt LD_LIBRARY_PATH a PATH | |
# v 'env' => ["OPENSHIFT_MOCK_PATH_ELEMENT", "OPENSHIFT_MOCK_LD_LIBRARY_PATH_ELEMENT"] | |
elements = env.keys.find_all { |name| | |
name =~ /^OPENSHIFT_.*_#{var_name}_ELEMENT/ and name != primary_path | |
}.each_with_object([]) { |s, p| p << env[s] } | |
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 | |
bold=`tput bold` | |
normal=`tput sgr0` | |
devenv() { | |
pushd /home/mfojtik/code/rh/li &>/dev/null | |
./build/devenv "$@" | |
popd &> /dev/null | |
} |
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/env node | |
// OpenShift sample Node application | |
var express = require('express'); | |
var fs = require('fs'); | |
var mysql = require('mysql'); | |
/** | |
* Define the sample application. | |
*/ | |
var SampleApp = function() { |
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
#!/usr/bin/python | |
import os | |
import psycopg2 | |
virtenv = os.environ['OPENSHIFT_PYTHON_DIR'] + '/virtenv/' | |
virtualenv = os.path.join(virtenv, 'bin/activate_this.py') | |
try: | |
execfile(virtualenv, dict(__file__=virtualenv)) | |
except IOError: | |
pass |
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
def update_ld_library_paths | |
db_carts = [ 'postgresql-9.2', 'mysql-5.5' ] | |
Application.where({"scalable" => true}).each do |app| | |
if app.component_instances.any? { |c| db_carts.include?(c.component_name) } | |
begin | |
app.execute_connections | |
rescue => e | |
puts "Failed to execute_connections for #{app._id} (ERR: #{e.message})" | |
end |
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
app_ids = Application.where({"scalable" => true}).find_all { |app| | |
app.component_instances.any? { |c| | |
c.is_embeddable? && db_carts.include?(c.component_name) | |
} | |
}.map { |a| a.id } |
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
# rhc app create ruby12 -s mysql-5.5 postgresql-9.2 | |
Application Options | |
------------------- | |
Domain: mfojtik | |
Cartridges: ruby-1.9, mysql-5.5, postgresql-9.2 | |
Gear Size: default | |
Scaling: yes | |
Creating application 'ruby12' ... done |
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
# rhc app create ruby13 -s mysql-5.5 postgresql-9.2 | |
Application Options | |
------------------- | |
Domain: mfojtik | |
Cartridges: ruby-1.9, mysql-5.5, postgresql-9.2 | |
Gear Size: default | |
Scaling: yes | |
Creating application 'ruby13' ... done |
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
~/code/rh/docker-image-examples/centos-ruby → docker run -v /var/run:/var/run mfojtik/centos-ruby:extended /bin/sti build git://github.com/mfojtik/sinatra-app-example mfojtik/centos-ruby:extended my-app --debug | |
2014/04/25 15:33:52 Using docker socket: unix:///var/run/docker.sock | |
2014/04/25 15:33:52 Clean build will be performed | |
2014/04/25 15:33:52 Performing source build from git://github.com/mfojtik/sinatra-app-example | |
2014/04/25 15:33:52 Fetching git://github.com/mfojtik/sinatra-app-example to directory /tmp/sti307542252/src | |
2014/04/25 15:33:52 Creating container using config: {Hostname: Domainname: User:root Memory:0 MemorySwap:0 CpuShares:0 AttachStdin:false AttachStdout:false AttachStderr:false PortSpecs:[] ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[] Cmd:[/usr/bin/prepare] Dns:[] Image:mfojtik/centos-ruby:extended Volumes:map[/tmp/src:{}] VolumesFrom: WorkingDir: Entrypoint:[] NetworkDisabled:false} | |
2014/04/25 15:33:53 Starting container with config: {Binds:[/tmp/sti307542252/src |
OlderNewer