-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (48 loc) · 2.04 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
# Copyright 2015 Akamai Technologies, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM python:2.7.10
MAINTAINER Kirsten Hunter ([email protected])
RUN apt-get update
RUN apt-get install -y curl patch gawk g++ gcc make libc6-dev patch libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q libssl-dev python-all wget vim python-pip php5 php5-curl ruby-dev nodejs-dev npm php-pear php5-dev ruby perl5
RUN pip install httpie-edgegrid
ADD ./examples /opt/examples
ADD ./contrib/python /opt/examples/python/contrib
WORKDIR /opt/examples/php
RUN composer.phar install
WORKDIR /opt/examples/ruby
RUN gem install bundler
RUN bundler install
RUN gem install akamai-edgegrid
WORKDIR /opt/examples/node
RUN npm install
RUN npm install -g n; n 5.0.0
WORKDIR /opt
RUN git clone https://github.com/stedolan/jq.git
RUN cd jq
RUN autoreconf -i
RUN ./configure --disable-maintainer-mode
RUN make install
WORKDIR /opt/examples/python
RUN python /opt/examples/python/tools/setup.py install
RUN cpan -i Akamai::Edgegrid LWP::Protocol::https
ADD ./MOTD /opt/MOTD
RUN echo "alias gen_edgerc=/opt/examples/python/gen_edgerc.py" >> /root/.bashrc
RUN echo "alias verify_creds=/opt/examples/python/verify_creds.py" >> /root/.bashrc
RUN echo "cat /opt/MOTD" >> /root/.bashrc
RUN mkdir /root/.httpie
ADD ./config.json /root/.httpie/config.json
RUN echo "PS1='Akamai API Bootcamp >> '" >> /root/.bashrc
ENTRYPOINT ["/bin/bash"]