Skip to main content

Posts

Showing posts from December, 2019

Some basic things to know

What' the subtle difference between `test.sh` and `./test.sh` https://unix.stackexchange.com/questions/477704/what-the-subtle-difference-between-test-sh-and-test-sh Why do we use “./” to execute a file? https://unix.stackexchange.com/questions/4430/why-do-we-use-to-execute-a-file

Docker and testing

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 t...