-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #296 from NERSC/sanic2
Major update to python 3 and Sanic
- Loading branch information
Showing
48 changed files
with
1,154 additions
and
923 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
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
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
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
# If you are looking to build an image for the gateway. Look at the Dockerfile | ||
# in imagegw/src. | ||
|
||
FROM ubuntu:14.04 | ||
FROM ubuntu:18.04 | ||
MAINTAINER Shane Canon <[email protected]> | ||
|
||
# Thanks to Sven Dowideit <[email protected]> | ||
|
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
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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Process this file with autoconf to produce a configure script. | ||
|
||
AC_PREREQ([2.62]) | ||
AC_INIT([shifter], [18.03.5], [[email protected]]) | ||
AC_INIT([shifter], [22.02.1], [[email protected]]) | ||
AC_CONFIG_SRCDIR([src/shifter_core.h]) | ||
AC_CONFIG_HEADERS([config.h]) | ||
AC_CONFIG_AUX_DIR([auxdir]) | ||
|
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
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
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
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
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
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
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
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,4 @@ | ||
# Shifter-Python | ||
|
||
This is a spec file to create an RPM with dependencies needed to | ||
run the image gateway. |
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,37 @@ | ||
# | ||
# spec file for package shifter-skopeo | ||
# | ||
|
||
|
||
Name: shifter-python | ||
Version: 21.12 | ||
Release: 1 | ||
Summary: Python packages | ||
License: Apache License 2.0 | ||
Group: System Environment/Base | ||
#Url: | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-build | ||
Requires: skopeo | ||
BuildRequires: python3-pip | ||
%description | ||
This provides python tools to handle the image convesion for Shifter. | ||
|
||
%prep | ||
|
||
%build | ||
|
||
%install | ||
pip3 install -t $RPM_BUILD_ROOT/opt/shifter-python-%{version} pymongo==3.6 | ||
pip3 install -t $RPM_BUILD_ROOT/opt/shifter-python-%{version} sanic==20.12.3 | ||
|
||
%post | ||
%postun | ||
|
||
%files | ||
%defattr(-,root,root) | ||
/opt/shifter-python-%{version} | ||
|
||
%changelog | ||
* Fri Dec 3 2021 Shane Canon <[email protected]> - 21.12-1 | ||
- Initial version | ||
|
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,17 @@ | ||
[Unit] | ||
Description=Shifter image manager | ||
After=munge.service | ||
|
||
[Service] | ||
Type=simple | ||
User=shifter | ||
Group=shifter | ||
PrivateTmp=true | ||
Environment=PYTHONPATH=/opt/shifter-python-21.12/ | ||
PermissionsStartOnly=true | ||
ExecStart=/usr/bin/python3.6 -m shifter_imagegw.api | ||
Restart=on-failure | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
|
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 |
---|---|---|
|
@@ -2,3 +2,5 @@ test.json | |
docker-compose.yml | ||
test/config | ||
*.pyc | ||
private | ||
*__pycache__* |
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
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
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
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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
pymongo | ||
flask | ||
gunicorn | ||
pymongo==3.12.1 | ||
sanic==20.9.1 | ||
pylint |
Oops, something went wrong.