This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ #$ -lt 1 ]; then | |
printf "Usage: $0 <environment>" | |
exit | |
fi | |
deploy_host=x.x.x.x | |
artifact_id=$(mvn help:evaluate -Dexpression=project.artifactId | grep -v '\[') | |
current_version=$(mvn help:evaluate -Dexpression=project.version | grep -v '\[') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM {{registry}}/my-tomcat:1.0.0 | |
ADD {{artifact_id}}.war /usr/local/tomcat/webapp/ROOT.war | |
{% for dependency in dependencies %} | |
ADD {{dependency.name}} {{dependency.path}} | |
{% endfor %} | |
CMD ["catalina.sh", "run"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpkg --get-selections | grep linux-image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker rm -v $(docker ps -aq -f status=exited) //remove exited containers | |
docker volume rm $(docker volume ls -qf dangling=true) //remove dangling volumes |
NewerOlder