Skip to content

Instantly share code, notes, and snippets.

View sfc-gh-eraigosa's full-sized avatar
🏠
Working from home

Edward Raigosa sfc-gh-eraigosa

🏠
Working from home
View GitHub Profile
@sfc-gh-eraigosa
sfc-gh-eraigosa / gist:78970ee962865f1d9e58
Created November 7, 2014 22:15
docker build -t st2 .
docker build -t st2 .
Sending build context to Docker daemon 5.632 kB
Sending build context to Docker daemon
Step 0 : FROM dockerfile/ubuntu
Pulling repository dockerfile/ubuntu
b4e54ddfb2af: Download complete
511136ea3c5a: Download complete
d497ad3926c8: Download complete
ccb62158e970: Download complete
e791be0477f2: Download complete
st2 run core.local uname
...
+-----------------+---------------------------------------------------------+
| Property | Value |
+-----------------+---------------------------------------------------------+
| id | 545d4aa2bcee620714035670 |
| context | { |
| | "user": "stanley" |
| | } |
| parameters | { |
ssh -v stanley@localhost -i ./stanley_rsa
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to localhost [::1] port 22.
debug1: Connection established.
debug1: identity file ./stanley_rsa type 1
debug1: identity file ./stanley_rsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
[ root@a9d91db18b1d:~ ]$ st2 run core.local 'bash -c date'
...
+-----------------+---------------------------------------------------------+
| Property | Value |
+-----------------+---------------------------------------------------------+
| id | 545d558031851a033c97847d |
| context | { |
| | "user": "stanley" |
| | } |
| parameters | { |
@sfc-gh-eraigosa
sfc-gh-eraigosa / gist:fcfa39426de9a158e809
Created January 6, 2015 20:21
proxy issues with st2express
==> st2express: Running provisioner: shell...
st2express: Running: inline script
==> st2express: stdin: is not a tty
==> st2express: Running provisioner: shell...
st2express: Running: inline script
==> st2express: stdin: is not a tty
==> st2express: ########## Detected Distro is Ubuntu ##########
==> st2express: ########## Creating system user: stanley ##########
==> st2express: ########## Generating system user ssh keys ##########
==> st2express: Generating public/private rsa key pair.
2015-08-12 17:07:53,843 ERROR [:] [] [] [] [tp1843470554-15] [i.g.i.g.r.handler.ExceptionHandler ] Exception in API for request [io.github.ibuildthecloud.gdapi.request.ApiRequest@57f8b993] java.lang.RuntimeException: org.apache.http.conn.ConnectTimeoutException: Connect to github.com:443 [github.com/192.30.252.128] failed: Connection timed out
at io.cattle.platform.iaas.api.auth.github.TokenResourceManager.createInternal(TokenResourceManager.java:52) ~[cattle-iaas-auth-logic-0.5.0-SNAPSHOT.jar:na]
at io.github.ibuildthecloud.gdapi.request.resource.impl.AbstractBaseResourceManager.create(AbstractBaseResourceManager.java:115) ~[cattle-framework-java-server-0.5.0-SNAPSHOT.jar:na]
at io.github.ibuildthecloud.gdapi.request.handler.ResourceManagerRequestHandler.generate(ResourceManagerRequestHandler.java:39) ~[cattle-framework-java-server-0.5.0-SNAPSHOT.jar:na]
at io.github.ibuildthecloud.gdapi.request.handler.AbstractResponseGenerator.handle(AbstractResponseGenerator.java:14) ~[cattle-framework-java-server-0.
When trying to connect auth to a private github instance, you might get this error:
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) ~[na:1.7.0_79]
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1916) ~[na:1.7.0_79]
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:279) ~[na:1.7.0_79]
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:273) ~[na:1.7.0_79]
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1469) ~[na:1.7.0_79]
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:213) ~[na:1.7.0_79]
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:901) ~[na:1.7.0_79]
+ APPLICATION_WEB_PROXY_BASE=/service/flink
+ add_flink_configurations
+ export FLINK_JAVA_OPTS=
+ FLINK_JAVA_OPTS=
+ export 'FLINK_JAVA_OPTS= -Dblob.server.port=19071'
+ FLINK_JAVA_OPTS=' -Dblob.server.port=19071'
+ export 'FLINK_JAVA_OPTS= -Dblob.server.port=19071 -Djobmanager.heap.mb=256'
+ FLINK_JAVA_OPTS=' -Dblob.server.port=19071 -Djobmanager.heap.mb=256'
version: "3"
services:
demo-app:
image: ehazlett/docker-demo:dcus
networks:
- app_net
ports:
- 8080:8080
deploy:
mode: replicated

Thank you for your code submission and I hope you find this review useful.

#!/usr/bin/env ruby

require 'bundler/setup'
require 'octokit'