[opencms-dev] OpenCms 10 and Docker

Filip Kratochvil filip.kratochvil at nelasoft.cz
Mon Apr 25 10:05:26 CEST 2016


Thank you Alex for quick response.

 

SSH

-          OK thanks, I’ll check it

 

Network drive

-          container running with sytem variable and ports configured (checked) but i’m not able still to connect network drive (i know it’s quite hard to give me some advice:)

 

Proxy

-          container running with sytem variable, but pages are still available only with prefixed URL:
http://192.168.99.100:8080/opencms/apollo-demo/home/ (OK)

but all links on the page have URL without prefix (example http://192.168.99.100:8080/apollo-demo/about/) - when i try to open this link (every link on the page), i get 404

container without system variable works OK (all links have prefixed URL and everything works well), so i think proxy isn’t good configured by default

 

Example of docker run (with jlan and proxy):

docker run -d -p 8080:8080 -p 1445:1445 -e "OCCO_ENABLE_JLAN=true" -e "OCCO_USEPROXY=true" alkacon/opencms-docker:10.0.0

 

--
S pozdravem / Kind regards
Filip Kratochvil
------------------------------------------------
NELASOFT Technologies, s.r.o.
E-mail: filip.kratochvil at nelasoft.cz
Web: www.nelasoft.cz <http://www.nelasoft.cz/> 

Twitter: @NELASOFT <https://twitter.com/NELASOFT> 

 

From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Alex Kandzior
Sent: Monday, April 25, 2016 9:08 AM
To: The OpenCms mailing list
Subject: Re: [opencms-dev] OpenCms 10 and Docker

 

Filip,

 

regarding your questions about OpenCms and Docker

 

-          i would like to know ho to connect to container via SSH (Putty or SCP on Windows)? I saw that older OpenCms versions have SSH configuration in Dockerfile, but version 10 don’t have it. Version 10 have different approach, or?

 

You don’t want to connect to the docker instance using ssh. That is really bad docker practice. Ask google about ssh to a docker container to get the details. Ask Google about ‚nsenter‘ or check here: https://blog.docker.com/tag/nsenter/





-          i’m not able to map shared network drive. I set system variables described here  <https://hub.docker.com/r/alkacon/opencms-docker/> https://hub.docker.com/r/alkacon/opencms-docker/ but there is no change…

 

It’s not that hard if you have the parameters right. You need to start the container with  '-e "OCCO_ENABLE_JLAN=true" -p 1445:1445‘. Im this case the network share is available at port 1445 on the docker host. 

 

-          when i try to set system variable for proxy (remove opencms prefix), all links on page end by 404

 

Impossible to tell what went wrong with this little information, sorry.


Kind regards,

Alex.

-------------------
Alexander Kandzior


Alkacon Software GmbH - The OpenCms Experts                                                    
http://www.alkacon.com - http://www.opencms.org                                                           

 

 

 

Am 25.04.2016 um 08:54 schrieb Filip Kratochvil <filip.kratochvil at nelasoft.cz>:

 

Hi guys,

 

i’m trying to run OpenCms with Docker (it’s new technology for me). I launched OpenCms 10 instance without problems but:

-          i would like to know ho to connect to container via SSH (Putty or SCP on Windows)? I saw that older OpenCms versions have SSH configuration in Dockerfile, but version 10 don’t have it. Version 10 have different approach, or?

-          i’m not able to map shared network drive. I set system variables described here  <https://hub.docker.com/r/alkacon/opencms-docker/> https://hub.docker.com/r/alkacon/opencms-docker/ but there is no change…

-          when i try to set system variable for proxy (remove opencms prefix), all links on page end by 404

 

Does anyone have same experience?

 

Thank you very much.

 

--
S pozdravem / Kind regards
Filip Kratochvil
------------------------------------------------
NELASOFT Technologies, s.r.o.
E-mail: filip.kratochvil at nelasoft.cz
Web: www.nelasoft.cz <http://www.nelasoft.cz/> 

Twitter: @NELASOFT <https://twitter.com/NELASOFT> 

 

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
 <http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20160425/f89b2f82/attachment.htm>


More information about the opencms-dev mailing list