Start Docker Machine
-
docker-machine start default
Start Kubernetes on Docker machine VM
-
kid up
Install Jenkins and Docker registry on kubernetes using Helm
#!/bin/bash | |
# IMPORTANT: You will need to disable SIP aka Rootless in order to fully execute this script, you can reenable it after. | |
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars. | |
# Get active services: launchctl list | grep -v "\-\t0" | |
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents | |
# Agents to disable | |
TODISABLE=('com.apple.security.keychainsyncingoveridsproxy' 'com.apple.personad' 'com.apple.passd' 'com.apple.screensharing.MessagesAgent' 'com.apple.CommCenter-osx' 'com.apple.Maps.mapspushd' 'com.apple.Maps.pushdaemon' 'com.apple.photoanalysisd' 'com.apple.telephonyutilities.callservicesd' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.CalendarAgent' 'com.apple.DictationIM' 'com.apple.iCloudUserNotifications' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.gamed' 'com.apple.icloud.findmydeviced.findmydevi |
failed to compile tested package feature: | |
WORK=/var/folders/b0/3v0rtks95fq_8p681jy91q540000gn/T/go-build081828163 | |
# github.com/golang | |
./nonauthorized_test.go:75: cannot use "github.com/goadesign/goa/client".HTTPClientDoer(http.DefaultClient) (type "github.com/goadesign/goa/client".Doer) as type "github.com/almighty/almighty-core/vendor/github.com/goadesign/goa/client".Doer in argument to "github.com/almighty/almighty-core/client".New: | |
"github.com/goadesign/goa/client".Doer does not implement "github.com/almighty/almighty-core/vendor/github.com/goadesign/goa/client".Doer (wrong type for Do method) | |
have Do("golang.org/x/net/context".Context, *http.Request) (*http.Response, error) | |
want Do("github.com/almighty/almighty-core/vendor/golang.org/x/net/context".Context, *http.Request) (*http.Response, error) | |
./nonauthorized_test.go:170: cannot use "github.com/goadesign/goa/client".HTTPClientDoer(http.DefaultClient) (type "github.com/goadesign/goa/client".Doer) as type "github.com/almighty/almighty-core/vendor/git |
Start Docker Machine
docker-machine start default
Start Kubernetes on Docker machine VM
kid up
Install Jenkins and Docker registry on kubernetes using Helm
# Browse to the Textmate bundles directory
cd ~/"Library/Application Support/TextMate/Managed/Bundles/"
# Clone the Asciidoc bundle from https://github.com/mattneub/AsciiDoc-TextMate-2.tmbundle
git clone https://github.com/mattneub/AsciiDoc-TextMate-2.tmbundle.git "AsciiDoc.tmbundle"
package org.jboss.examples.bankplus.customer.services.translators; | |
public class AccountTranslator { | |
public org.jboss.examples.bankplus.customer.model.Account | |
translate(org.jboss.examples.bankplus.customer.services.adapters.Account container) { | |
org.jboss.examples.bankplus.customer.model.Account account = null; | |
if(container != null) { | |
account = new org.jboss.examples.bankplus.customer.model.Account(); | |
account.setAccountReference(container.getAccountId()); |
@Stateless | |
public class Accounts { | |
@PersistenceContext | |
private EntityManager em; | |
... | |
public Account getLiabilitiesAccount() { | |
TypedQuery<Account> findByNameQuery = em.createQuery("SELECT DISTINCT a FROM Account a " | |
+ "WHERE UPPER(a.name) = 'LIABILITIES'", Account.class); | |
Account liabiltiesAccount = findByNameQuery.getSingleResult(); |
# Based on http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/ | |
# with some amendments | |
# create a new branch in WFK quickstarts | |
git checkout -b kitchensink-html5-mobile | |
# For kitchensink-html5-mobile, in wfk-quickstarts | |
# the following command filters out only the kitchensink-html5-mobile dir, and retains it's contents in the root dir | |
git filter-branch -f --subdirectory-filter kitchensink-html5-mobile -- --all |
vreynolds@RH0003210 www.jboss.org$ rake clean preview | |
Using profile: development | |
Generating site: http://localhost:4242 | |
While processing file | |
An error occurred: uninitialized constant ActiveSupport::Autoload | |
/home/vreynolds/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/number_helper.rb:3:in `<module:NumberHelper>' | |
/home/vreynolds/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/number_helper.rb:2:in `<module:ActiveSupport>' | |
/home/vreynolds/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/number_helper.rb:1:in `<top (required)>' | |
/home/vreynolds/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/core_ext/numeric/conversions.rb:2:in `require' | |
/home/vreynolds/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/core_ext/numeric/conversions.rb:2:in `<top (required)>' |
!ENTRY org.eclipse.jface 4 0 2014-09-12 20:46:18.859 | |
!MESSAGE Unhandled event loop exception during blocked modal context. | |
!STACK 0 | |
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IndexOutOfBoundsException: Index: 3, Size: 3) | |
at org.eclipse.swt.SWT.error(SWT.java:4441) | |
at org.eclipse.swt.SWT.error(SWT.java:4356) | |
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:139) | |
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147) | |
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764) | |
at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:175) |