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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 

36 lines
766 B

#!/usr/bin/make -f
# Copyright (c) 2017, Franco Masotti.
# See LICENSE file for details.
SAVED_IMAGE=rserve.tar
USER=rserve
UHOME=/home/$(USER)
MOUNT=-v /home/$(USER):/home/rserve
all::
@echo "Targets:"
@echo
@echo " load Loads the precompiled image"
@echo " run Run the image one time"
@echo " install Run the image with --restart=unless-stopped"
@echo " shell Run an interactive shell in the image"
load:
docker load < $(SAVED_IMAGE)
run:
docker run --net=none --detach $(MOUNT) rserve
install:
docker run --net=none --detach --restart=unless-stopped $(MOUNT) rserve
shell:
docker run -it $(MOUNT) rserve /bin/bash
user: $(UHOME)
deluser:
sudo userdel $(USER)
sudo rm -rf $(UHOME)