I am trying to install MarkLogic 10 and then deploy some files in the MarkLogic server using MLCP in a CentOS machine using a docker image.
I have installed the following in the CentOS machine using a docker image -
MarkLogic 10-.0-9.4x86_64.rpm,
mlcp-10.0.9 and
jdk-18.0.2.1_linux-x64_bin.rpm
When I run the container, MarkLogic installs,starts and prompts to set up the admin server on localhost.
But just after the jdk installation, the admin server automatically shuts down and hence the mlcp does not find any running host to import the file.
Is there any dependency/compatibility issue with the JDK version which I have used ?
Related
I am very new to Docker as a whole.
I have a VPS with Debian 10 Buster, running Docker. I also installed Docker Desktop on my windows 10 pc. I like the GUI, and I googled if i can manage my VPS docker with this application, but found no answear.
Is this possible, or am i missing something obvious?
While I have not been able to connect the Windows 10 Docker Desktop application to my Docker engine running on my Debian 10 VPS, I found an alternative:
portainer.io
This is a service, with a free plan option(CE). You install this docker image following their documentation, and it runs on the host machine, in my case, the Debian VPS. I use this image on port 9000, so all I have to do to access it is open a browser and navigate to http://HOSTIPADDRESS:9000.
There you will find a gui similar to the Docker Desktop application.
I have to do PHP development, for this I was given an Windows 10 machine, this is something I cannot change. So I use the WSL2 feature to setup and development server using Ubuntu 20.04.
First attempt:
Used Windows with Docker Desktop. I configured the environment but was had issues. The mapping between of the project volume and Docker caused important processed like Composer, git etc to be very slow. So this is considered unworkable for me.
Second attempt:
Setup a development environment directly in the WSL2 instance. This works. I'm able to connect with the Xdebug debugger using PhpStorm. But again the rest of the operations are very slow and is considered unworkable for me.
Third attempt:
I was advised to do the following: Create WSL2 Ubuntu 20.04 instance. Install docker on it and store the project folder directly in \\wsl$. In this WSL2 instance I run a docker webserver container. The webserver becomes accessible by localhost.
This seems to work very good, not sure why though... The websites running on the docker webserver are very fast and executing git or composer commands are fast. I open the project folder directly from the \\wsl$ location with PhpStorm.
The only issue I'm having is that I'm unable to create Xdebug session using PhpStorm.
My question is: How to configure the development environment so I can use Xdebug?
Facts & specs
Windows 10 as host machine.
WSL instance: Ubuntu 20.04
Docker webserver instance: Ubuntu 20.04 (php7.4-fmp and apache2, xdebug 3.0.3 port 9000)
The docker webserver container can access the host network (192.x.x.x.)
The docker webserver container can access the WSL network (172.20.x.x)
I use the following xdebug settings:
xdebug.mode = debug
xdebug.client_host = host.docker.internal (this goes to the 192.x.x. address)
Any advise on how to make Xdebug work in this setup?
On Windows 10 Pro, I installed docker and the Kubernetes cli. I upgraded the kubectl.exe to version 1.15 by replacing the old one in the docker folder. When I run “kubectl version”, it shows the client version as 1.15, but the server version still shows as 1.10. How can I upgrade the server version to 1.15?
Welcome to SO !, I assume you are using Kubernetes cluster, that is available as an installation option of Docker Desktop for Windows. In that case you cannot easily upgrade your Kubernetes cluster (server side), as its particular version is bundled with Docker Desktop installer (e.g. Docker Community Edition 2.0.0.2 2019-01-16 comes with Kubernetes 1.10.11 version).
If you want to have a full control over Kubernetes version (server side/control plane) please check minikube tool, which lets you specify it by adding '--kubernetes-version' argument (minikube start --kubernetes-version v1.15.0). With minikube there is still an option to re-use the Docker daemon inside the VM (started with 'minikube start command' in the background).
You need to upgrade kubernetes control plane.
you can use below commands to upgrade k8s cluster if the cluster is setup using kubeadm
export VERSION="1.15"
export ARCH=amd64
wget https://storage.googleapis.com/kubernetes-release/release/v${VERSION}/bin/linux/amd64/kubeadm > /usr/bin/kubeadm
chmod a+rx /usr/bin/kubeadm
kubeadm upgrade apply ${VERSION}
I installed and started tomcat in a centos docker container. But I am unable to open tomcat in browser using HOST-IP:8080. It is showing error that this site can't be reached.
I think about installing a docker system on my local test server with ubuntu 16.04. I already installed lamp with many test applications.
Can I use docker with mysql, apache and php parallel on the same server without compromising the already installed and used system or do i have to set up a virtual box system before?
You can definitely install Docker with all the lamp stack as containers, and that will not affect the already running apps.
You will only have to remap the docker container ports to custom ports
(ex: apache 80->8080)