ECS + ALB でダウンタイムなしでデプロイ
ECS + ALB でダウンタイムなしでデプロイ
Docker
$ vim DockerfileFROM ruby:2.3.1
ENV APP_ROOT /usr/src/testapp
WORKDIR $APP_ROOT
RUN apt-get update && \
apt-get install -y nodejs \
--no-install-recommends && \
rm -rf /var/lib/apt/lists/*
COPY Gemfile $APP_ROOT
COPY Gemfile.lock $APP_ROOT
RUN \
echo 'gem: --no-document' >> ~/.gemrc && \
cp ~/.gemrc /etc/gemrc && \
chmod uog+r /etc/gemrc && \
bundle config --global jobs 4 && \
bundle install && \
rm -rf ~/.gem
COPY . $APP_ROOT
EXPOSE 3000
CMD ["rails", "server", "-b", "0.0.0.0"]ECR
ECS
Rails
RSpec
Docker Compose
PreviousLambdaをローカルでテスト(with Docker)Next`Repository packages-microsoft-com-prod is listed more than once in the configuration`のメッセージの解消方法
Last updated