This repository has been archived by the owner on Oct 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dockerfile
131 lines (82 loc) · 2.69 KB
/
Dockerfile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# Dockie Development Environment
FROM ubuntu:15.10
MAINTAINER Rob Loach <[email protected]>
# Update
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get upgrade -y
# Supervisor
RUN apt-get install -y supervisor && \
mkdir -p /var/log/supervisor && \
supervisord --version
ADD configs/supervisor/supervisor.conf /etc/supervisor/conf.d/supervisor.conf
# Base Dependencies
RUN apt-get install -y software-properties-common wget mysql-client unzip postfix \
git mercurial subversion iputils-ping && \
git --version && \
hg --version && \
svn --version
# Zsh
RUN apt-get install -y zsh && \
git clone git://github.com/robbyrussell/oh-my-zsh.git /root/.oh-my-zsh && \
chsh --shell $(which zsh) && \
zsh --version
ADD configs/oh-my-zsh/zshrc /root/.zshrc
# PHP
RUN apt-get install -y php5-apcu php-pear php5-cgi php5-json php5-cli php5-curl curl \
php5-mcrypt php5-xdebug mcrypt libmcrypt-dev php5-mysql php5-gd php5-sqlite \
sqlite imagemagick php5-imagick && \
php5enmod mcrypt pdo pdo_sqlite sqlite3 && \
php --version
ADD configs/php/php-cli.ini /etc/php5/cli/conf.d/dockie-dockie.ini
# Composer
ENV COMPOSER_HOME /root/.composer
ENV PATH $COMPOSER_HOME/vendor/bin:$PATH
RUN curl -sS https://getcomposer.org/installer | php -- --filename=composer \
--install-dir=/usr/bin --version=1.0.0-alpha10
RUN composer --version
# PHPUnit
RUN composer global require phpunit/phpunit:5.* && \
phpunit --version
# Drush
RUN composer global require drush/drush:8.* && \
drush --version
# Python
RUN apt-get install -y python python3 python-pil pylint && \
python --version && \
python3 --version
# Node.js
RUN apt-get install -y build-essential && \
curl -sL https://deb.nodesource.com/setup_4.x | sh -
RUN apt-get update --fix-missing && apt-get install -y nodejs && \
nodejs --version && \
npm --version && \
npm install -g coffee-script bower grunt-cli gulp component yo eslint
# Ruby
RUN apt-get install -y ruby ruby-dev ri && \
ruby --version && \
echo "Gem version:" && gem --version
RUN gem install rake bundler sass && \
bundle --version && rake --version && sass --version && \
gem install compass && \
compass --version
# Go
RUN apt-get install -y golang && \
go version
# Rust
RUN mkdir -p /tmp/rust && cd /tmp/rust && \
wget https://static.rust-lang.org/dist/rust-1.3.0-x86_64-unknown-linux-gnu.tar.gz
RUN cd /tmp/rust && tar -zxvf * && cd r* && \
./install.sh && rm -rf /tmp/rust
RUN rustc --version
RUN cargo --version
# Version Check
COPY configs/dockie/dockie-version /dockie-version
RUN chmod +x /dockie-version
# Clean up
RUN apt-get clean && apt-get autoremove
RUN /dockie-version
# Start
VOLUME /app
EXPOSE 22
CMD ["supervisord"]