instalar las dependencias solo si cambiaron

separandolas a un archivo distinto.

Squashed commit of the following:

commit 3a01a3f60c6eb34c2036c116973e6f604c250fcc
Author: f <f@sutty.nl>
Date:   Sat May 29 14:34:40 2021 -0300

    orden alfabético

commit e9b9715ef1b7bf37dface88f370c9de4c58e66f4
Author: f <f@sutty.nl>
Date:   Sat May 29 14:33:27 2021 -0300

    instalar las dependencias solo si cambiaron

commit c2917febe92f47df8bd8f7b9890593baef237d28
Author: f <f@sutty.nl>
Date:   Sat May 29 14:33:08 2021 -0300

    listar las dependencias en un archivo aparte
This commit is contained in:
void 2021-05-29 21:47:17 +00:00
parent 46b1094a24
commit a4ce118d9c
2 changed files with 32 additions and 10 deletions

View file

@ -76,16 +76,12 @@ crear_entorno() {
# Descargar y extraer Alpine # Descargar y extraer Alpine
test -f "$ENTORNO/etc/os-release" || ${download} "${ALPINE_URL}" | tar xz --directory "$ENTORNO" test -f "$ENTORNO/etc/os-release" || ${download} "${ALPINE_URL}" | tar xz --directory "$ENTORNO"
# Instalar las dependencias # Instalar las dependencias solo si cambiaron
if test "$ENTORNO/etc/apk/world" -ot "$DIR/packages"; then
echo "Instalando paquetes..." echo "Instalando paquetes..."
correr "apk add --no-cache \ packages="$(cat "$DIR/packages" | tr "\n" " ")"
libxslt libxml2 libssh2 postgresql-libs sqlite-libs \ correr "apk add --no-cache $packages"
tzdata bash ffmpeg vips file git make \ fi
ruby ruby-bundler ruby-json ruby-bigdecimal ruby-irb ruby-rake \
nodejs yarn \
gnutls-utils nginx \
less \
py3-cffi py3-brotli py3-fonttools"
# Habilitar la instalación de gemas binarias # Habilitar la instalación de gemas binarias
sed -re "s/#(@platforms = )/\1/" -i "$ENTORNO/usr/lib/ruby/2.7.0/rubygems.rb" sed -re "s/#(@platforms = )/\1/" -i "$ENTORNO/usr/lib/ruby/2.7.0/rubygems.rb"

26
packages Normal file
View file

@ -0,0 +1,26 @@
bash
ffmpeg
file
git
gnutls-utils
less
libssh2
libxml2
libxslt
make
nginx
nodejs
postgresql-libs
py3-brotli
py3-cffi
py3-fonttools
ruby
ruby-bigdecimal
ruby-bundler
ruby-irb
ruby-json
ruby-rake
sqlite-libs
tzdata
vips
yarn