skip to Main Content

Accessing persistent H2 DB in docker container

I'm deploying a springboot application and I want to use a persistent DB. So, in application.properties file, I have spring.datasource.url=jdbc:h2:file:/home/ubuntu/db;AUTO_SERVER=TRUE; Now this works as long as I start this application without using a container. Now, I build a docker image…

VIEW QUESTION

Dockerfile RUN layers vs script

Docker version 19.03.12, build 48a66213fe So in a dockerfile, if I have the following lines: RUN yum install aaa bbb ccc && <some cmd> && <etc> && <some cleanup> is that a best practice? Should I keep yum part separate…

VIEW QUESTION

InitContainer run a Python command – Docker

I need to run a pip install command in an initcontainer. I´m using the python:3.9-slim-buster image. I created the following code, however I get the following error: /usr/local/bin/python3: No module named pip install moduleexample Code: spec: volumes: - name: agent-volume…

VIEW QUESTION
Back To Top
Search