Skip to content

Commit 283b233

Browse files
committed
init
0 parents  commit 283b233

File tree

421 files changed

+28256
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

421 files changed

+28256
-0
lines changed

.dockerignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
bower_components
2+
github.io
3+
node_modules
4+
.openshift
5+
php
6+
_site
7+
_build
8+
repos
9+
Dockerfile
10+
.dockerignore

.gitignore

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Ignore Project files
2+
*.sublime-workspace
3+
*.sublime-project
4+
*.idea
5+
6+
# Ignore vim files
7+
*.swp
8+
*.swn
9+
*.swo
10+
11+
# Ignore local nodejs packages
12+
node_modules
13+
14+
# Ignore node files
15+
*.man
16+
nodevars.bat
17+
npm
18+
npm.cmd
19+
20+
# Ignore generated files
21+
patternfly.spec
22+
_build
23+
*.map
24+
=======
25+
_site
26+
public
27+
.DS_Store
28+
bower_components
29+
source/assets/css
30+
github.io
31+
32+
repos

.openshift/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
For information about .openshift directory, consult the documentation:
2+
3+
http://openshift.github.io/documentation/oo_user_guide.html#the-openshift-directory

.openshift/action_hooks/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
For information about action hooks, consult the documentation:
2+
3+
http://openshift.github.io/documentation/oo_user_guide.html#action-hooks

.openshift/action_hooks/deploy-old

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
echo "Building static files using jekyll..."
4+
export LD_LIBRARY_PATH=/opt/rh/mysql55/root/usr/lib64:/opt/rh/ror40/root/usr/lib64:/opt/rh/ruby200/root/usr/lib64
5+
export PATH=~/.gem/bin:/opt/rh/ruby200/root/usr/bin:$PATH
6+
gem install bundle
7+
cd $OPENSHIFT_REPO_DIR && bundle install && bundle exec jekyll build -s source -d php

.openshift/cron/README.cron

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Run scripts or jobs on a periodic basis
2+
=======================================
3+
Any scripts or jobs added to the minutely, hourly, daily, weekly or monthly
4+
directories will be run on a scheduled basis (frequency is as indicated by the
5+
name of the directory) using run-parts.
6+
7+
run-parts ignores any files that are hidden or dotfiles (.*) or backup
8+
files (*~ or *,) or named *.{rpmsave,rpmorig,rpmnew,swp,cfsaved}
9+
10+
The presence of two specially named files jobs.deny and jobs.allow controls
11+
how run-parts executes your scripts/jobs.
12+
jobs.deny ===> Prevents specific scripts or jobs from being executed.
13+
jobs.allow ===> Only execute the named scripts or jobs (all other/non-named
14+
scripts that exist in this directory are ignored).
15+
16+
The principles of jobs.deny and jobs.allow are the same as those of cron.deny
17+
and cron.allow and are described in detail at:
18+
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Automating_System_Tasks.html#s2-autotasks-cron-access
19+
20+
See: man crontab or above link for more details and see the the weekly/
21+
directory for an example.
22+
23+
PLEASE NOTE: The Cron cartridge must be installed in order to run the configured jobs.
24+
25+
For more information about cron, consult the documentation:
26+
http://openshift.github.io/documentation/oo_cartridge_guide.html#cron
27+
http://openshift.github.io/documentation/oo_user_guide.html#cron

.openshift/cron/daily/.gitignore

Whitespace-only changes.

.openshift/cron/hourly/.gitignore

Whitespace-only changes.

.openshift/cron/minutely/.gitignore

Whitespace-only changes.

.openshift/cron/monthly/.gitignore

Whitespace-only changes.

.openshift/cron/weekly/README

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Run scripts or jobs on a weekly basis
2+
=====================================
3+
Any scripts or jobs added to this directory will be run on a scheduled basis
4+
(weekly) using run-parts.
5+
6+
run-parts ignores any files that are hidden or dotfiles (.*) or backup
7+
files (*~ or *,) or named *.{rpmsave,rpmorig,rpmnew,swp,cfsaved} and handles
8+
the files named jobs.deny and jobs.allow specially.
9+
10+
In this specific example, the chronograph script is the only script or job file
11+
executed on a weekly basis (due to white-listing it in jobs.allow). And the
12+
README and chrono.dat file are ignored either as a result of being black-listed
13+
in jobs.deny or because they are NOT white-listed in the jobs.allow file.
14+
15+
For more details, please see ../README.cron file.
16+

