You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.
ADD .m2 /fabric8-devops/chaos-monkey/.m2
ADD pom.xml /fabric8-devops/chaos-monkey/pom.xml
RUN ["mvn", "-Dmaven.repo.local=./.m2", "dependency:resolve"]
RUN ["mvn", "-Dmaven.repo.local=./.m2", "verify"]
ADD src /fabric8-devops/chaos-monkey/src
...
Gives error:
Failed to execute goal io.fabric8:fabric8-maven-plugin:3.5.28:build (fmp) on project chaos-monkey: Execution fmp of goal io.fabric8:fabric8-maven-plugin:3.5.28:build failed: No given, no DOCKER_HOST environment variable, no read/writable '/var/run/docker.sock' or '//./pipe/docker_engine' and no external provider like Docker machine configured -> [Help 1]
It would be helpful to have the Dockerfile used to build the image.
thanks
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I try to run chaos monkey following https://github.com/cheyang/kube-chaosmonkey
I run a kubernetes cluster on minikube ( server url http://192.168.99.100:8443 ) and build the docker container locally
Issue is
When running:
docker run -d --net="bridge"
--name chaos-monkey
-e KUBERNETES_MASTER=http://192.168.99.100:8443
-e KUBERNETES_NAMESPACE=default
-e CHAOS_MONKEY_INCLUDES=zookeeper*,kafka*
-e CHAOS_MONKEY_EXCLUDES=zk2*
-e CHAOS_MONKEY_KILL_FREQUENCY_SECONDS=30
fabric8/chaos-monkey:2.2.335
Gives error:
Exception in thread "main" org.jboss.weld.exceptions.DeploymentException: io/fabric8/annotations/Eager : Unsupported major.minor version 52.0
I investigated and appear to be an issue with java versions mismatch
I also tried to write a Dockerfile to build the image locally from src but i get the following
When building docker image with Dockerfile:
FROM openjdk:8
RUN apt-get update
RUN apt-get install -y maven
RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
RUN git clone https://github.com/fabric8io/fabric8-devops/
WORKDIR /fabric8-devops/chaos-monkey
ADD .m2 /fabric8-devops/chaos-monkey/.m2
ADD pom.xml /fabric8-devops/chaos-monkey/pom.xml
RUN ["mvn", "-Dmaven.repo.local=./.m2", "dependency:resolve"]
RUN ["mvn", "-Dmaven.repo.local=./.m2", "verify"]
ADD src /fabric8-devops/chaos-monkey/src
...
Gives error:
Failed to execute goal io.fabric8:fabric8-maven-plugin:3.5.28:build (fmp) on project chaos-monkey: Execution fmp of goal io.fabric8:fabric8-maven-plugin:3.5.28:build failed: No given, no DOCKER_HOST environment variable, no read/writable '/var/run/docker.sock' or '//./pipe/docker_engine' and no external provider like Docker machine configured -> [Help 1]
It would be helpful to have the Dockerfile used to build the image.
thanks
The text was updated successfully, but these errors were encountered: