Skip to content

Commit

Permalink
DEPLOYMENT: docker
Browse files Browse the repository at this point in the history
* NEW: use node 10
* DELETE: deployment scripts

Signed-off-by: Peter Weber <Peter.Weber@rero.ch>
  • Loading branch information
rerowep committed Feb 21, 2019
1 parent 77f39dc commit 28abe60
Show file tree
Hide file tree
Showing 30 changed files with 1,871 additions and 3,059 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
# waive the privileges and immunities granted to it by virtue of its status
# as an Intergovernmental Organization or submit itself to any jurisdiction.

FROM rero-ils-base:latest
ARG VERSION=latest
FROM rero/rero-ils-base:${VERSION}

USER 0

Expand All @@ -34,8 +35,5 @@ RUN chown -R invenio:invenio ${WORKING_DIR}

USER 1000

# workaround
RUN npm uninstall --prefix `pipenv --venv` --silent -g node-sass clean-css uglify-js requirejs

ENV INVENIO_COLLECT_STORAGE='flask_collect.storage.file'
RUN ./scripts/bootstrap --deploy
4 changes: 3 additions & 1 deletion Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ RUN pip install --upgrade setuptools wheel pip pipenv
# # uwsgi uwsgitop uwsgi-tools

# Install Node
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install --no-install-recommends -y nodejs && rm -rf /var/lib/apt/lists/*
RUN npm install --silent node-sass@4.9.0 clean-css@3.4.19 uglify-js@2.7.3 requirejs@2.2.0 @angular/cli@7.0.4

# RUN npm update

# RUN python -m site
Expand Down
6 changes: 3 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ include scripts/update
prune docs/_build
recursive-include rero_ils *.po *.pot *.mo
recursive-include docker *.cfg *.conf *.crt *.ini *.key *.pem *.sh
include deployment/jenkins/Dockerfile
include deployment/jenkins/Jenkinsfile_deployment
recursive-include deployment *.sh
recursive-include deployment *.tmpl
recursive-include deployment *.yaml

# added by check_manifest.py
include *.base
Expand All @@ -57,7 +58,6 @@ recursive-include data *.json
recursive-include tests *.json
recursive-include data *.xml
recursive-include data *.yml
recursive-include deployment *.yml
recursive-include doc *.graffle
recursive-include doc *.pdf
recursive-include docs *.bat
Expand Down
7 changes: 6 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ invenio-circulation = {ref = "master", git = "https://github.com/inveniosoftware
pipenv = "*"
requests = ">=2.20.0"
flask-oauthlib = "*"
# invenio-admin = {version = ">=1.1.1"}
requests-oauthlib = "==1.1"
node-semver = "<0.2.0,>=0.1.1"
lxml = "==4.2.5"
celery = "==4.1.1"

[dev-packages]
Flask-Debugtoolbar = ">=0.10.1"
Expand All @@ -38,6 +41,8 @@ pytest-runner = ">=3.0.0,<5"
transifex-client = ">=0.12.5"
requests = ">=2.20.0"
rero-ils = {editable = true, path = "."}
requests-oauthlib = "==1.1"
node-semver = "<0.2.0,>=0.1.1"

[requires]
python_version = "3.6"
Expand Down
509 changes: 274 additions & 235 deletions Pipfile.lock

Large diffs are not rendered by default.

62 changes: 0 additions & 62 deletions deployment/jenkins/Dockerfile

This file was deleted.

67 changes: 0 additions & 67 deletions deployment/jenkins/Jenkinsfile_deployment

This file was deleted.

73 changes: 0 additions & 73 deletions deployment/jenkins/kubernetes/jenkins-app.yml

This file was deleted.

57 changes: 0 additions & 57 deletions deployment/jenkins/kubernetes/jenkins-service.yml

This file was deleted.

45 changes: 0 additions & 45 deletions deployment/kubernetes/reroils-cache-deployment.yml

This file was deleted.

Loading

0 comments on commit 28abe60

Please sign in to comment.