How to install bundle Offline

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How to install bundle Offline

imranrazakhan
I have karaf deployed but with no internet connectivity, Now i have to
install jolokia on it but getting below error

@root()> feature:install jolokia                                                                                
Error executing command: Error:                                                                                        
       Error downloading mvn:org.jolokia/jolokia-osgi/1.3.5    

How i can install offline?



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Reply | Threaded
Open this post in threaded view
|

Re: How to install bundle Offline

jbonofre
Hi,

you can:

1. populate the Karaf system folder manually or using mvn
deploy:deploy-file or mvn install:install-file
2. you can create a kar on a machine connected to Internet and then
deploy the kar
3. you can install cave on a machine with Internet access and use as a proxy

Probably the quickest approach is 1, you just populate the Karaf system
folder (which is basically a embedded Maven repository).

Regards
JB

On 09/10/2019 13:09, imranrazakhan wrote:

> I have karaf deployed but with no internet connectivity, Now i have to
> install jolokia on it but getting below error
>
> @root()> feature:install jolokia                                                                                
> Error executing command: Error:                                                                                        
>        Error downloading mvn:org.jolokia/jolokia-osgi/1.3.5    
>
> How i can install offline?
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: How to install bundle Offline

cschneider
Another approach is to start with an empty maven repo on a machine with internet connect.
Then install the feature in karaf. This will populate the local maven repo.
You can then copy the local maven repo to your machine without internet access.
This is ideal for quickly testing. 

For a production setup a custom karaf distro that contains karaf + your features is a good solution.

Christian

Am Mi., 9. Okt. 2019 um 13:57 Uhr schrieb Jean-Baptiste Onofré <[hidden email]>:
Hi,

you can:

1. populate the Karaf system folder manually or using mvn
deploy:deploy-file or mvn install:install-file
2. you can create a kar on a machine connected to Internet and then
deploy the kar
3. you can install cave on a machine with Internet access and use as a proxy

Probably the quickest approach is 1, you just populate the Karaf system
folder (which is basically a embedded Maven repository).

Regards
JB

On 09/10/2019 13:09, imranrazakhan wrote:
> I have karaf deployed but with no internet connectivity, Now i have to
> install jolokia on it but getting below error
>
> @root()> feature:install jolokia                                                                               
> Error executing command: Error:                                                                                         
>        Error downloading mvn:org.jolokia/jolokia-osgi/1.3.5   
>
> How i can install offline?
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com


--
--
Christian Schneider

http://www.liquid-reality.de

Computer Scientist

Reply | Threaded
Open this post in threaded view
|

Re: How to install bundle Offline

jbonofre
Good point, or even copy the repository somewhere on the machine and add
in etc/org.ops4j.pax.url.mvn.cfg.

Regards
JB

On 09/10/2019 17:51, Christian Schneider wrote:

> Another approach is to start with an empty maven repo on a machine with
> internet connect.
> Then install the feature in karaf. This will populate the local maven repo.
> You can then copy the local maven repo to your machine without internet
> access.
> This is ideal for quickly testing. 
>
> For a production setup a custom karaf distro that contains karaf + your
> features is a good solution.
>
> Christian
>
> Am Mi., 9. Okt. 2019 um 13:57 Uhr schrieb Jean-Baptiste Onofré
> <[hidden email] <mailto:[hidden email]>>:
>
>     Hi,
>
>     you can:
>
>     1. populate the Karaf system folder manually or using mvn
>     deploy:deploy-file or mvn install:install-file
>     2. you can create a kar on a machine connected to Internet and then
>     deploy the kar
>     3. you can install cave on a machine with Internet access and use as
>     a proxy
>
>     Probably the quickest approach is 1, you just populate the Karaf system
>     folder (which is basically a embedded Maven repository).
>
>     Regards
>     JB
>
>     On 09/10/2019 13:09, imranrazakhan wrote:
>     > I have karaf deployed but with no internet connectivity, Now i have to
>     > install jolokia on it but getting below error
>     >
>     > @root()> feature:install jolokia                                 
>                                                  
>     > Error executing command: Error:                                   
>                                                          
>     >        Error downloading mvn:org.jolokia/jolokia-osgi/1.3.5   
>     >
>     > How i can install offline?
>     >
>     >
>     >
>     > --
>     > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>     >
>
>     --
>     Jean-Baptiste Onofré
>     [hidden email] <mailto:[hidden email]>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
>
>
>
> --
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Computer Scientist
> http://www.adobe.com
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: How to install bundle Offline

Miroslav Beranič
I do it in production like had Christian described -- as production is "final" server, there are few servers before it - that have internet connection, so just rsync it for there to the production server once the "local" Maven repo is updated.

But based on this thread, I will look into how to build a kar package, I did not put much effort into any other way as this works for me quite OK. Or even a Cave, but all this looks too complicated.

Kind Regards,
Miroslav


