mstanko@1277: # mstanko@1277: # Build and run LADA-client (minified version) mstanko@1277: # mstanko@1277: # Build with e.g. `docker build --force-rm=true -t koala/lada_client_mini .' mstanko@1277: # Run from the repository root-dir with e.g. mstanko@1277: # `docker run --name lada_client mstanko@1277: # --link lada_wildfly:lada-server mstanko@1277: # -p 8180-8184:80-84 -d koala/lada_client_mini' mstanko@1277: # mstanko@1277: # The linked container may be created from the Dockerfile in the lada-server mstanko@1277: # repository. mstanko@1277: # mstanko@1277: # The LADA-application will be available under http://yourdockerhost:8182 mstanko@1277: # mstanko@1277: # Add `-v $PWD:/var/www/html/' to the run-command if you want to mstanko@1277: # test your local changes (you'll have to run ./install-dependencies.sh again). mstanko@1277: # mstanko@1277: mstanko@1277: FROM debian:jessie mstanko@1277: MAINTAINER mstanko@bfs.de mstanko@1277: mstanko@1277: RUN apt-get update -y && apt-get install -y curl unzip python apache2 ruby openjdk-7-jre mstanko@1277: mstanko@1277: # mstanko@1277: # Install sencha cmd mstanko@1277: # mstanko@1277: RUN curl -O https://cdn.sencha.com/cmd/4.0.5.87/SenchaCmd-4.0.5.87-linux-x64.run.zip && unzip SenchaCmd-4.0.5.87-linux-x64.run.zip && chmod +x ./SenchaCmd-4.0.5.87-linux-x64.run && ./SenchaCmd-4.0.5.87-linux-x64.run --mode unattended mstanko@1277: ENV PATH=~/bin/Sencha/Cmd/4.0.5.87:$PATH mstanko@1277: ENV SENCHA_CMD_3_0_0="~/bin/Sencha/Cmd/4.0.5.87" mstanko@1277: mstanko@1277: ADD . /tmp/lada-client mstanko@1277: WORKDIR /tmp/lada-client mstanko@1277: mstanko@1277: # mstanko@1277: # Install dependencies mstanko@1277: # mstanko@1277: RUN ./install-dependencies.sh mstanko@1277: mstanko@1277: # mstanko@1277: # compile and minify application mstanko@1277: # mstanko@1422: ENV VERSION=2.6.1 mstanko@1277: RUN ./build.sh mstanko@1277: RUN cd /var/www/html && cp -r /tmp/lada-client/lada-client-$VERSION/* . mstanko@1277: mstanko@1277: # mstanko@1277: # httpd setup mstanko@1277: # mstanko@1277: RUN a2enmod proxy mstanko@1277: RUN a2enmod proxy_http mstanko@1277: RUN a2enmod headers mstanko@1277: RUN ln -sf $PWD/custom-vhosts.conf /etc/apache2/conf-available/lada.conf mstanko@1277: RUN a2enconf lada mstanko@1277: mstanko@1277: EXPOSE 80 81 82 83 84 mstanko@1277: mstanko@1277: CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]