fabric8io / fabric8-docker Goto Github PK
View Code? Open in Web Editor NEWDockerfiles to create Fuse containers in docker.io
License: Apache License 2.0
Dockerfiles to create Fuse containers in docker.io
License: Apache License 2.0
Starting a container using the fabric8/fabric8 image (c2dd05b6ad080eafa5fc81ee74b0ddf61570f59eee553d23b9d41c9e399af008) results in a warning:
Cannot obtain inital runtime environment content from: /home/fabric8/fabric8-karaf/data/repository/environment.xml
pires@as1:~$ sudo docker run -p 8181 -i -t fabric8:fabric8 /bin/bash Unable to find image 'fabric8:fabric8' (tag: fabric8) locally Pulling repository fabric8 2014/01/22 13:03:06 HTTP code: 404
I created a PR for that.
fabric8io/jenkins-docker#49
Is it possible to group commands in this Dockerfile? Docker must have pulled around 40 maybe even 50 or so layers for me, which seems rather high compared to most images I've downloaded so far.
(See Minimize the number of layers and Optimizing docker images)
Not sure if I should open this on fabric8 or fabric8-docker
Either when invoked through my script or when done directly through karaf
shell the provisioning phase fails.
Fabric8:admin@root> container-create-ssh --resolver localip --host 172.17.0.3 --user fuse --path /home/fuse/provisioned fab02
The following containers have been created successfully:
Container: fab02.
The container is reported to be created succesfully but it never starts:
Fabric8:admin@root> container-list
[id] [version] [connected] [profiles] [provision status]
fab02 1.0 false default
root* 1.0 true fabric, fabric-ensemble-0000-1 success
Enabling temporarily set DEBUG
on root
node shows a hint of the real problem:
Running: chmod +x bin/admin bin/admin.bat bin/client bin/client.bat bin/fusefabric bin/fusefabric.bat bin/karaf bin/karaf.bat bin/setenv bin/setenv.bat bin/shell bin/shell.bat bin/start bin/start.bat bin/status bin/status.bat bin/stop bin/stop.bat
sed: -e expression #1, char 70: unknown option to `s'
nohup: appending output to `nohup.out'
Command Failed:Could not find Karaf instance.properties
Seems like the owner of /home/fabric8/fabric8-karaf is wrong.
docker run -P -it fabric8/fabric8 /home/fabric8/fabric8-karaf/bin/fabric8
Unable to update instance pid: Unable to create directory /home/fabric8/fabric8-karaf/instances
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.apache.karaf.main.Main.doLock(Main.java:1442)
at org.apache.karaf.main.Main.lock(Main.java:1430)
at org.apache.karaf.main.Main$1.run(Main.java:357)
Caused by: java.lang.RuntimeException: Karaf can't startup, make sure the log file can be accessed and written by the user starting Karaf : java.io.FileNotFoundException: /home/fabric8/fabric8-karaf/lock (Permission denied)
at org.apache.karaf.main.SimpleFileLock.<init>(SimpleFileLock.java:53)
... 7 more
...
RUN curl --silent --output fabric8.zip https://repository.jboss.org/nexus/content/groups/ea/io/fabric8/fabric8-karaf/1.0.0.redhat-366/fabric8-karaf-1.0.0.redhat-366.zip
...
Current view (2014-04-29) of https://repository.jboss.org/nexus/content/groups/ea/io/fabric8/fabric8-karaf/ :
1.0.0.redhat-328/ Tue Jan 28 10:43:01 EST 2014
1.0.0.redhat-355/ Sun Mar 02 21:35:13 EST 2014
1.0.0.redhat-378/ Wed Apr 02 14:07:16 EDT 2014
maven-metadata.xml.md5 Wed Apr 02 06:55:04 EDT 2014 33
maven-metadata.xml.sha1 Wed Apr 02 06:55:04 EDT 2014 41
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.