You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

45 lines
942 B

all:
#call without target, exiting...
archive:
gtar -czvf solution.tar.gz \
requirements.txt \
Dockerfile \
Makefile \
service.conf \
solution.py \
server.py \
app_config.py \
config_object.py \
request_builder.py \
template_conf.conf \
request.json
send:
rsync -ahP \
requirements.txt \
Dockerfile \
Makefile \
service.conf \
solution.py \
server.py \
app_config.py \
config_object.py \
request_builder.py \
template_conf.conf \
request.json \
qemu-debian-mini:~/test
docker-run: docker-buld
# Одельно обращаю внимание на секцию --mount. Можно прокинуть
# путь к папке внутри контейнера жестко, но для демо-целей
# volume, на мой взгляд, чище
docker run -itd --rm \
--name solution \
--mount source=sol_volume,target=/ng \
--network host \
solution:latest
docker-buld:
docker build -t solution .