Sha256: 8e84c178f98a8e43695f61d5e7789007cb52893e4b5712ca4d70439f476af463

Contents?: true

Size: 1.42 KB

Versions: 15

Compression:

Stored size: 1.42 KB

Contents

FROM '%%base_image%%'
USER root
RUN apt-get update -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y sudo tzdata git apt-utils
RUN ln -fs /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
RUN dpkg-reconfigure --frontend noninteractive tzdata

# Redmine / Código-fonte
RUN echo '%%redmine_source_git_id%%' '%%redmine_user_home%%/redmine_source_git_id'
ADD '%%redmine_source_path%%' '%%redmine_path%%/'
RUN chown -R '%%redmine_user%%:%%redmine_user%%' '%%redmine_user_home%%'

# Redmine / Configuração de instalação
USER '%%redmine_user%%'
WORKDIR '%%redmine_user_home%%'
COPY install_settings.sh "%%redmine_path%%/config/install.sh"

# Redmine / Instalação
USER '%%redmine_user%%'
WORKDIR '%%redmine_user_home%%'
RUN SKIP_DATABASE='%%skip_database%%' \
  '%%redmine_path%%/plugins/redmine_installer/installer/run.sh' '%%installer_target_task%%'

# Apache / Configuração do virtualhost
COPY apache_http_virtualhost.conf /etc/apache2/sites-available/redmine.conf
COPY apache_https_virtualhost.conf /etc/apache2/sites-available/redmine_ssl.conf
USER root
RUN a2ensite redmine
RUN a2ensite redmine_ssl
RUN a2dissite 000-default
RUN a2enmod ssl
RUN service apache2 restart

# Portas
EXPOSE 80/tcp 443/tcp 22/tcp

# Execução
COPY start.sh '%%start_path%%'
RUN /bin/chmod +x '%%start_path%%'
RUN /bin/chown '%%redmine_user%%:%%redmine_user%%' '%%start_path%%'
USER '%%redmine_user%%'
WORKDIR '%%redmine_user_home%%'
CMD '%%start_path%%'

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
avm-tools-0.116.1 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
avm-eac_redmine_base0-0.5.0 template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
avm-tools-0.116.0 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
avm-eac_redmine_base0-0.4.1 template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
avm-tools-0.115.0 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
avm-eac_redmine_base0-0.4.0 template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
avm-tools-0.114.2 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
avm-tools-0.114.1 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
avm-tools-0.114.0 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
avm-tools-0.113.6 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
avm-tools-0.113.5 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
avm-tools-0.113.4 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
avm-eac_redmine_base0-0.3.1 template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
avm-tools-0.113.3 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template
avm-tools-0.113.2 sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile.template