Fixing locale stuff in ubuntu 14.04 Dockerfile

pull/4420/head
James Cammarata 2016-03-03 22:29:21 -05:00
parent f56af2ec3f
commit 069e597aaa
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@ RUN apt-get clean; apt-get update -y;
RUN apt-get install -y \ RUN apt-get install -y \
debianutils \ debianutils \
git \ git \
locales \
make \ make \
mercurial \ mercurial \
ruby \ ruby \
@ -24,5 +25,6 @@ RUN apt-get install -y \
RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
RUN mkdir /etc/ansible/ RUN mkdir /etc/ansible/
RUN echo -e '[local]\nlocalhost' > /etc/ansible/hosts RUN echo -e '[local]\nlocalhost' > /etc/ansible/hosts
RUN locale-gen en_US.UTF-8
ENV container=docker ENV container=docker
CMD ["/sbin/init"] CMD ["/sbin/init"]

View File

@ -10,6 +10,6 @@ if [ "${TARGET}" = "sanity" ]; then
else else
docker build -t ansible_test/${TARGET} test/utils/docker/${TARGET} docker build -t ansible_test/${TARGET} test/utils/docker/${TARGET}
docker run -d --volume="${PWD}:/root/ansible" ${TARGET_OPTIONS} ansible_test/${TARGET} > /tmp/cid_${TARGET} docker run -d --volume="${PWD}:/root/ansible" ${TARGET_OPTIONS} ansible_test/${TARGET} > /tmp/cid_${TARGET}
docker exec -ti $(cat /tmp/cid_${TARGET}) /bin/sh -c 'cd /root/ansible; . hacking/env-setup; make tests && (cd test/integration; make)' docker exec -ti $(cat /tmp/cid_${TARGET}) /bin/sh -c 'cd /root/ansible; . hacking/env-setup; (cd test/integration; LC_ALL=en_US.utf-8 make)'
docker kill $(cat /tmp/cid_${TARGET}) docker kill $(cat /tmp/cid_${TARGET})
fi fi