Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f4808e11ac | ||
|
|
96ed5fa1b5 |
3 changed files with 35 additions and 7 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -48,6 +48,9 @@ LABEL summary="$SUMMARY" \
|
|||
help="For more information visit https://github.com/sclorg/s2i-nodejs-container" \
|
||||
usage="s2i build <SOURCE-REPOSITORY> centos/$NAME-$NODEJS_VERSION-centos7:latest <APP-NAME>"
|
||||
|
||||
# TODO: Add nodejs-nodemon into Fedora
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1433784
|
||||
# meanwhile install it during s2i assemble step
|
||||
RUN yum -y module enable nodejs:$NODEJS_VERSION && \
|
||||
INSTALL_PKGS="nodejs npm nss_wrapper" && \
|
||||
yum remove $INSTALL_PKGS -y && \
|
||||
|
|
@ -55,13 +58,6 @@ RUN yum -y module enable nodejs:$NODEJS_VERSION && \
|
|||
rpm -V $INSTALL_PKGS && \
|
||||
yum -y clean all --enablerepo='*'
|
||||
|
||||
# TODO: Add nodejs-nodemon into Fedora
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1433784
|
||||
#RUN NPM_CONFIG_PREFIX=$HOME/../ npm install -g nodemon && \
|
||||
# rm $(npm config get cache)/* -rf && \
|
||||
# rm -rf $(npm config get tmp)/npm-*
|
||||
|
||||
|
||||
# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
|
||||
COPY ./s2i/bin/ $STI_SCRIPTS_PATH
|
||||
|
||||
|
|
|
|||
23
bot-cfg.yml
Normal file
23
bot-cfg.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
version: "1"
|
||||
betka:
|
||||
# is betka enabled for this repository
|
||||
# optional - defaults to false
|
||||
enabled: true
|
||||
# optional
|
||||
notifications:
|
||||
email_addresses: [phracek@redhat.com, zsvetlik@redhat.com]
|
||||
# Specify if master branch in upstream repository is synced
|
||||
master_checker: true
|
||||
# Should pull requests be synced?
|
||||
# optional
|
||||
pr_checker: false
|
||||
# Either 'upstream_branch_name' or 'upstream_git_path' has to be specified
|
||||
# Branch name which is used for sync
|
||||
upstream_branch_name: master
|
||||
# Path to directory with dockerfile withing upstream repository
|
||||
upstream_git_path: "12"
|
||||
# Github comment message to enforce sync of a pull request
|
||||
# required if pr_checker is true otherwise optional
|
||||
pr_comment_message: "[test]"
|
||||
# optional
|
||||
image_url: quay.io/rhscl/cwt-generator
|
||||
|
|
@ -68,6 +68,15 @@ if [ -z "$DEV_MODE" ]; then
|
|||
export DEV_MODE=false
|
||||
fi
|
||||
|
||||
# TODO: Add nodejs-nodemon into Fedora
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1433784
|
||||
# meanwhile install it during s2i assemble step
|
||||
if [ "$(source /etc/os-release ; echo $NAME)" == "Fedora" ] ; then
|
||||
NPM_CONFIG_PREFIX=$HOME/../ npm install -g nodemon && \
|
||||
rm $(npm config get cache)/* -rf && \
|
||||
rm -rf $(npm config get tmp)/npm-*
|
||||
fi
|
||||
|
||||
# If NODE_ENV is not set by the user, then NODE_ENV is determined by whether
|
||||
# the container is run in development mode.
|
||||
if [ -z "$NODE_ENV" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue