Showing posts with label docker. Show all posts
Showing posts with label docker. Show all posts

Thursday, August 26, 2021

Using docker-compose to Deploy HCL DX Portal, DAM and CC

One of the harder things in the past for customers and some partners was the complexity of the setup of a DX Portal environment.

Starting from the software  acquisition HCL has started a transition for DX portal to the container world starting from the WebSphere "core" part to the new applications like DAM (the new media access gallery).


During last month  HCL has pushed on github repo an example of how start a complete environment in docker-compose .


Support has also released the following video with a step by step guide.

This is a nice opportunity to have a complete Dx environment up and running in minutes  



Friday, October 25, 2019

From 0 to DX 9.5 developer hero in 20 minutes with HCL official docker images

HCL with the release of DX 9.5 has build also an official docker image for OpenShift 4.x  .
As I read HCL has in plan to support Kubernetes vanilla and other cloud implementations very soon.

One of the possible way to use this image is use it with docker on your laptop so you could start to develop your DX 9.5 experience from 0 to portal up&running in 20 minutes :-) .

I made my test on my corporate laptop with Windows10 , Hyper-V and docker desktop 2.1.0.4.
If you haven't docker installed yet I suggest you to start from this page..

System Preparation

If you have just installed docker or if you haven't tuned the docker machine I suggest to augment the docker machine resources:

click with right button on docker icon in the sys-tray and than settings

go to advanced section and check the CPU/Memory/Swap /Disk Image Max size



Now if you haven't one already create a working directory to be used as wp_profile mount point and exclude it from your AV setting for performance reasons (at the first run wp_profile will be delated with almost 40k files) and for data integrity.

Execution


Unzip the package downloaded from Flexnet (right now it's  hcl-dx-openshift-v95-20190929-1242.zip

First step needed is importing the DX image to your docker image repo

docker load -i .\hcl-dx-core-image-v95_20190928-2258.tar.gz 

after some minutes while docker was importing all layer involved you will get the confirmation message:

Loaded image: hcl/dx/core:v95_20190928-2258 

Now it's time to create the container from the image exposing the port needed and mounting the wp_profile to the local filesystem to guarantee the persistance of the data:

docker run -p 10038:10038 -p 10039:10039 -p 10041:10041 -p 10042:10042 -p 10200:10200 -p 10202:10202 -v C:\docker\dx-store\wp_profile:/opt/HCL/wp_profile hcl/dx/core:v95_20190928-2258

where C:\docker\dx-store\wp_profile  it's my docker data directory.

At the first start some extra time will be required because DX profile will be generated on the path used in the command.

The image does not include HTTP and Plugin so this will be the URL

Url Portal   :       http://localhost:10039/wps/portal   
Url Console :    
https://localhost:10041/ibm/console
Utenza default:  wpsadmin / wpsadmin

if you need to enter into the container
 
                                               docker exec -it  container_name bash

The image is build using RHEL 8.0  , Portal security it's set to local was and  database it's local Derby.

When an upgraded image will be shipped you will need to repeat the first command to import and create the new container using the existing mounted wp_profile that will be upgraded (if needed) to match the new version.
After the upgrade the old container could be removed.

To close this post some others usefull docker commands


to check active container
docker ps

to check all container
docker ps -a

to rename a container
docker rename container_name new_name

to stop the container 
docker stop container_name

to start the container
docker start container_name


to remove the container
docker rm container_name

to remove a container image
docker rmi nome_immagine 

The official documentation about the DX docker images it's available at this page.

Tuesday, April 9, 2019

Docker on Windows 10, how to fix "unauthorized: incorrect username or password" starting hello-world

Working on my Win10 laptop I've decided to switch from Virtualbox to Hyper-V , so I was also forced to change  my docker setup from Docker toolbox (legacy)  to  Docker for Windows.


After the change , when I was testing docker running the hello-workd I've got the following error:

C:\Users\mbisi>docker run hello-world
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: unauthorized: incorrect username or password.
See 'docker run --help'.

Docker is storing the docker hub credential encrypted as referred in the following config file:

%USERPROFILE%/.docker/config.json



The easiest way to fix this issue is to perform a logout


C:\Users\mbisi>docker logout
Removing login credentials for https://index.docker.io/v1/

and a login from the hub:

C:\Users\mbisi>docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username:


that should fix the issue.

On the first try I tried to insert my username using the complete email address, but this cause a new authentication issue:

Username: myEmailAddress
Password:
Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password

If you are getting same error, try with the username should definitely fix this issue.The easiest way to find your docker hub username is logn to the  docker hub using a browser:


so I've retried:

C:\Users\mbisi>docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: mbisi
Password:
Login Succeeded

This fixed the original issue give me back the access to the docker hub.


A general recommendation if you have to switch from docker toolbox to docker for windows:
  1. uninstall docker toolbox
  2. check in the OS System environment and delete all docker_* variables
  3. check path variable and remove docker if present
  4. reboot the os, change the hypervisor 
  5. install docker for windows



Wednesday, November 1, 2017

IBM Jump Session: IBM Domino Applications on Cloud - 8 November 2017

As you probably know some weeks ago IBM has announced a new service named Domino Application on Cloud , to host customers application inside Domino Docker container on Bluemix.

IBM Support has scheduled a Jump session on this topic for 8 November 2017 with the following key arguments:

  • Introduction to the offering
  • How it is structured
  • Pre-requisites
  • Configuration
  • Start-up options

This webinar is scheduled for:
Date: Wednesday, November 8, 2017
Time: 10:00 AM EST (15:00 UTC/GMT, UTC-5 hours) for 60 minutes


Webinar and group chat will be available to the following link

Web conference password: webcast2017

This is a new interesting offering from IBM that could provide the feature missing from IBM Smartcloud Hybrid configuration, if you could be interested i strongly recomend to not miss this webinar because usually it end with Q&A.

For any other details like phone numbers or ics calendar entry please visit this page.

Sunday, August 20, 2017

IBM Notes and Domino 9.0.1 : It's a great time to be a Domino Customer or Consultant !

Some days ago IBM has released the  Feature pack 9 for Notes and Domino with some nice new feature and bug fixes.
Now I'd like to spend some lines to anticipate some features/update that will be released starting next month in one of the most exciting time for IBM Domino customers and partners !

Docker Support

Starting from  FP10 ( read the  Bill Malchisky blogpost ) , we will have the IBM support to run Domino inside a Docker container. 
This feature will provide more flexibility for Domino environment and will allow us to use Domino in some different ways like:

  • Microservices: we could start a Domino for ldap, another as application server or smtp relay and have any container safe and isolated from the previous one.
  • Developer could distribute their applications as blackbox, developing and sending to the customer a complete docker container with domino and the application. 
  • We could run many servers with different roles on a single host, all isolated (if necessary) in a new optimized way.
  • We could build and run new Domino server in seconds !

Docker started as a Linux project but since last year we can also run a Windows core container on Windows 2016 server (and on a Win10 host). 
In the last months I've tested both and I've found the Linux container completely reliable and usable , we will have to wait IBM to know if they will support Docker only for Linux container or if Windows will be included too.

IBM at the moment has no plan to distribute IBM Domino images via Docker hub so we have to build our images . 

If you need some info to start with  Domino and Docker containers, please read this post about IBM Connect 2016 session by Daniele Vistalli and me   :-) .

