5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-14 22:51:41 +00:00

exponer el puerto de prometheus!

This commit is contained in:
f 2020-09-22 15:17:59 -03:00
parent 99f5ca53b0
commit da7105fb0a
2 changed files with 4 additions and 1 deletions

View file

@ -119,3 +119,4 @@ VOLUME "/srv/http/data"
# El puerto de puma # El puerto de puma
EXPOSE 3000 EXPOSE 3000
EXPOSE 9394

View file

@ -3,7 +3,7 @@ mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
root_dir := $(patsubst %/,%,$(dir $(mkfile_path))) root_dir := $(patsubst %/,%,$(dir $(mkfile_path)))
include $(root_dir)/.env include $(root_dir)/.env
delegate := anarres delegate := athshe
assets := package.json yarn.lock $(shell find app/assets/ app/javascript/ -type f) assets := package.json yarn.lock $(shell find app/assets/ app/javascript/ -type f)
@ -32,9 +32,11 @@ clean:
# Generar la imagen Docker # Generar la imagen Docker
build: assets build: assets
time docker build --build-arg="RAILS_MASTER_KEY=`cat config/master.key`" -t sutty/sutty . time docker build --build-arg="RAILS_MASTER_KEY=`cat config/master.key`" -t sutty/sutty .
docker tag sutty/sutty:latest sutty:keep
save: save:
time docker save sutty/sutty:latest | ssh root@$(delegate).sutty.nl docker load time docker save sutty/sutty:latest | ssh root@$(delegate).sutty.nl docker load
date +%F | xargs git tag -f
load: load:
ssh root@sutty.nl sh -c "gunzip -c sutty.latest.gz | docker load" ssh root@sutty.nl sh -c "gunzip -c sutty.latest.gz | docker load"