.openshift/cron/weekly/chrono.dat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Time And Relative D...n In Execution (Open)Shift!

.openshift/cron/weekly/chronograph

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
echo "`date`: `cat $(dirname \"$0\")/chrono.dat`"

.openshift/cron/weekly/jobs.allow

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# Script or job files listed in here (one entry per line) will be
3+
# executed on a weekly-basis.
4+
#
5+
# Example: The chronograph script will be executed weekly but the README
6+
# and chrono.dat files in this directory will be ignored.
7+
#
8+
# The README file is actually ignored due to the entry in the
9+
# jobs.deny which is checked before jobs.allow (this file).
10+
#
11+
chronograph
12+

.openshift/cron/weekly/jobs.deny

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Any script or job files listed in here (one entry per line) will NOT be
3+
# executed (read as ignored by run-parts).
4+
#
5+
6+
README
7+

.openshift/markers/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
For information about markers, consult the documentation:
2+
3+
http://openshift.github.io/documentation/oo_user_guide.html#markers
4+
5+
NOTE: To enable hot deploy, simpy create a file named hot_deploy.

.openshift/markers/hot_deploy

Whitespace-only changes.

.travis.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
language: node_js
2+
sudo: required
3+
cache: yarn
4+
env:
5+
global:
6+
- ENCRYPTION_LABEL: 6c432af47126
7+
- COMMIT_AUTHOR_EMAIL: [email protected]
8+
- COMMIT_AUTHOR_USERNAME: patternfly-build
9+
- TRIGGER_REPO_SLUG: jschuler/patternfly-org
10+
- TRIGGER_REPO_BRANCH: master
11+
notifications:
12+
email: false
13+
git:
14+
depth: 1
15+
before_install:
16+
- openssl aes-256-cbc -K $encrypted_6c432af47126_key -iv $encrypted_6c432af47126_iv
17+
-in pf_org_rsa.pub.enc -out ~/.ssh/pf_org_rsa.pub -d
18+
- nvm install 4
19+
- if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
20+
- npm install -g grunt-cli
21+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.7.0
22+
- export PATH=$HOME/.yarn/bin:$PATH
23+
- yarn bootstrap
24+
install: true
25+
script:
26+
- yarn build
27+
- yarn build-dev
28+
after_success:
29+
- "./scripts/deploy.sh"

Dockerfile

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
FROM centos:centos7
2+
3+
RUN yum -y install centos-release-scl; yum clean all
4+
RUN yum -y update; yum clean all
5+
RUN yum install -y rh-git29 rh-ruby23 rh-ruby23-ruby-devel rh-nodejs4; yum clean all
6+
7+
RUN source /opt/rh/rh-nodejs4/enable \
8+
&& if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi \
9+
&& npm --version
10+
11+
RUN useradd -ms /bin/bash patternfly
12+
13+
SHELL ["/bin/bash", "--login", "-c"]
14+
USER patternfly
15+
ENV HOME /home/patternfly
16+
WORKDIR $HOME
17+
18+
RUN mkdir $HOME/.ssh \
19+
&& chmod 700 $HOME/.ssh \
20+
&& ssh-keyscan -t rsa github.com >> $HOME/.ssh/known_hosts
21+
22+
RUN echo 'source /opt/rh/rh-git29/enable' >> $HOME/.bash_profile
23+
RUN echo 'source /opt/rh/rh-ruby23/enable' >> $HOME/.bash_profile
24+
RUN echo 'source /opt/rh/rh-nodejs4/enable' >> $HOME/.bash_profile
25+
26+
RUN gem install bundler --no-ri --no-rdoc
27+
28+
# Create app directory
29+
RUN mkdir patternfly-org
30+
WORKDIR $HOME/patternfly-org
31+
32+
COPY Gemfile Gemfile.lock ./
33+
RUN bundle install
34+
35+
COPY package.json ./
36+
RUN npm install
37+
38+
COPY . .
39+
40+
RUN npm run grunt -- build
41+
42+
EXPOSE 9002
43+
44+
ENTRYPOINT ["/bin/bash", "-l", "-c"]
45+
CMD [ "npm run grunt -- connect:staging watch" ]

0 commit comments

Comments
 (0)