Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1638 from OpenLiberty/development
Make latestVersion.js update without restart
- Loading branch information
Showing
17 changed files
with
566 additions
and
193 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,2 @@ | ||
target/ | ||
!target/*.war |
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,92 +1,7 @@ | ||
# Created by laura_cowen@uk.ibm.com, Twitter/GitHub/Docker username: @lauracowen | ||
# 2017-11-02 | ||
# Updated Oct. 2018 by Kin Ueng | ||
# Installing and running Jekyll based on: based on https://blog.codeship.com/a-beginners-guide-to-the-dockerfile/ | ||
# NodeJS and NPM sections based on: https://gist.github.com/remarkablemark/aacf14c29b3f01d6900d13137b21db3a | ||
FROM open-liberty:kernel | ||
|
||
# The purpose of this dockerfile is to run your Jekyll website so you don't have to install Jekyll | ||
# and all of Jekyll's pre-requisite software. | ||
# You can view the site in a browser on your local (host) machine (at http://0.0.0.0:4000). | ||
# You can then modify website source files on your local (host) machine. | ||
# When you save a changed file, the changes are automatically rebuilt by Jekyll in the container and you can almost immediately | ||
# see the changes when you refresh your browser. | ||
|
||
# To build this image, from the directory that contains this Dockerfile: | ||
# docker build --tag lauracowen/jekyll . | ||
# | ||
# To run a container: | ||
# docker run --name jekyll -it -d -p 4000:4000 -v <root directory of Jekyll site on host machine>:/home/jekyll lauracowen/jekyll | ||
|
||
# Use the official Ruby image as a parent image | ||
FROM ruby:latest | ||
|
||
# INSTALL NODEJS AND NPM (it's a dependency of something in the Jekyll setup) | ||
|
||
# replace shell with bash so we can source files | ||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | ||
|
||
# update the repository sources list | ||
# and install dependencies | ||
RUN apt-get update \ | ||
&& apt-get install -y curl \ | ||
&& apt-get -y autoclean | ||
|
||
# nvm environment variables | ||
ENV NVM_DIR /usr/local/nvm | ||
ENV NODE_VERSION 9.0.0 | ||
|
||
# install nvm | ||
# https://github.com/creationix/nvm#install-script | ||
RUN curl --silent -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash | ||
|
||
# install node and npm | ||
RUN source $NVM_DIR/nvm.sh \ | ||
&& nvm install $NODE_VERSION \ | ||
&& nvm alias default $NODE_VERSION \ | ||
&& nvm use default | ||
|
||
# add node and npm to path so the commands are available | ||
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules | ||
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH | ||
|
||
# confirm installation | ||
RUN node -v | ||
RUN npm -v | ||
|
||
# INSTALLING AND RUNNING JEKYLL | ||
|
||
# create a user and group for Jekyll, set appropriate permissions, install the Jekyll gem | ||
RUN mkdir -p /home/jekyll \ | ||
&& groupadd -rg 1000 jekyll \ | ||
&& useradd -rg jekyll -u 1000 -d /home/jekyll jekyll \ | ||
&& chown jekyll:jekyll /home/jekyll | ||
|
||
# Create a mount point where Docker can access the source files on my local system (host system) | ||
VOLUME /home/jekyll | ||
|
||
# Set the working directory | ||
WORKDIR /home/jekyll | ||
|
||
# openliberty.io gem dependencies | ||
COPY ./scripts /home/jekyll/scripts | ||
RUN scripts/build_gem_dependencies.sh | ||
|
||
# openliberty.io custom gems | ||
COPY ./gems /home/jekyll/gems | ||
RUN pushd gems/ol-asciidoc \ | ||
&& gem build ol-asciidoc.gemspec \ | ||
&& gem install ol-asciidoc-0.0.1.gem \ | ||
&& popd | ||
|
||
RUN pushd gems/ol-target-blank \ | ||
&& gem build ol-target-blank.gemspec \ | ||
&& gem install ol-target-blank-0.0.1.gem \ | ||
&& popd | ||
|
||
# Serve the site | ||
ENTRYPOINT ["bash", "./scripts/jekyll_serve_dev.sh"] | ||
|
||
# Make port 4000 available to the world outside this container | ||
EXPOSE 4000 | ||
ENV SEC_TLS_TRUSTDEFAULTCERTS true | ||
|
||
COPY src/main/wlp/server.xml /config/server.xml | ||
|
||
COPY target/openliberty.war /config/dropins/openliberty.war |
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,92 @@ | ||
# Created by laura_cowen@uk.ibm.com, Twitter/GitHub/Docker username: @lauracowen | ||
# 2017-11-02 | ||
# Updated Oct. 2018 by Kin Ueng | ||
# Installing and running Jekyll based on: based on https://blog.codeship.com/a-beginners-guide-to-the-dockerfile/ | ||
# NodeJS and NPM sections based on: https://gist.github.com/remarkablemark/aacf14c29b3f01d6900d13137b21db3a | ||
|
||
# The purpose of this dockerfile is to run your Jekyll website so you don't have to install Jekyll | ||
# and all of Jekyll's pre-requisite software. | ||
# You can view the site in a browser on your local (host) machine (at http://0.0.0.0:4000). | ||
# You can then modify website source files on your local (host) machine. | ||
# When you save a changed file, the changes are automatically rebuilt by Jekyll in the container and you can almost immediately | ||
# see the changes when you refresh your browser. | ||
|
||
# To build this image, from the directory that contains this Dockerfile: | ||
# docker build --tag lauracowen/jekyll . | ||
# | ||
# To run a container: | ||
# docker run --name jekyll -it -d -p 4000:4000 -v <root directory of Jekyll site on host machine>:/home/jekyll lauracowen/jekyll | ||
|
||
# Use the official Ruby image as a parent image | ||
FROM ruby:latest | ||
|
||
# INSTALL NODEJS AND NPM (it's a dependency of something in the Jekyll setup) | ||
|
||
# replace shell with bash so we can source files | ||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | ||
|
||
# update the repository sources list | ||
# and install dependencies | ||
RUN apt-get update \ | ||
&& apt-get install -y curl \ | ||
&& apt-get -y autoclean | ||
|
||
# nvm environment variables | ||
ENV NVM_DIR /usr/local/nvm | ||
ENV NODE_VERSION 9.0.0 | ||
|
||
# install nvm | ||
# https://github.com/creationix/nvm#install-script | ||
RUN curl --silent -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash | ||
|
||
# install node and npm | ||
RUN source $NVM_DIR/nvm.sh \ | ||
&& nvm install $NODE_VERSION \ | ||
&& nvm alias default $NODE_VERSION \ | ||
&& nvm use default | ||
|
||
# add node and npm to path so the commands are available | ||
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules | ||
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH | ||
|
||
# confirm installation | ||
RUN node -v | ||
RUN npm -v | ||
|
||
# INSTALLING AND RUNNING JEKYLL | ||
|
||
# create a user and group for Jekyll, set appropriate permissions, install the Jekyll gem | ||
RUN mkdir -p /home/jekyll \ | ||
&& groupadd -rg 1000 jekyll \ | ||
&& useradd -rg jekyll -u 1000 -d /home/jekyll jekyll \ | ||
&& chown jekyll:jekyll /home/jekyll | ||
|
||
# Create a mount point where Docker can access the source files on my local system (host system) | ||
VOLUME /home/jekyll | ||
|
||
# Set the working directory | ||
WORKDIR /home/jekyll | ||
|
||
# openliberty.io gem dependencies | ||
COPY ./scripts /home/jekyll/scripts | ||
RUN scripts/build_gem_dependencies.sh | ||
|
||
# openliberty.io custom gems | ||
COPY ./gems /home/jekyll/gems | ||
RUN pushd gems/ol-asciidoc \ | ||
&& gem build ol-asciidoc.gemspec \ | ||
&& gem install ol-asciidoc-0.0.1.gem \ | ||
&& popd | ||
|
||
RUN pushd gems/ol-target-blank \ | ||
&& gem build ol-target-blank.gemspec \ | ||
&& gem install ol-target-blank-0.0.1.gem \ | ||
&& popd | ||
|
||
# Serve the site | ||
ENTRYPOINT ["bash", "./scripts/jekyll_serve_dev.sh"] | ||
|
||
# Make port 4000 available to the world outside this container | ||
EXPOSE 4000 | ||
|
||
|
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
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
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
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
Oops, something went wrong.