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:
parent
46b1094a24
commit
a4ce118d9c
2 changed files with 32 additions and 10 deletions
16
haini.sh
16
haini.sh
|
@ -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
|
||||||
echo "Instalando paquetes..."
|
if test "$ENTORNO/etc/apk/world" -ot "$DIR/packages"; then
|
||||||
correr "apk add --no-cache \
|
echo "Instalando paquetes..."
|
||||||
libxslt libxml2 libssh2 postgresql-libs sqlite-libs \
|
packages="$(cat "$DIR/packages" | tr "\n" " ")"
|
||||||
tzdata bash ffmpeg vips file git make \
|
correr "apk add --no-cache $packages"
|
||||||
ruby ruby-bundler ruby-json ruby-bigdecimal ruby-irb ruby-rake \
|
fi
|
||||||
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
26
packages
Normal 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
|
Loading…
Reference in a new issue