Skip to content

Commit

Permalink
improve make-reset
Browse files Browse the repository at this point in the history
  • Loading branch information
JeronimoC23 committed Dec 22, 2021
1 parent 5bd3c42 commit d79a2df
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Variables to define the container path
docker_image_name = omeka
current_dir = $(notdir $(shell pwd))
addres_to_copy_the_lan_config = $(addprefix $(current_dir),_omeka_1:/var/www/html/application/config/config.ini)
container_name := $(current_dir)_$(docker_image_name)_1
container_path_to_copy_config_file = $(addprefix $(container_name),:/var/www/html/application/config/config.ini)


# Help commands

list:
@docker image ls
Expand All @@ -8,7 +14,7 @@ down:
@docker-compose down

delete-image:
@docker image rm omeka
@docker image rm $(docker_image_name)

up:
@docker-compose up
Expand All @@ -17,6 +23,11 @@ stop:
@docker-compose stop

copy-config:
@docker cp ./config.ini $(addres_to_copy_the_lan_config)
@docker cp ./config.ini $(container_path_to_copy_config_file)


# Build and spanish config
build-config: up copy-config

reset: down delete-image up copy-config stop up
# Re-build and spanish config
rebuild-docker-image: down delete-image up copy-config

0 comments on commit d79a2df

Please sign in to comment.