Browse Source

Enhance Dockerfile / Fix missing extjs file bug

1. Speed-up nokogiri install significantly by turning off lib compilation
2. File at http://my.jasondenney.com/extjs-4.1.1.zip can't be found, but
it has been used for a long time.  Now just including it in the
repository.
3. Added helping documentation in Dockerfile
master
Jonathan Rosenbaum 8 years ago
parent
commit
c9af3d4897
  1. 11
      Dockerfile
  2. 9
      docker-compose.yml
  3. BIN
      extjs-4.1.1.zip

11
Dockerfile

@ -14,10 +14,15 @@ RUN apt-get update && apt-get install -y nodejs --no-install-recommends && \
COPY Gemfile /usr/src/app/
COPY Gemfile.lock /usr/src/app/
RUN bundle install
RUN env NOKOGIRI_USE_SYSTEM_LIBRARIES=true bundle install
COPY install_extjs.rb /usr/src/app/
RUN /usr/src/app/install_extjs.rb
#COPY install_extjs.rb /usr/src/app/
#RUN /usr/src/app/install_extjs.rb
COPY extjs-4.1.1.zip /usr/lib/
RUN unzip -d /usr/lib /usr/lib/extjs-4.1.1.zip; \
mv /usr/lib/ext-4.1.1a /usr/lib/extjs
COPY install_famfamfam.rb /usr/src/app/
RUN /usr/src/app/install_famfamfam.rb

9
docker-compose.yml

@ -1,3 +1,12 @@
# BikeShed
#
# cp config/database.yml.example config/database.yml
#
# docker-compose -f docker-compose.demo.yml build
# docker-compose -f docker-compose.demo.yml up -d db
# docker-compose -f docker-compose.demo.yml run bikeshed rake db:setup
# docker-compose -f docker-compose.demo.yml up -d bikeshed
db:
image: postgres
ports:

BIN
extjs-4.1.1.zip

Binary file not shown.
Loading…
Cancel
Save