You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
1 year ago | |
---|---|---|
Dockerfile | 1 year ago | |
README.md | 1 year ago | |
docker-compose.yml | 1 year ago |
README.md
GANCIO for SINDOMINIO
https://gancio.org/install/docker
Dockerfile
El original funciona sobre la imagen de docker de node
FROM node:latest
WORKDIR /
RUN yarn global add gancio
Nosotros debemos funcionar a través de nuestro Debian en nuestro registry, asi que adaptamos un poco el Dockerfile al estilo la guía de instalación de GNU/Debian
https://gancio.org/install/debian
FROM registry.sindominio.net/debian as builder
RUN echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.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 -
# Install Yarn
RUN apt-get update && \
apt-get install -y --no-install-recommends curl yarn
# Install Node Latest
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs
WORKDIR /
RUN yarn global add gancio --prod
Instalación
Seguimos los pasos de Gancio
Ejecutamos:
touch config.json db.sqlite
mkdir user_locale
Y luego a buildear
docker-compose build
docker-compose run --rm gancio gancio setup --docker --db=sqlite
TODO
A ver quien hace un container con PostgreSQL en vez de SQLITE ;)