- Binary Builds
oc new-build --binary=true --name=ola2 --image-stream=redhat-openjdk18-openshift
oc start-build ola2 --from-file=./target/ola.jar --follow
oc new-app
- Turn off/on DC triggers to do a batch of changes without spam many deployments
var express = require('express'), | |
app = express(), | |
server = require('http').createServer(app).listen(9999); | |
app.set('view engine', 'jade'); | |
app.set('views', __dirname + '/views'); | |
app.use(express.bodyParser()); | |
app.use(express.cookieParser()); | |
app.use(express.session({ secret: 'secret' })); | |
app.use(express.csrf()); |
var net = require('net'); | |
var server = require('http').createServer(app).listen(8000); | |
function app(req, res) { | |
if (req.url === '/') { | |
res.writeHead(200, {'Content-Type': 'video/webm'}); | |
var socket = new net.Socket(); | |
socket.connect(5000, 'localhost').pipe(res); | |
} else { | |
res.statusCode = 404; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, user-scalable=no"> | |
<title>WebSocketTest</title> | |
<style> | |
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; src: local('Lato Light'), local('Lato-Light'), url(http://themes.googleusercontent.com/static/fonts/lato/v6/KT3KS9Aol4WfR6Vas8kNcg.woff) format('woff'); } | |
body { font: 130% 'Lato', sans-serif; color:#34495e; background: #ecf0f1; text-shadow: -1px 1px 1px rgba(0,0,0,0.3); padding: 1em 2em; } | |
#status { position: fixed; top: 0.2em; right: 0.5em } |
oc new-build --binary=true --name=ola2 --image-stream=redhat-openjdk18-openshift
oc start-build ola2 --from-file=./target/ola.jar --follow
oc new-app
#! /bin/bash | |
if ! oc whoami &> /dev/null; then echo "login to oc first" && exit 1; fi | |
set -euo pipefail | |
TOKEN=$(oc whoami -t) | |
API_SERVER_ADDRESS="https://master/api/v1/watch/events" | |
# setting LANG gives correct timestamps | |
LANG=fi_FI.UTF-8 | |
# print timestamp in the middle of the row every 60s | |
while sleep 60; do |
I hereby claim:
To claim this, I am signing this object: