Skip to content

Instantly share code, notes, and snippets.

View ubi8-openjdk-8-vars.adoc

Red Hat UBI OpenJDK Image

Table of Contents

Informational variables

Table 1. Table Informational variables

Name

Value

Description

View Dockerfile
# Copyright 2017 Red Hat
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
View gist:eab76d9614f00038f74809e5f6c9e32f
# before
modules:
- path: https://github.com/containers-tools/openshift-eap
# proposal
modules:
- path: https://github.com/containers-tools/openshift-eap
# mode: git-clone -- default mode, no need to declare
- path: some-local-module
mode: file-copy # copies from ./some-local-module relative to image.yaml
View zomg.py
import os
import sys
def foo(dirname, dirtest, fileact):
for c in os.listdir(dirname):
cc = os.path.join(dirname, c)
if os.path.isdir(cc) and dirtest(c):
foo(cc, dirtest, fileact)
elif os.path.isfile(cc):
fileact(cc)
View gist:84d4f4e326e5c514ee86a7609b363719
2016-10-07 10:03:38,361 - cct - DEBUG - processing change [{'changes': [{'openshift-eap.Install': [{'install': None}]}], 'name': 'EAP launch steps'}]
2016-10-07 10:03:38,362 - cct - INFO - executing change EAP launch steps
2016-10-07 10:03:38,362 - cct - DEBUG - install
2016-10-07 10:03:38,362 - cct - DEBUG - discovering modules in /usr/lib/python2.7/site-packages/cct/modules
2016-10-07 10:03:38,362 - cct - DEBUG - inspecting /usr/lib/python2.7/site-packages/cct/modules/__init__.py
2016-10-07 10:03:38,362 - cct - DEBUG - importing module /usr/lib/python2.7/site-packages/cct/modules/__init__.py to cct.module.modules
2016-10-07 10:03:38,362 - cct - DEBUG - inspecting /usr/lib/python2.7/site-packages/cct/modules/amq/__init__.py
2016-10-07 10:03:38,362 - cct - DEBUG - importing module /usr/lib/python2.7/site-packages/cct/modules/amq/__init__.py to cct.module.amq
2016-10-07 10:03:38,363 - cct - DEBUG - inspecting /usr/lib/python2.7/site-packages/cct/modules/amq/cct_module.py
2016-10-07 10:03:38,363 - cct - DEBUG -
View gist:fb5a3295a8f16a28ed92d1218cbf3009
chew$ finger Jonathan
Login: jon Name: Jonathan Dowland
Directory: /home/jon Shell: /bin/bash
On since Mon Aug 15 11:36 (BST) on pts/3 from 10.10.10.10 via mosh [19374]
2 seconds idle
New mail received Wed Dec 17 13:29 2014 (GMT)
Unread since Tue Aug 12 11:29 2014 (BST)
Plan:
Mon 15 Aug 11:37:16 BST 2016
View gist:84b40d6505ff9c5c90e9870327d0288c
cevm$ cct -s base.File
2016-08-05 13:17:56,256 - cct - INFO - found <class 'cct.module.amq.AMQ'>
2016-08-05 13:17:56,260 - cct - INFO - found <class 'cct.module.git.git'>
2016-08-05 13:17:56,261 - cct - INFO - found <class 'cct.module.jboss.Cli'>
2016-08-05 13:17:56,262 - cct - INFO - found <class 'cct.module.openshift.Openshift'>
2016-08-05 13:17:56,264 - cct - INFO - found <class 'cct.module.base.Dummy'>
2016-08-05 13:17:56,264 - cct - INFO - found <class 'cct.module.base.Dummy'>
2016-08-05 13:17:56,264 - cct - INFO - found <class 'cct.module.base.Shell'>
2016-08-05 13:17:56,267 - cct - INFO - found <class 'cct.module.base.Dummy'>
2016-08-05 13:17:56,268 - cct - INFO - found <class 'cct.module.base.Shell'>
View gist:a0d65661e399b4099c77157f6ba9803f
2016-08-03 11:01:37,161 - cct - DEBUG - processing change [{'changes': [{'base.Chmod': [{'path': '/opt/amq', 'mode': 493}, {'path': '/opt/amq/bin/activemq', 'mode': 493}]}, {'base.Chown': [{'owner': 'jboss', 'path': '/opt/amq', 'group': 'jboss', 'recursive': True}]}], 'description': 'say hello', 'name': 'base'}]
2016-08-03 11:01:37,162 - cct - INFO - executing change base
2016-08-03 11:01:37,162 - cct - DEBUG - path
2016-08-03 11:01:37,162 - cct - DEBUG - mode
Traceback (most recent call last):
File "/usr/bin/cct", line 9, in <module>
load_entry_point('cct==0.0.1.dev0', 'console_scripts', 'cct')()
File "/usr/lib/python2.7/site-packages/cct/cli/main.py", line 117, in run
cli.run()
File "/usr/lib/python2.7/site-packages/cct/cli/main.py", line 105, in run
View gist:827ef3a34e2046e3184b4294630d4911
$ curl -kI -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 Safari/534.30" https://cevm.local:8443/
HTTP/1.1 302 Found
Location: https://172.17.130.226:8443/console/
Date: Tue, 02 Aug 2016 17:39:34 GMT
Content-Length: 203
Content-Type: text/plain; charset=utf-8
View gist:5be77a456188902d0ded670e5699cc50
// can we fit in the skill level? (e.g. 'skill3')
if ((end - cursor) - maplen >= 6)
{
// M_snprintf writes a \0 that we don't need, hence 7 here
M_snprintf(cursor, 7, "skill%1d", startskill);
cursor += 6;
}