Skip to content

Instantly share code, notes, and snippets.

Red Hat UBI OpenJDK Image

Table of Contents

Informational variables

Table 1. Table Informational variables

Name

Value

Description

# 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,
# 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
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)
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 -
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
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'>
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
$ 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
// 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;
}