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 | |
# Script to clean up unused containers and images | |
DANGLING_IMAGES=$(docker images -q --filter "dangling=true") | |
# Keeps the last 2 images/containers | |
IMAGE_IDS=$(docker images -q | tail -n +3) | |
CONTAINER_IDS=$(docker ps -a -q | tail -n +3) | |
if [ -n "$CONTAINER_IDS" ]; then |
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 | |
chown -R $SOLR_USER:$SOLR_USER /data | |
su -c "$@" -m $SOLR_USER |
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
const express = require('express'); | |
const bodyParser = require('body-parser'); | |
const validator = require('swagger-express-validator'); | |
const YAML = require('yamljs'); | |
const expand = require('expand-swagger-refs').expand; | |
const rp = require('request-promise'); | |
const argv = require('minimist')(process.argv.slice(2)); | |
const HttpStatus = require('http-status-codes'); | |
const swaggerPath = argv._[0]; |