blob: 755ebd2428b0ef17190b732f6f46255ecac58b5b [file] [log] [blame]
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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 centos
MAINTAINER Gang Wang (garyw@apache.org)
#set up your proxy below, refer to readme in the Docker folder
# ENV proxy_host "172.17.42.1"
# ENV proxy_port "8668"
ENV proxy_host "172.17.42.1"
ENV proxy_port "8668"
ENV http_proxy "http://${proxy_host}:${proxy_port}"
ENV https_proxy ${http_proxy}
ENV HTTP_PROXY ${http_proxy}
ENV HTTPS_PROXY ${http_proxy}
ENV proxy ${http_proxy}
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
RUN yum -y update && yum -y groupinstall 'Development Tools' && \
yum -y install ruby ruby-devel rubygems zlib-devel && yum clean all
RUN gem install jekyll bundler nokogiri
RUN mkdir -p /ws && cd /ws && git clone https://git-wip-us.apache.org/repos/asf/incubator-mnemonic-site.git && \
cd incubator-mnemonic-site && bundle install
ENV MNEMONIC_SITE_HOME /ws/incubator-mnemonic-site
WORKDIR /ws
CMD ["bash"]