Onwerk Blog

Schlagwort: Docker


Talk: „Relational database migrations (with Flyway)“

The slides for the talk „Relational database migrations (with Flyway)“ (RheinNeckarJS Meetup|Twitter, 15.02.2017) are online at Speakerdeck.   I will show how you can use Flyway to have a consistent way to migrate databases (MySql, Maria, Oracle, SQL Server and a lot more) automatically during deployment/as a part of your continuous deployment process. This can also help you with your integration tests.   Content: What are migrations? What are no migrations? Why should I automate it? How does Flyway work? Flyway in an automated deployment process Live Demo


Minimizing your Docker images

As your project grows it can be challenging to make sure that only the necessary files get sent to the Docker daemon.   There are several tips to help you with this.   Use a „build“ directory Using a .dockerignore file to ignore all files that should not be sent to the docker daemon sounds easy but in large projects this can be quite challenging task, especially if your build tasks get more and grow. I often found it easier to create a single „build“ director during the build process (like grunt, gulp or similar), build and prepare everything into […]


Talk: „Pipelines vom Commit bis zur Docker-Testinstanz“

Die Unterlagen zum Vortrag „Pipelines vom Commit bis zur Docker-Testinstanz“ (DevOps Rhein-Neckar Meetup, 23.01.2017) sind auf Speakerdeck online verfügbar.   In 5 Minuten vom einem Entwickler-Commit hin zu einer Testinstanz oder zu einem kompletten Deployment: Das ermöglicht zügiges Testen und schnelle Deployment-Zyklen. Möglich wird dies bspw. mit „Docker Cloud“. Allerdings ist „Docker Cloud“ darauf ausgelegt, mit öffentlichen Repositories und öffentlich erreichbaren Testsystemen zu arbeiten. Ist dies nicht der Fall, so kann man eine solche Pipeline mit einer Kombination von Open-Source-Tools erreichen:   Mit einer Kombination aus Version Control System, Jenkins, Docker und nginx sowie einigen kleinen Netzwerkkniffen ist es möglich, […]


Docker Security: Check file checksum before you add an apt-key

If you’re adding additional sources for apt-get in your Dockerfile you should make sure that the correct key is added, otherwise the integrity of your Docker image may be violated. You can do so by using sha256sum to generate the checksum of the downloaded file and compare it to a given checksum. That checksum could be listed on the web page where you download the file from or you can create it by yourself with sha256sum: $:~/Docker-apt-key-security$ sha256sum archive.key 191f801a17273f25b781c580c2900d2fd58064554220ad6e18698aeb3c3afe70 archive.key In that case "191f801a17273f25b781c580c2900d2fd58064554220ad6e18698aeb3c3afe70" is the checksum of the file archive.key. Use that checksum in your Dockerfile, once the […]


With Docker in 5 minutes from developer to test server

An on-premise „Docker Cloud“-like workflow from repository to Jenkins to test server   As a software company for individual software solutions we are developing software in highly diverse settings, in means of programming languages, databases and environments: Node.JS, PHP, C#, MySQL, MongoDB, MS SQL, Windows, Ubuntu, Debian, you name it. That makes it a challenging task to provide test servers or acceptance test servers for fellow developers, project managers and customers. We used to solve this by spinning up multiple virtual machines or cloud servers. This became more and more complicated, extensive to maintain and resource consuming. Furthermore, it had […]


Running Windows Docker images

In the recent days I was rather confused about native Docker for Windows. What are the conditions to run a Docker image on Windows? Linux image or Windows image? Docker on Windows needs Hyper-V, but on my development box I need VMWare Workstation to run testing virtual machines, VMWare does not play with Hyper-V, so how can I use Docker on Windows for the cool new things?   I found out that a lot of my confusion had to do with bad product naming…   There is the Docker Toolbox for Windows (Docker up to 1.11) which is basically a […]
Nach oben
Zur Desktop-Version