#!/usr/bin/env bash

# Setup the infrastructure.
for script in "infrastructure-network.sh" "infrastructure-mongo.sh" "infrastructure-redis.sh"; do
    source "$PWD/devops/${script}"
done

# Link the infrastructure and run the image.
# Stop the containers even if the tests fail.
docker run -it --name linz --network linz --rm -p 8888:8888 linz

# Store the exit status of the tests.
exitWith=$?

# Clean up.
source $PWD/devops/clean.sh

# Now we can exit, with the status of the tests.
exit $exitWith

#!/usr/bin/env bash

# Setup the infrastructure.
for script in "infrastructure-network.sh" "infrastructure-mongo.sh" "infrastructure-redis.sh"; do
    source "$PWD/devops/${script}"
done

# Link the infrastructure and run the image.
# Stop the containers even if the tests fail.
docker run -it --name linz --network linz -v $PWD/public:/app/public -v $PWD/views:/app/views --rm -p 8888:8888 linz

# Store the exit status of the tests.
exitWith=$?

# Clean up.
source $PWD/devops/clean.sh

# Now we can exit, with the status of the tests.
exit $exitWith

Add the ability to edit public and view files without restarting node
Add the ability to edit public and view files without restarting node
