#!/bin/bash
|
|
|
|
trap "cd '..'" TERM INT
|
|
|
|
# run docker-container
|
|
run() {
|
|
cd "compose" && \
|
|
docker-compose build --no-cache deb-rust && \
|
|
docker-compose up && \
|
|
|
|
|
|
}
|
|
|
|
run
|
|
|
|
#to do:
|
|
# ctrl-c(sigint):
|
|
# stop and remove container(with custom message)
|
|
# cd ..
|
|
|
|
|
|
|
|
|
|
|
|
|