Commit 1586a478 authored by Pablo Panero's avatar Pablo Panero
Browse files

Added npm dependency. Refactor scfripts for invenio-admin creation

parent bdd6f783
......@@ -9,7 +9,8 @@ RUN yum update -y && \
yum install -y \
python-devel \
python-pip \
gcc && \
gcc \
npm && \
pip install --upgrade pip setuptools wheel
ADD requirements.txt /tmp
......
......@@ -16,4 +16,5 @@ invenio-oauthclient>=1.0.0,<1.1.0
invenio_oauth2server>=1.0.0,<1.1.0
invenio-search[elasticsearch5]>=1.0.0,<1.1.0
invenio-theme>=1.0.0,<1.1.0
redis>=2.10.0
\ No newline at end of file
redis>=2.10.0
npm>=0.1.1
\ No newline at end of file
......@@ -4,5 +4,12 @@ set -o errexit
set -o nounset
mkdir -p ${INVENIO_INSTANCE_PATH}
npm update && npm install --silent -g node-sass@3.8.0 clean-css@3.4.19 uglify-js@2.7.3 requirejs@2.2.0
pip install -r requirements.txt
pip install -e .[all,postgresql,elasticsearch5]
invenio npm
export BACKPATH=$(pwd)
cd ${INVENIO_INSTANCE_PATH}/static
npm install
invenio collect -v
invenio assets build
......@@ -2,10 +2,4 @@
invenio db init
invenio db create
invenio index init
invenio collect
export BACKPATH=$(pwd)
cd ${INVENIO_APP_ALLOWED_HOSTS}/static
npm install
cd ${BACKPATH}
invenio assets build
\ No newline at end of file
invenio index init
\ No newline at end of file
......@@ -59,6 +59,7 @@ install_requires = [
'invenio-search[elasticsearch5]>=1.0.0,<1.1.0',
'invenio-theme>=1.0.0,<1.1.0',
'redis>=2.10.0',
'npm>=0.1.1',
]
packages = find_packages()
......
......@@ -157,10 +157,10 @@ objects:
name: redis
spec:
ports:
- name: 6379-tcp
port: 6379
- name: 5432-tcp
port: 5432
protocol: TCP
targetPort: 6379
targetPort: 5432
selector:
app: redis
deploymentconfig: redis
......@@ -209,10 +209,11 @@ objects:
# Invenio
INVENIO_INSTANCE_PATH: ${APP_INSTANCE_PATH}
# Redis
INVENIO_CACHE_REDIS_HOST: 'redis'
INVENIO_CACHE_REDIS_URL: 'redis://redis:6379/0'
INVENIO_ACCOUNTS_SESSION_REDIS_URL: 'redis://redis:5432/0'
INVENIO_CACHE_REDIS_URL: 'redis://redis:5432/0'
# App to allow hosts
INVENIO_APP_ALLOWED_HOSTS: ${APP_ALLOWED_HOSTS}
parameters:
- name: APP_INSTANCE_PATH
description: "Invenio instance path for CERN Search application."
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment