🔨 Integra scripts y código para docker
This commit is contained in:
parent
4cea38117d
commit
3d487e4279
7 changed files with 281 additions and 0 deletions
59
Dockerfile
Normal file
59
Dockerfile
Normal file
|
@ -0,0 +1,59 @@
|
|||
# Usar la imagen oficial de Redmine como base
|
||||
FROM redmine:4.1.7
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
shared-mime-info \
|
||||
git \
|
||||
build-essential \
|
||||
mariadb-client \
|
||||
libxml2-dev \
|
||||
libxslt-dev \
|
||||
zlib1g-dev \
|
||||
libpq-dev \
|
||||
libmariadb-dev-compat \
|
||||
libmariadb-dev \
|
||||
libssl-dev \
|
||||
libreadline-dev \
|
||||
libffi-dev \
|
||||
imagemagick \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Definir el directorio de trabajo
|
||||
WORKDIR /usr/src/redmine
|
||||
|
||||
# Copiar archivos personalizados dentro del contenedor
|
||||
COPY app/controllers/wiki_controller.rb /usr/src/redmine/app/controllers/wiki_controller.rb
|
||||
COPY app/helpers/search_helper.rb /usr/src/redmine/app/helpers/search_helper.rb
|
||||
COPY app/views/account/login.html.erb /usr/src/redmine/app/views/account/login.html.erb
|
||||
COPY app/views/issues/tabs/_changesets.html.erb /usr/src/redmine/app/views/issues/tabs/_changesets.html.erb
|
||||
COPY app/views/layouts/base.html.erb /usr/src/redmine/app/views/layouts/base.html.erb
|
||||
COPY app/views/repositories/_changeset.html.erb /usr/src/redmine/app/views/repositories/_changeset.html.erb
|
||||
COPY app/views/wiki/show.html.erb /usr/src/redmine/app/views/wiki/show.html.erb
|
||||
|
||||
COPY config/database.yml /usr/src/redmine/config/database.yml
|
||||
COPY config/secrets.yml /usr/src/redmine/config/secrets.yml
|
||||
COPY config/locales/en.yml /usr/src/redmine/config/locales/en.yml
|
||||
COPY config/locales/es.yml /usr/src/redmine/config/locales/es.yml
|
||||
|
||||
COPY plugins /usr/src/redmine/plugins
|
||||
|
||||
COPY public/themes/circlepro /usr/src/redmine/public/themes/circlepro
|
||||
|
||||
# Clonar el plugin "rich"
|
||||
RUN git clone https://github.com/a-ono/rich.git /usr/src/redmine/vendor/rich
|
||||
|
||||
# Establecer permisos adecuados (opcional)
|
||||
RUN chown -R redmine:redmine /usr/src/redmine
|
||||
|
||||
# Instalar dependencias de Ruby
|
||||
RUN bundle install --without development test --path vendor/bundle
|
||||
|
||||
# Copiar el backup de la base de datos
|
||||
COPY suitepro-backup.sql /suitepro-backup.sql
|
||||
|
||||
# Copiar el script de inicialización
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
# Configurar el punto de entrada
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
Loading…
Add table
Add a link
Reference in a new issue