docker run --name=psql -U postgres -d postgres
docker run -it --name=pgadmin -p 80:80 -e 'PGADMIN_DEFAULT_EMAIL=1@1.com' -e 'PGADMIN_DEFAULT_PASSWORD=Pass123' -d dpage/pgadmin4
docker build -t jenkins-dckr -f Dockerfile ./Jenkins
docker run --network external-api --name=jenkins-dckr -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock jenkins-dckr
- New Item
- Pipeline
- Pipeline script from CSM
- Git
- Repository URL
- New Item
- Freestyle project
- Source Code Management
- Git
- Repository URL
- Add build step
- Execute shell
- Command
docker build .
src/main/script/*
src/main/resources/liquibase.properties
- Add new file with DB changes to src/main/script/
- Add URI of the new file to changelog-master.xml
Three variants:
- pom.xml -> build -> plugins -> plugin -> executions -> execution -> goals
- Jenkinsfile -> pipeline -> stages -> stage -> steps ->
- Dockerfile
RUN mvn liquibase:newCommand
- java
- maven
- System variable JAVA_HOME