Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

切换 ubuntu 至 alpinelinux. #29

Open
mimosa opened this issue Aug 8, 2017 · 0 comments
Open

切换 ubuntu 至 alpinelinux. #29

mimosa opened this issue Aug 8, 2017 · 0 comments

Comments

@mimosa
Copy link
Contributor

mimosa commented Aug 8, 2017

  • 测试了 ruby-buildhomelandbundle install --deployment 都没问题。
  • 后续进度会持续更新。
# Dockerfile 需要加环境变量
ENV CONFIGURE_OPTS="ac_cv_func_isnan=yes ac_cv_func_isinf=yes --disable-install-doc" \
    NOKOGIRI_USE_SYSTEM_LIBRARIES=1
# gem install bundler 后需要设:
bundle config --global silence_root_warning 1
bundle config --global build.nokogiri --use-system-libraries
# https://raw.githubusercontent.com/huacnlee/init.d/4c3e898ddee98a2e66db2f2769ac34d8fa8d898d/install_packages

# Basic Commands
apk add --update --no-cache --virtual .tools \
    bash \
    ca-certificates \
    curl \
    git \
    htop \
    tar \
    tzdata \
    openssh-client \
    libressl \
    vim \
&&  rm -rf /var/cache/apk/*

# Build Requirements
apk add --update --no-cache --virtual .build-deps \
    build-base \
    libc-dev \
    libevent-dev \
    libgcc \
    libressl-dev \
    libstdc++ \
    linux-headers \
    pcre-dev \
    readline-dev \
    yaml-dev \
    zlib-dev \
&&  rm -rf /var/cache/apk/*

# Rails Requirements
apk add --update --no-cache --virtual .ruby-deps \
     libffi-dev \
     libgcrypt-dev \
     libxslt-dev \
     libxml2-dev \
&&   rm -rf /var/cache/apk/*

# GEM Requirements
apk add --update-cache --no-cache --virtual .gems-deps  \
     hiredis-dev \
     imagemagick \
     imagemagick-dev \
     postgresql-dev \
     curl-dev \
&&   rm -rf /var/cache/apk/*

# Node.js
apk add --update --no-cache --virtual .nodejs \
     nodejs-current \
     nodejs-current-npm \
     libsass \
     sassc \
&&   rm -rf /var/cache/apk/*

# nginx
# https://raw.githubusercontent.com/huacnlee/init.d/master/install_nginx
apk add --update --no-cache --virtual .nginx \
     nginx \
     nginx-mod-http-image-filter \
     nginx-mod-http-geoip \
&&   rm -rf /var/cache/apk/*

# OK: 412 MiB in 126 packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant