-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker support for running awestruct.
How to use: install docker, run: $ cd jbosstools-website $ docker build -t jbosstools-website . This will run the full docker build (takes a while the first time). Now you can just run $ docker run -it --rm -p 4242:4242 -v `pwd`:/jbosstools-website -t jbosstools-website And it will run awestruct in isolation but on top of your changes in jbosstools-website. Content will be available at http://${DOCKER_HOST}:4242
- Loading branch information
1 parent
84750c7
commit c9b9224
Showing
5 changed files
with
72 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# exclude everything from Docker except gemfile's that specify dependencies needed. | ||
.git | ||
_*/* | ||
*.haml | ||
*.adoc | ||
*.properties | ||
Font | ||
Guardfile | ||
blog | ||
cache | ||
cat | ||
community | ||
documentation | ||
downloads | ||
events | ||
features | ||
fonts | ||
getinvolved | ||
images | ||
javascripts | ||
stylesheets | ||
usage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ruby-1.9.3-p484 | ||
ruby-1.9.3-p547 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
FROM centos:centos7 | ||
MAINTAINER Max Rydahl Andersen <max@jboss.org> | ||
|
||
# install deps required by our build | ||
RUN yum install -y epel-release which tar bzip2 gcc ruby-devel libxml2 libxml2-devel libxslt libxslt-devel libcurl-devel git | ||
|
||
# when running with above nodejs was not available | ||
RUN yum install -y nodejs | ||
|
||
# Add RVM keys | ||
RUN gpg2 --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 | ||
|
||
# Install RVM | ||
RUN curl -L get.rvm.io | bash -s stable | ||
RUN /bin/bash -l -c "rvm requirements && rvm autolibs enable" | ||
|
||
# Install Ruby | ||
ADD ./.ruby-version /tmp/ | ||
ADD ./.ruby-gemset /tmp/ | ||
RUN /bin/bash -l -c "rvm install `cat /tmp/.ruby-version`" | ||
|
||
## Build setup | ||
# Build the current gemset (user will only need to build the difference | ||
ADD ./Gemfile /tmp/ | ||
ADD ./Gemfile.lock /tmp/ | ||
ADD ./Rakefile /tmp/ | ||
WORKDIR /tmp/ | ||
RUN /bin/bash -l -c "bundle install" | ||
|
||
# Enable GPG support | ||
VOLUME /gnupg | ||
ENV GNUPGHOME /gnupg | ||
RUN touch /tmp/gpg-agent.conf | ||
RUN echo 'export GPG_TTY=$(tty); eval $(gpg-agent --daemon --no-use-standard-socket --options /tmp/gpg-agent.conf );' >> ~/.bash_profile | ||
|
||
# Add the volume for the actual project | ||
VOLUME /jbosstools-website | ||
WORKDIR /jbosstools-website | ||
|
||
# Prevent encoding errors | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US.UTF-8 | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
EXPOSE 4242 | ||
|
||
ENTRYPOINT [ "/bin/bash", "-l", "-c" ] | ||
CMD [ "rake", "setup", "preview" ] | ||
|
This file was deleted.
Oops, something went wrong.