V V sre., 9. okt. 2019 ob 18:13 je oseba Jean-Baptiste Onofré <[hidden email]> napisala:
Good point, or even copy the repository somewhere on the machine and add
in etc/org.ops4j.pax.url.mvn.cfg.

Regards
JB

On 09/10/2019 17:51, Christian Schneider wrote:
> Another approach is to start with an empty maven repo on a machine with
> internet connect.
> Then install the feature in karaf. This will populate the local maven repo.
> You can then copy the local maven repo to your machine without internet
> access.
> This is ideal for quickly testing. 
>
> For a production setup a custom karaf distro that contains karaf + your
> features is a good solution.
>
> Christian
>
> Am Mi., 9. Okt. 2019 um 13:57 Uhr schrieb Jean-Baptiste Onofré
> <[hidden email] <mailto:[hidden email]>>:
>
>     Hi,
>
>     you can:
>
>     1. populate the Karaf system folder manually or using mvn
>     deploy:deploy-file or mvn install:install-file
>     2. you can create a kar on a machine connected to Internet and then
>     deploy the kar
>     3. you can install cave on a machine with Internet access and use as
>     a proxy
>
>     Probably the quickest approach is 1, you just populate the Karaf system
>     folder (which is basically a embedded Maven repository).
>
>     Regards
>     JB
>
>     On 09/10/2019 13:09, imranrazakhan wrote:
>     > I have karaf deployed but with no internet connectivity, Now i have to
>     > install jolokia on it but getting below error
>     >
>     > @root()> feature:install jolokia                                 
>                                                  
>     > Error executing command: Error:                                   
>                                                          
>     >        Error downloading mvn:org.jolokia/jolokia-osgi/1.3.5   
>     >
>     > How i can install offline?
>     >
>     >
>     >
>     > --
>     > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>     >
>
>     --
>     Jean-Baptiste Onofré
>     [hidden email] <mailto:[hidden email]>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
>
>
>
> --
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Computer Scientist
> http://www.adobe.com
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com


--
Miroslav Beranič
MIBESIS
[hidden email]
https://www.mibesis.si
Reply | Threaded
Open this post in threaded view
|

Re: How to install bundle Offline

cschneider
If you do not change the server in production at runtime then I recommend the karaf custom distribution way. 
The name sounds daunting maybe but it is much easier than it seems.
The result is a single deployment unit tar.gz or zip that you simply unpack on your system and run. It contains karaf and your bundles and auto starts your needed features.

Christian

Am Mi., 9. Okt. 2019 um 23:50 Uhr schrieb Miroslav Beranič <[hidden email]>:
I do it in production like had Christian described -- as production is "final" server, there are few servers before it - that have internet connection, so just rsync it for there to the production server once the "local" Maven repo is updated.

But based on this thread, I will look into how to build a kar package, I did not put much effort into any other way as this works for me quite OK. Or even a Cave, but all this looks too complicated.

Kind Regards,
Miroslav


V V sre., 9. okt. 2019 ob 18:13 je oseba Jean-Baptiste Onofré <[hidden email]> napisala:
Good point, or even copy the repository somewhere on the machine and add
in etc/org.ops4j.pax.url.mvn.cfg.

Regards
JB

On 09/10/2019 17:51, Christian Schneider wrote:
> Another approach is to start with an empty maven repo on a machine with
> internet connect.
> Then install the feature in karaf. This will populate the local maven repo.
> You can then copy the local maven repo to your machine without internet
> access.
> This is ideal for quickly testing. 
>
> For a production setup a custom karaf distro that contains karaf + your
> features is a good solution.
>
> Christian
>
> Am Mi., 9. Okt. 2019 um 13:57 Uhr schrieb Jean-Baptiste Onofré
> <[hidden email] <mailto:[hidden email]>>:
>
>     Hi,
>
>     you can:
>
>     1. populate the Karaf system folder manually or using mvn
>     deploy:deploy-file or mvn install:install-file
>     2. you can create a kar on a machine connected to Internet and then
>     deploy the kar
>     3. you can install cave on a machine with Internet access and use as
>     a proxy
>
>     Probably the quickest approach is 1, you just populate the Karaf system
>     folder (which is basically a embedded Maven repository).
>
>     Regards
>     JB
>
>     On 09/10/2019 13:09, imranrazakhan wrote:
>     > I have karaf deployed but with no internet connectivity, Now i have to
>     > install jolokia on it but getting below error
>     >
>     > @root()> feature:install jolokia                                 
>                                                  
>     > Error executing command: Error:                                   
>                                                          
>     >        Error downloading mvn:org.jolokia/jolokia-osgi/1.3.5   
>     >
>     > How i can install offline?
>     >
>     >
>     >
>     > --
>     > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>     >
>
>     --
>     Jean-Baptiste Onofré
>     [hidden email] <mailto:[hidden email]>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
>
>
>
> --
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Computer Scientist
> http://www.adobe.com
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com


--
Miroslav Beranič
MIBESIS
[hidden email]
https://www.mibesis.si


--
--
Christian Schneider

http://www.liquid-reality.de

Computer Scientist