-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Morgan Rodgers
committed
Aug 12, 2019
1 parent
df6922d
commit 6c2e8b9
Showing
2 changed files
with
113 additions
and
0 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,34 @@ | ||
before_script: | ||
- docker info | ||
- '[ -d tmp ] || mkdir tmp' | ||
- git clone https://github.com/OSC/ondemand-packaging.git tmp/ondemand-packaging | ||
- cp /systems/osc_certs/gpg/ondemand/.gpgpass $CI_PROJECT_DIR/tmp/ondemand-packaging/ | ||
- cp /systems/osc_certs/gpg/ondemand/ondemand.sec $CI_PROJECT_DIR/tmp/ondemand-packaging/ | ||
stages: | ||
- build | ||
- deploy | ||
|
||
rpm-build: | ||
stage: build | ||
only: | ||
- tags | ||
script: | ||
- ./tmp/ondemand-packaging/build.sh -w $CI_PROJECT_DIR/tmp/work -o $CI_PROJECT_DIR/tmp/output -V $CI_COMMIT_TAG -u $CI_PROJECT_DIR/packaging | ||
artifacts: | ||
paths: | ||
- tmp/output | ||
name: "$CI_PROJECT_NAME-$CI_COMMIT_TAG" | ||
|
||
|
||
rpm-deploy: | ||
variables: | ||
RLS_SCRIPT: "./tmp/ondemand-packaging/release.py" | ||
RLS_KEY: "/systems/osc_certs/ssh/ondemand-packaging/id_rsa" | ||
RLS_OUTPUT: "./tmp/output/*" | ||
SECTION: "main" | ||
stage: deploy | ||
only: | ||
- tags | ||
script: | ||
- if [[ "$CI_COMMIT_TAG" =~ .*_.* ]]; then export SECTION=ci; fi | ||
- $RLS_SCRIPT --pkey $RLS_KEY -c $SECTION $RLS_OUTPUT |
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,79 @@ | ||
# Disable debuginfo as it causes issues with bundled gems that build libraries | ||
%global debug_package %{nil} | ||
%global repo_name bc_osc_jupyter | ||
%global app_name bc_osc_jupyter | ||
%{!?package_version: %define package_version %{major}.%{minor}.%{patch}} | ||
%{!?package_release: %define package_release 1} | ||
%{!?git_tag: %define git_tag v%{package_version}} | ||
%define git_tag_minus_v %(echo %{git_tag} | sed -r 's/^v//') | ||
|
||
Name: ondemand-%{app_name} | ||
Version: %{package_version} | ||
Release: %{package_release}%{?dist} | ||
Summary: Batch Connect - OSC Jupyter Notebook | ||
|
||
Group: System Environment/Daemons | ||
License: MIT | ||
URL: https://github.com/OSC/%{repo_name} | ||
Source0: https://github.com/OSC/%{repo_name}/archive/%{git_tag}.tar.gz | ||
|
||
Requires: ondemand | ||
|
||
# Disable automatic dependencies as it causes issues with bundled gems and | ||
# node.js packages used in the apps | ||
AutoReqProv: no | ||
|
||
%description | ||
An interactive app designed for OSC OnDemand that launches a Jupyter Notebook server within an Owens batch job. | ||
|
||
|
||
%prep | ||
%setup -q -n %{repo_name}-%{git_tag_minus_v} | ||
|
||
|
||
%build | ||
|
||
|
||
%install | ||
%__mkdir_p %{buildroot}%{_localstatedir}/www/ood/apps/sys/%{app_name} | ||
%__cp -a ./. %{buildroot}%{_localstatedir}/www/ood/apps/sys/%{app_name}/ | ||
echo v%{version} > %{buildroot}%{_localstatedir}/www/ood/apps/sys/%{app_name}/VERSION | ||
|
||
|
||
%files | ||
%defattr(-,root,root) | ||
%{_localstatedir}/www/ood/apps/sys/%{app_name} | ||
%{_localstatedir}/www/ood/apps/sys/%{app_name}/manifest.yml | ||
|
||
|
||
%changelog | ||
* Thu Sep 20 2018 Morgan Rodgers <mrodgers@osc.edu> 0.9.0-1 | ||
- Update Jupyter to v0.9.0 (mrodgers@osc.edu) | ||
|
||
* Fri Aug 24 2018 Morgan Rodgers <mrodgers@osc.edu> 0.8.0-1 | ||
- Add IJulia kernel for Julia 0.6.4 (mrodgers@osc.edu) | ||
|
||
* Tue Aug 14 2018 Morgan Rodgers <mrodgers@osc.edu> 0.7.0-1 | ||
- Added support for Julia 1.0 kernel (mrodgers@osc.edu) | ||
|
||
* Fri Apr 27 2018 Jeremy Nicklas <jnicklas@osc.edu> 0.6.2-1 | ||
- Bump bc_osc_jupyter to 0.6.2 (jnicklas@osc.edu) | ||
|
||
* Thu Apr 26 2018 Jeremy Nicklas <jnicklas@osc.edu> 0.6.1-1 | ||
- Bump bc_osc_jupyter to 0.6.1 (jnicklas@osc.edu) | ||
|
||
* Tue Apr 17 2018 Jeremy Nicklas <jnicklas@osc.edu> 0.6.0-1 | ||
- Bump bc_osc_jupyter to 0.6.0 (jnicklas@osc.edu) | ||
|
||
* Wed Mar 28 2018 Jeremy Nicklas <jnicklas@osc.edu> 0.5.0-1 | ||
- Bump bc_osc_jupyter to 0.5.0 (jnicklas@osc.edu) | ||
|
||
* Tue Mar 06 2018 Jeremy Nicklas <jnicklas@osc.edu> 0.4.1-1 | ||
- Bump bc_osc_jupyter to 0.4.1 (jnicklas@osc.edu) | ||
|
||
* Tue Mar 06 2018 Jeremy Nicklas <jnicklas@osc.edu> | ||
- Bump bc_osc_jupyter to 0.4.1 (jnicklas@osc.edu) | ||
|
||
* Tue Feb 13 2018 Trey Dockendorf <tdockendorf@osc.edu> 0.3.0-1 | ||
- new package built with tito | ||
|