testing / test.sh
RohanVashisht's picture
Upload 24 files
b34f095 verified
raw
history blame contribute delete
400 Bytes
#!/bin/bash
# Set the directory to this script's current directory
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
source ./settings.sh
docker run --rm -i -t \
-e CONTAINER_NAME=${CONTAINER_NAME} \
--memory=${MEMORY_MAX} \
--memory-swap=${MEMORY_MAX} \
--memory-swappiness="0" \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-p 80:80 \
-p 443:443 \
${IMAGE_NAME} bash