-
Notifications
You must be signed in to change notification settings - Fork 1k
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 #19050 from natefoo/installed-no-config
Run installed Galaxy with no config and a simplified entry point
- Loading branch information
Showing
14 changed files
with
116 additions
and
22 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
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,30 @@ | ||
import os | ||
from argparse import ArgumentParser | ||
|
||
import uvicorn | ||
|
||
|
||
def main() -> None: | ||
parser = ArgumentParser( | ||
prog="galaxy-web", | ||
description="Run Galaxy Web Server", | ||
) | ||
parser.add_argument("--config", "-c", help="Galaxy config file") | ||
parser.add_argument("--single-user", "-s", help="Single user mode as user SINGLE_USER") | ||
parser.add_argument("--bind", "-b", default="localhost:8080", help="Bind to <host>:<port>") | ||
parser.add_argument( | ||
"--client-path", "-n", default="node_modules/@galaxyproject/galaxy-client", help="Path to Galaxy client" | ||
) | ||
args = parser.parse_args() | ||
if args.config: | ||
os.environ["GALAXY_CONFIG_FILE"] = args.config | ||
if args.single_user: | ||
os.environ["GALAXY_CONFIG_SINGLE_USER"] = args.single_user | ||
os.environ["GALAXY_CONFIG_ADMIN_USERS"] = args.single_user | ||
os.environ["GALAXY_CONFIG_STATIC_DIR"] = args.client_path | ||
uvicorn.run( | ||
"galaxy.webapps.galaxy.fast_factory:factory", | ||
factory=True, | ||
host=args.bind.split(":")[0], | ||
port=int(args.bind.split(":")[1]), | ||
) |
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 |
---|---|---|
|
@@ -57,6 +57,7 @@ install_requires = | |
Mako | ||
Markdown | ||
MarkupSafe | ||
mercurial | ||
packaging | ||
paramiko!=2.9.0,!=2.9.1 | ||
pebble | ||
|
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,36 @@ | ||
#!/bin/bash | ||
# | ||
# Install packages in development mode, for running installed Galaxy from the source | ||
# | ||
set -euo pipefail | ||
|
||
editable=false | ||
|
||
while getopts ':e' OPTION | ||
do | ||
case $OPTION in | ||
e) | ||
editable=true | ||
;; | ||
esac | ||
done | ||
shift $((OPTIND - 1)) | ||
|
||
up_to="${1:-}" | ||
|
||
if [ -n "$up_to" -a ! -d "$up_to" ]; then | ||
echo "ERROR: package does not exist: $up_to" | ||
exit 1 | ||
fi | ||
|
||
while read package; do | ||
[ -n "$package" ] || continue | ||
pushd $package | ||
if $editable; then | ||
pip install -e . | ||
else | ||
pip install . | ||
fi | ||
popd | ||
[ "$package" != "$up_to" ] || exit | ||
done < packages_by_dep_dag.txt |
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
File renamed without changes.