5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 09:06:22 +00:00

actualizaciones de seguridad

This commit is contained in:
f 2019-10-16 14:56:49 -03:00
parent a689eb0b4a
commit 58c6d28e12
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D
4 changed files with 42 additions and 16 deletions

View file

@ -1 +1 @@
2.5.5 2.5.7

View file

@ -14,6 +14,8 @@ git_source(:github) do |repo_name|
"https://github.com/#{repo_name}.git" "https://github.com/#{repo_name}.git"
end end
ruby '2.5.7'
gem 'dotenv-rails', require: 'dotenv/rails-now' gem 'dotenv-rails', require: 'dotenv/rails-now'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'

View file

@ -487,5 +487,8 @@ DEPENDENCIES
webpacker webpacker
yaml_db! yaml_db!
RUBY VERSION
ruby 2.5.7p206
BUNDLED WITH BUNDLED WITH
2.0.2 2.0.2

View file

@ -1,5 +1,7 @@
# Incluir las variables de entorno # Incluir las variables de entorno
include .env mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
root_dir := $(patsubst %/,%,$(dir $(mkfile_path)))
include $(root_dir)/.env
# Limpiar los archivos de testeo # Limpiar los archivos de testeo
clean: clean:
@ -13,19 +15,38 @@ build:
../gems/: ../gems/:
mkdir -p $@ mkdir -p $@
gem_dir := $(shell readlink -f ../gems)
gems := $(shell bundle show --paths | xargs -I {} sh -c 'test -d {}/ext && basename {}')
gems_musl := $(patsubst %,$(gem_dir)/%-x86_64-linux-musl.gem,$(gems))
$(gem_dir)/%-x86_64-linux-musl.gem:
docker run \
-v $(gem_dir):/srv/gems \
-v `readlink -f ~/.ccache`:/home/builder/.ccache \
-e HTTP_BASIC_USER=$(HTTP_BASIC_USER) \
-e HTTP_BASIC_PASSWORD=$(HTTP_BASIC_PASSWORD) \
-e GEM=`echo $* | sed -re "s/-[^-]+$$//"` \
-e VERSION=`echo $* | sed -re "s/.*-([^-]+)$$/\1/"` \
sutty/gem-compiler:latest
# Compilar todas las gemas binarias y subirlas a gems.sutty.nl para que # Compilar todas las gemas binarias y subirlas a gems.sutty.nl para que
# al crear el contenedor no tengamos que compilarlas cada vez # al crear el contenedor no tengamos que compilarlas cada vez
convert-gems: ../gems/ convert-gems: $(gems_musl)
bundle show --paths \
| xargs -I {} sh -c 'test -d {}/ext && basename {}' \ dirs := $(patsubst %,root/%,data sites deploy public)
| sed -re "s/-([^-]+)$$/\t\1/" \
| while read gem version; do \ $(dirs):
docker run \ mkdir -p $@
-v `readlink -f $<`:/srv/gems \
-v `readlink -f ~/.ccache`:/home/builder/.ccache \ test-container: $(dirs)
-e HTTP_BASIC_USER=$(HTTP_BASIC_USER) \ docker run -v $(PWD)/root/data:/srv/http/data \
-e HTTP_BASIC_PASSWORD=$(HTTP_BASIC_PASSWORD) \ -v $(PWD)/root/sites:/srv/http/_sites \
-e GEM=$$gem \ -v $(PWD)/root/deploy:/srv/http/_deploy \
-e VERSION=$$version \ -v $(PWD)/root/public:/srv/http/_public \
sutty/gem-compiler:latest ; \ -v $(PWD)/config/credentials.yml.enc:/srv/http/config/credentials.yml.enc \
done -e RAILS_MASTER_KEY=`cat config/master.key` \
-it \
--rm \
--name=sutty \
sutty/sutty \
/bin/sh