In today's post I'll be writing about a specific problem, which is related to file checking through Docker containers. The thing is we have an auto test, which downloads a file and also checks it's name and file format. It happens in Docker containers, so the task is not so easy. The file name and file format checker code is running in the Maven container, and the test itself (in the browser) is running in the Selenium container. The command which downloads the file (and checks its file name and format) is in the Maven container, but the file is being downloaded into the Selenium container, so we need a shared storage. The way to do this is to make a shared volume between those two containers. You have to write additional commands into the Jenkinsfile and into the Dockercompose file also (I'm not going to present code here). First, it is a must to create the shared volume and then you have to mount it to both of the containers and you also have to specify to download the file into that shared volume. The file name and file format checking also has to happen in that shared volume. If you need any help, I'm here to help. I hope you find this short article useful.
Comments
Post a Comment