|
|
|
@ -21,41 +21,67 @@ https://gancio.org/install/debian
|
|
|
|
|
``` |
|
|
|
|
FROM registry.sindominio.net/debian as builder |
|
|
|
|
|
|
|
|
|
RUN apt-get update && \ |
|
|
|
|
apt-get install -y --no-install-recommends curl gnupg2 ca-certificates |
|
|
|
|
|
|
|
|
|
RUN echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list && \ |
|
|
|
|
echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list |
|
|
|
|
|
|
|
|
|
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list |
|
|
|
|
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - |
|
|
|
|
#RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarn-archive-keyring.gpg |
|
|
|
|
|
|
|
|
|
# Install Yarn |
|
|
|
|
RUN apt-get update && \ |
|
|
|
|
apt-get install -y --no-install-recommends curl yarn |
|
|
|
|
apt-get install -y --no-install-recommends yarn |
|
|
|
|
|
|
|
|
|
# Install Node Latest |
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - |
|
|
|
|
apt-get install -y nodejs |
|
|
|
|
RUN apt-get install -y nodejs |
|
|
|
|
|
|
|
|
|
WORKDIR / |
|
|
|
|
RUN yarn global add gancio --prod |
|
|
|
|
RUN yarn global add gancio |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
## Instalación |
|
|
|
|
|
|
|
|
|
Seguimos los pasos de Gancio |
|
|
|
|
Seguimos los pasos de Gancio. |
|
|
|
|
|
|
|
|
|
Ejecutamos: |
|
|
|
|
Primero, descargamos este repo: |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
git clone https://git.sindominio.net/siroco/docker-gancio |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
Accedemos a la carpeta creada: |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
cd docker-gancio |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
Ejecutamos los siguiente comandos para crear los ficheros básicos para la instalación |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
touch config.json db.sqlite |
|
|
|
|
mkdir user_locale |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
Y luego a buildear |
|
|
|
|
Y luego a buildear y configurar |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
docker-compose build |
|
|
|
|
docker-compose run --rm gancio gancio setup --docker --db=sqlite |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
Supongo, que tras esto, podemos hacer un |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
docker-compose up -d |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
Y a disfrutar de tu servicio de Gancio |
|
|
|
|
|
|
|
|
|
Ahora te toca configurar el ProxyReverse ;) |
|
|
|
|
|
|
|
|
|
## TODO |
|
|
|
|
|
|
|
|
|
A ver quien hace un container con PostgreSQL en vez de SQLITE ;) |
|
|
|
|