jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 1 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 2 | # you may not use this file except in compliance with the License. |
| 3 | # You may obtain a copy of the License at |
| 4 | # |
| 5 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | # |
| 7 | # Unless required by applicable law or agreed to in writing, software |
| 8 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 10 | # See the License for the specific language governing permissions and |
| 11 | # limitations under the License. |
| 12 | |
| 13 | # Apache Thrift Docker build environment for Centos |
| 14 | # |
| 15 | # Known missing client libraries: |
| 16 | # - D |
| 17 | # - Haxe |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 18 | # - Lua |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 19 | # |
| 20 | |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 21 | FROM centos:7 |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 22 | MAINTAINER Apache Thrift <dev@thrift.apache.org> |
| 23 | |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 24 | RUN yum install -y epel-release |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 25 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 26 | # General dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 27 | RUN yum install -y \ |
| 28 | tar \ |
| 29 | m4 \ |
| 30 | perl \ |
| 31 | clang \ |
| 32 | gcc \ |
| 33 | gcc-c++ \ |
| 34 | git \ |
| 35 | libtool \ |
| 36 | autoconf \ |
| 37 | make \ |
| 38 | bison \ |
| 39 | bison-devel \ |
| 40 | flex |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 41 | |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 42 | # C++ dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 43 | RUN yum install -y \ |
| 44 | boost-devel-static \ |
| 45 | zlib-devel \ |
| 46 | openssl-devel \ |
| 47 | libevent-devel |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 48 | |
| 49 | # Java Dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 50 | RUN yum install -y \ |
| 51 | ant \ |
| 52 | junit \ |
| 53 | ant-junit \ |
| 54 | java-1.7.0-openjdk-devel |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 55 | |
| 56 | # Python Dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 57 | RUN yum install -y \ |
| 58 | python-devel \ |
Nobuaki Sukegawa | bf9fa90 | 2016-09-04 18:49:21 +0900 | [diff] [blame] | 59 | python-pip \ |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 60 | python-setuptools \ |
Nobuaki Sukegawa | bf9fa90 | 2016-09-04 18:49:21 +0900 | [diff] [blame] | 61 | python-six \ |
| 62 | python-twisted-web && \ |
| 63 | pip install -U backports.ssl_match_hostname ipaddress tornado |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 64 | |
| 65 | # Ruby Dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 66 | RUN yum install -y \ |
| 67 | ruby \ |
| 68 | ruby-devel \ |
| 69 | rubygems && \ |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 70 | gem install bundler rake |
| 71 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 72 | # Perl Dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 73 | RUN yum install -y \ |
| 74 | perl-Bit-Vector \ |
| 75 | perl-Class-Accessor \ |
| 76 | perl-ExtUtils-MakeMaker \ |
| 77 | perl-Test-Simple \ |
| 78 | perl-IO-Socket-SSL \ |
| 79 | perl-Net-SSLeay \ |
| 80 | perl-Crypt-SSLeay |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 81 | |
| 82 | # PHP Dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 83 | RUN yum install -y \ |
| 84 | php \ |
| 85 | php-devel \ |
| 86 | php-pear \ |
| 87 | re2c \ |
| 88 | php-phpunit-PHPUnit \ |
| 89 | bzip2 |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 90 | |
| 91 | # GLibC Dependencies |
| 92 | RUN yum install -y glib2-devel |
| 93 | |
| 94 | # Erlang Dependencies |
jfarrell | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 95 | RUN curl -sSL http://packages.erlang-solutions.com/rpm/centos/erlang_solutions.repo -o /etc/yum.repos.d/erlang_solutions.repo && \ |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 96 | yum install -y \ |
| 97 | erlang-kernel \ |
| 98 | erlang-erts \ |
| 99 | erlang-stdlib \ |
| 100 | erlang-eunit \ |
| 101 | erlang-rebar \ |
| 102 | erlang-tools |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 103 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 104 | # Go Dependencies |
Nobuaki Sukegawa | a8c74d5 | 2015-11-10 16:37:52 +0900 | [diff] [blame] | 105 | RUN curl -sSL https://storage.googleapis.com/golang/go1.4.3.linux-amd64.tar.gz | tar -C /usr/local/ -xz |
| 106 | ENV PATH /usr/local/go/bin:$PATH |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 107 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 108 | # Haskell Dependencies |
Nobuaki Sukegawa | a8c74d5 | 2015-11-10 16:37:52 +0900 | [diff] [blame] | 109 | RUN yum -y install haskell-platform |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 110 | |
jfarrell | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 111 | # Node.js Dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 112 | RUN yum install -y \ |
| 113 | nodejs \ |
| 114 | nodejs-devel \ |
| 115 | npm |
jfarrell | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 116 | |
| 117 | # C# Dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 118 | RUN yum install -y \ |
| 119 | mono-core \ |
| 120 | mono-devel \ |
| 121 | mono-web-devel \ |
Allen George | bc1344d | 2017-04-28 10:22:03 -0400 | [diff] [blame^] | 122 | mono-extras |
| 123 | |
| 124 | # Rust |
| 125 | RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.17.0 |
| 126 | ENV PATH /root/.cargo/bin:$PATH |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 127 | |
| 128 | # MinGW Dependencies |
| 129 | RUN yum install -y \ |
| 130 | mingw32-binutils \ |
| 131 | mingw32-crt \ |
| 132 | mingw32-nsis |
| 133 | |
| 134 | # CMake |
| 135 | RUN curl -sSL https://cmake.org/files/v3.4/cmake-3.4.0.tar.gz | tar -xz && \ |
Nobuaki Sukegawa | 7be78ea | 2016-05-15 00:25:04 +0900 | [diff] [blame] | 136 | cd cmake-3.4.0 && ./bootstrap && make -j4 && make install && \ |
| 137 | cd .. && rm -rf cmake-3.4.0 |
jfarrell | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 138 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 139 | # Clean up |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 140 | RUN rm -rf /tmp/* && \ |
| 141 | yum clean all |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 142 | |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 143 | ENV THRIFT_ROOT /thrift |
| 144 | RUN mkdir -p $THRIFT_ROOT/src |
Nobuaki Sukegawa | 93fb7ea | 2016-09-04 17:00:11 +0900 | [diff] [blame] | 145 | COPY Dockerfile $THRIFT_ROOT/ |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 146 | WORKDIR $THRIFT_ROOT/src |