Skip to content

Instantly share code, notes, and snippets.

View zregvart's full-sized avatar
🙉
Working, probably

Zoran Regvart zregvart

🙉
Working, probably
  • Zagreb, Croatia
  • 10:55 (UTC +02:00)
View GitHub Profile
First of all, thank you for having an interest in contributing to Apache Camel.
Here are some guidelines on how to best approach the Apache Camel community and how to best apply yourself.
1. Communication
Apache Camel is an Apache Software Foundation project, all communication is done in the open on the project mailing lists.
You can read more on the reasoning behind this to get a better understanding of:
try (KubernetesClient client = new DefaultKubernetesClient()) {
Crds.kafkaV1Alpha1Operation(client).list()
.getItems()
.forEach(k -> k.getStatus().getListeners()
.forEach(l -> l.getAddresses()
.forEach(a -> System.out.println(a.getHost() + " " + a.getPort()))));
}
apiVersion: kafka.strimzi.io/v1beta1
kind: Kafka
metadata:
creationTimestamp: '2019-12-11T08:44:25Z'
generation: 1
name: my-cluster
namespace: zregvart
resourceVersion: '236181'
selfLink: /apis/kafka.strimzi.io/v1beta1/namespaces/zregvart/kafkas/my-cluster
uid: 6f926adf-1bf2-11ea-927d-02fd92f220aa
@zregvart
zregvart / installing latest syndesis workarounds
Last active November 27, 2019 15:42
We have some issues setting up development environment for Syndesis, this is how it's possible to do it manually.
$ minishift status
Does Not Exist
$ minishift start
-- Starting profile 'latest'
-- Check if deprecated options are used ... OK
-- Checking if https://github.com is reachable ... OK
-- Checking if requested OpenShift version 'v3.11.0' is valid ... OK
-- Checking if requested OpenShift version 'v3.11.0' is supported ... OK
-- Checking if requested hypervisor 'kvm' is supported on this platform ... OK
-- Checking if KVM driver is installed ...
17:19:13.030 [http-nio-8080-exec-1] ERROR org.komodo.utils.KLog - Error.PROFILE_EDITOR_STATES_GET_ERROR
java.lang.NullPointerException: null
at org.komodo.relational.profile.internal.ViewDefinitionImpl.isUserDefined(ViewDefinitionImpl.java:426)
at org.komodo.rest.relational.response.vieweditorstate.RestViewDefinition.<init>(RestViewDefinition.java:116)
at org.komodo.rest.relational.response.vieweditorstate.RestViewEditorState.<init>(RestViewEditorState.java:141)
at org.komodo.rest.service.KomodoUtilService.getViewEditorStates(KomodoUtilService.java:291)
at sun.reflect.GeneratedMethodAccessor428.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
import com.cloudbees.plugins.credentials.*
def creds = CredentialsProvider.lookupCredentials(Credentials.class, Jenkins.instance, null, null)
.find { it.id == '...' }
print creds
diff --git a/app/ui-react/syndesis/package.json b/app/ui-react/syndesis/package.json
index 236c89b..87145dc 100644
--- a/app/ui-react/syndesis/package.json
+++ b/app/ui-react/syndesis/package.json
@@ -46,7 +46,7 @@
"replay:dev-server": "BACKEND=http://localhost:8556 yarn proxy:setup; BACKEND=http://localhost:8556 PROXY_NO_WS=true yarn start",
"replay": "npm-run-all -p replay:dev-server \"mock-server -- {1}\" --",
"start": "BROWSER=false HOST=0.0.0.0 craco start",
- "build": "craco build",
+ "build": "TSC_WATCHFILE=UseFsEventsWithFallbackDynamicPolling craco build",
[ERROR] lerna info run Ran npm script 'build' in '@syndesis/api' in 10.5s:
[ERROR] lerna sill npmRunScript build [] @syndesis/syndesis
[ERROR] lerna sill getExecOpts /mnt/hudson_workspace/workspace/syndesis-release-daily/app/ui-react/syndesis undefined
[ERROR] lerna ERR! yarn run build exited 1 in '@syndesis/syndesis'
[ERROR] lerna ERR! yarn run build stdout:
[ERROR] $ npm-run-all copyasset:*
[ERROR] $ cpr ../packages/atlasmap-assembly/dist/atlasmap public/atlasmap -d
[ERROR] $ cpr ../packages/apicurio-assembly/dist/apicurio public/apicurio -d
[ERROR] $ craco build --verbose
[ERROR] craco: Project root path resolved to: /mnt/hudson_workspace/workspace/syndesis-release-daily/app/ui-react/syndesis
sh-4.2$ pwd
/usr/share/nginx/html
sh-4.2$ ls -l
total 7496
-rw-r--r--. 1 root root 537 Aug 8 2017 50x.html
-rw-r--r--. 1 root root 8500 May 21 00:17 apicurio-main.js
-rw-r--r--. 1 root root 104944 May 21 00:17 apicurio-polyfills.js
-rw-r--r--. 1 root root 2133 May 21 00:17 apicurio-runtime.js
-rw-r--r--. 1 root root 219916 May 21 00:17 apicurio-scripts.js
-rw-r--r--. 1 root root 512881 May 21 00:17 apicurio-styles.js
tooling/maven/camel-restdsl-swagger-plugin $ mvn dependency:tree
[INFO] BuildTimeEventSpy is registered.
[INFO] Scanning for projects...
[INFO]
[INFO] -----------< org.apache.camel:camel-restdsl-swagger-plugin >------------
[INFO] Building Camel :: Maven Plugins :: Swagger REST DSL Generator Maven plugin 3.0.0-SNAPSHOT
[INFO] ----------------------------[ maven-plugin ]----------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @ camel-restdsl-swagger-plugin ---
[INFO] org.apache.camel:camel-restdsl-swagger-plugin:maven-plugin:3.0.0-SNAPSHOT