IBM Domino community server

Next month the new Domino Community server should be released,  it's the Domino server free of charge for developers announced during the last EngageUG conference !
This license will be limited for developing purposes and should encourage using Domino as an application platform.

Eclipse e Java upgrade

Inside the Feature pack 8 there's the JVM 8 for Domino and Notes.
Design client JVM upgrade is planned for Fp10  where we will also find the upgrade of Eclipse to 4.6x for both the Notes and the Designer client.
This upgrade should increase the reliability and functionality for users and developers.

------------------------------------------------------

In my opinion this is a great time to be Domino Customer or Domino Consultant.
Starting from the Feature pack Era IBM has changed the speed of support giving a second youth to Domino and Notes.

IBM is also listening so please fill this form  if you are using Domino application .

In my opinion this is a great time to be a Domino Customer too :-)

Below are the slides about our  Domino&Docker session presented during the IBM Connect 2016 (our idea was too far in the future :-) ) 

Friday, September 16, 2016

My slides from my iconuk 2016 session


This morning i had the honor to take a session during ICONUK 2016 together with my friend amico Andrea Fontana about Docker and IBM collaboration software.

At the end of the session we did a live session while we was showing a complete build of Was 9.0 images and we showed a complete Wesbphere Portal CF11 running inside a container with his http server.

During next days i will release too some of the dockerfiles on my git hub account , stay tuned.



Sunday, February 21, 2016

IBM Connect 2016, my slides about running IBM Domino inside a Docker container with my dockerfile

During last IBM Connecti 2016 I had the pleasure to be selected with my colleague Daniele Vistalli for a lightning talk (30 minutes session) named "AD-1772, Shipping Domino, How to put Domino in a Container and live happy".

I like to start with a disclaimer : running Domino inside a Docker container is not supported by IBM  , so you can of course do that but at your own risk.

After this disclaimer, i like to say Domino inside a Docker container works great and can be really useful for development task (see the slides to get our idea about that ).



Connect2016 - 1172 Shipping domino from Matteo Bisi


I've  start a github account with the script we have used during the live demo during our session and you can found the docker file following this link.
Inside the docker repository you can find 3 scripts:

  1. Dockerfile-domino4ubuntu-install
  2. Dockerfile-domino4ubuntu-setup
  3. Dockerfile-domino4ubuntu-FP5
Using this 3 script you will be able to create a Domino Image pre configured with a server id of your environment.
We have decided to split the creation of the Docker Image to 3 script for flexibility but you can obviously build a docker file that install , configure and upgrade domino  inside an image.

To run this scripts you have to prepare a working directory with the following: 
  • a folder named domino901 that contains the uncompressed Domino setup,  
  • initscripts that contains the Domino init script form Daniel Nashed (thanks again for your work!) , 
  • serverconfig that contains the Domino certifier domino admin ID and the txt file with the ids pw

If you have prepared all this things you can proceed to build your Docker Image using the script in the correct order.

The Install script will build the image starting from Ubuntu SRV 14.04 LTS and will prepare the environment and setup -up Domino silently inside the container.

The setup script will build a new image starting from the previous , and will make a silent configuration of the domino server copying the pds file ( you can obtain your pds file running a serverconfig -record from your notes directory) , the txt file with all id passwords.

To build the image you have to use the docker build command :

docker build -t mbisi/domino901-ready-playground:1.0 -f Dockerfile-domino4ubuntu-setup .

after that you can start the container mapping his ports with this docker run command:

docker run -it -p 1352:1352 -p 80:80 -p 443:443 mbisi/domino901-ready-playground:latest


The FP5 script will build a new image upgraded to the new FP.

Inside the image we have defined /local/notesdata as volume so the data of the Container will be persistence.

This Dockerfile would be a proof of concept to give you an some idea and help to starts your own container.

If you don't know Docker and you are interested to work with container you can start here with this nice video tutorial