Posts

Showing posts from March, 2022

About Kubernetes

Image

Spring Boot / Embedded Tomcat - SSL

 @Bean     public ServletWebServerFactory servletContainer() {         TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory() {             @Override             protected void postProcessContext(Context context) {                 var securityConstraint = new SecurityConstraint();                 securityConstraint.setUserConstraint("CONFIDENTIAL");                 var collection = new SecurityCollection();                 collection.addPattern("/*");                 securityConstraint.addCollection(collection);                 context.addConstraint(securityConstraint);             }       ...

Liquibase in Docker container kimi istifade edilmesi

docker run --rm --network my-test-net -v D:\Workspace\my-app\migration-service\src\main\resources\:/liquibase/changelog liquibase/liquibase --defaultsFile=/liquibase/changelog/liquibase.properties generateChangeLog url : jdbc:postgresql://a54427d8649e/my_db username : postgres password : hamid318 changeLogFile : /liquibase/changelog/mytestv3.yaml Eger evvelceden yaradilmis db container varsa, docker de network yaradib hemin containeri i yaradilan network a elave etmek lazimdir. liquibase i run ederken hemin networka elave edirik docker run --rm --network my-test-net -v D:\Workspace\my-app\migration-service\src\main\resources\:/liquibase/changelog liquibase/liquibase --defaultsFile=/liquibase/changelog/liquibase.properties generateChangeLog --includeObjects="users"