Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make reset #17

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open

Make reset #17

wants to merge 5 commits into from

Conversation

JeronimoC23
Copy link

Creating and updating the Make file with some necessary docker and docker-compose commands

@JeronimoC23 JeronimoC23 changed the base branch from master to dev December 21, 2021 19:39
@MJoaaquin MJoaaquin self-requested a review December 21, 2021 19:50
@MJoaaquin MJoaaquin assigned MJoaaquin and JeronimoC23 and unassigned MJoaaquin Dec 21, 2021
@MJoaaquin
Copy link
Contributor

@JeronimoC23 Probando me paso que si no existe la imagen el comando explota. Lo que deberia pasar es que el comando siga normal y haga el docker-compose up no? 🤔

@MJoaaquin MJoaaquin linked an issue Dec 22, 2021 that may be closed by this pull request
@MJoaaquin
Copy link
Contributor

@JeronimoC23 fijate que la historia de la branch arranco mal y todavia tiene los commits viejos que elimine

@MJoaaquin
Copy link
Contributor

@JeronimoC23 Podremos validar que exista el archivo que vamos a subir? recien probe y funco todo pero yo no tenia el config.ini

Makefile Outdated
Comment on lines 1 to 2
current_dir = $(notdir $(shell pwd))
addres_to_copy_the_lan_config = $(addprefix $(current_dir),_omeka_1:/var/www/html/application/config/config.ini)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

se me ocurrio agregar unas variables mas para que se mas facil de entender y de cambiar si en un futuro cambia algo, como el nombre de la docker image por ejemplo

Suggested change
current_dir = $(notdir $(shell pwd))
addres_to_copy_the_lan_config = $(addprefix $(current_dir),_omeka_1:/var/www/html/application/config/config.ini)
docker_image_name = omeka
current_dir = $(notdir $(shell pwd))
container_name := $(current_dir)_$(docker_image_name)_1
container_path_to_copy_config_file = $(addprefix $(container_name),:/var/www/html/application/config/config.ini)

Makefile Outdated
@docker-compose stop

copy-config:
@docker cp ./config.ini $(addres_to_copy_the_lan_config)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

si cambias lo del comment que te deje antes no te olvides de cambiar el nombre aca 👀

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

reset: down delete-image up copy-config stop up
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podria llamarse rebuild-docker-image? o algo asi?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Mejora del reset del makefile
2 participants