-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.debian
31 lines (26 loc) · 1.04 KB
/
Dockerfile.debian
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM local-jessie
MAINTAINER Josh Cox <josh 'at' webhosting.coop>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update; \
apt-get -y dist-upgrade; \
apt-get -y install locales curl git sudo build-essential; \
echo 'en_US.UTF-8 UTF-8'>>/etc/locale.gen; \
locale-gen; \
apt-get -y autoremove; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*
# RUN apt-get -y install python-software-properties curl build-essential libxml2-dev libxslt-dev git ruby ruby-dev ca-certificates sudo net-tools vim wget
ENV LANG en_US.UTF-8
# This block became necessary with the new chef 12
# RUN echo 'en_US.ISO-8859-15 ISO-8859-15'>>/etc/locale.gen
# RUN echo 'en_US ISO-8859-1'>>/etc/locale.gen
RUN useradd -md /home/test test ; \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers ; \
gpasswd -a test sudo
COPY bootstrapThalhalla.sh /home/test/bootstrapThalhalla.sh
USER test
WORKDIR /home/test
ENV mybootstrap 12345
#RUN curl https://raw.githubusercontent.com/Thalhalla/thalhalla-playbook/master/bootstrapThalhalla.sh | bash
RUN bash bootstrapThalhalla.sh
CMD ["/bin/bash"]