This file contains hidden or 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 run --rm -it -p 8080:8080 -e SWAGGER_JSON=/foo/api.yaml -v $(pwd):/foo swaggerapi/swagger-ui |
This file contains hidden or 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
kubectl run --rm -it --restart=Never network-multitool --image=wbitt/network-multitool:alpine-extra -- bash |
This file contains hidden or 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
# This should make your file accessible on http://localhost:9080 | |
# File is given as command line parameter. Expects relative path from current directory. | |
THE_FILE=$1 | |
# File is served on port 9080. | |
docker run -it --rm -p 9080:80 -v "$(pwd)/$THE_FILE":"/usr/share/nginx/html/$THE_FILE" nginx:latest |
This file contains hidden or 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
# Flyway command line examples | |
# | |
# Print some info about the migrations applied (or not) in the DB, relating to the migration scripts in some directory | |
flyway -X -url='jdbc:mariadb://localhost:3306/my_db?currentSchema=my_schema' \ | |
-user='my_db_user' -password='my_db_passwd' \ | |
-locations=filesystem:./src/main/resources/db/migration \ | |
info | |
# Migrate the DB using the files in the directory, but only up to version 1.2 |