~jeffa/jeffa.io

ref: fc77a5257f68503baa84b71e0e17271b04d13e3d jeffa.io/docker-dev.sh -rw-r--r-- 431 bytes
fc77a525Jeff Fix lint in dev script 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/bash
DEV_PORT="8080"

echo "Clearing docker containers...";

docker stop "$(docker ps -aq)";
docker rm "$(docker ps -aq)";

echo "Building container...";

docker build -t jkanderson409/jeffa.io .;

echo "Running container...";

docker run \
    --name jeffa.io \
    --detach \
    --volume /mnt/blockstorage:/etc/letsencrypt \
    --publish 8080:80 \
    jkanderson409/jeffa.io;

echo "Container is running at $DEV_PORT";