Skip to content

Instantly share code, notes, and snippets.

@akiko-pusu
Created September 14, 2017 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akiko-pusu/0433cb37f21e36c45dbe40aab2b7ab95 to your computer and use it in GitHub Desktop.
Save akiko-pusu/0433cb37f21e36c45dbe40aab2b7ab95 to your computer and use it in GitHub Desktop.
Dockerfile
version: '2'
services:
redmine:
build:
context: .
volumes:
- ../.:/tmp/redmine-centos-ansible
ports:
- "8080:80"
stdin_open: true
tty: true
privileged: true
FROM centos:7
MAINTAINER Tatsuya Saito <twopackas@gmail.com>
RUN yum -y update && \
yum install -y epel-release && \
yum-config-manager --enable epel
RUN rm -f /etc/rpm/macros.image-language-conf && \
sed -i '/^override_install_langs=/d' /etc/yum.conf && \
yum -y reinstall glibc-common && \
yum clean all
ENV LANG="ja_JP.UTF-8" \
LANGUAGE="ja_JP:ja" \
LC_ALL="ja_JP.UTF-8"
RUN yum install -y which && \
yum install -y selinux-policy && \
yum install -y firewalld && \
yum install -y ansible git
RUN mkdir /tmp/redmine-centos-ansible
#WORKDIR /tmp
#RUN git clone -b 3.4-unofficialcooking https://github.com/y503unavailable/redmine-centos-ansible.git
WORKDIR /tmp/redmine-centos-ansible
EXPOSE 80
#CMD ansible-playbook -i hosts site.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment