Skip to content

Commit

Permalink
Use galaxy-manage. Adds test-data.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Houseknecht committed Nov 8, 2017
1 parent 8a235f8 commit 0929f6b
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 20 deletions.
18 changes: 17 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ This document provides a guide for installing Galaxy.
- [Post build](#post-build)
- [Accessing Galaxy](#accessing-galaxy)
- [Configure GitHub Oauth](#configure-github-oauth)
- [Load platforms](#load-platforms)
- [Stop containers](#stop-containers)

## Getting started
Expand Down Expand Up @@ -284,7 +285,7 @@ In order to access Galaxy using GitHub Oauth, you'll need to complete create an
You'll first need to create an admin user by performing the following:

- Start an interactive sessoin on the web container by running the command: `docker exec -it galaxy_web_1 /bin/bash`
- Within the web container run the following: `${VENV_BIN}/python manage.py createsuperuser`
- Within the web container run the following: `${VENV_BIN}/galaxy-manage createsuperuser`
- You will be prompted for a username, email address and password, and asked to confirm the password. The email address is not important, any value that looks like a valid email will work.
- Once the account is created, use the `exit` command to termintate the session.

Expand All @@ -308,6 +309,21 @@ Within the new social application, set the `Provider` to `GitHub`, and the `Name

Log out of your admin account on your Galaxy site, return to the [home page](http://localhost), and click the Octocat logo to log in using your GitHub account.

### Load platforms

If you want to poplulate the Platforms data, run the following:

```bash
# Start an interactive session with the web container
$ docker exec -it galaxy_web_1 /bin/bash

# Set the working directory
$ cd /galaxy/test-data

# Load platforms
$ ${VENV_BIN}/galaxy-manage loaddata platform.json
```

### Stop containers

To stop the Galaxy containers, run the following:
Expand Down
4 changes: 2 additions & 2 deletions scripts/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3'
services:
web:
image: galaxy:latest
command: ['/bin/bash', '-c', '/entrypoint.sh manage waitenv && /entrypoint.sh manage migrate --noinput && /entrypoint.sh run web']
command: ['/bin/bash', '-c', '/entrypoint.sh manage waitenv && /entrypoint.sh manage migrate --noinput && /entrypoint.sh manage rebuild_index --noinput && /entrypoint.sh manage rebuild_galaxy_indexes && /entrypoint.sh run web']
environment:
- GALAXY_SECRET_KEY=secret
- GALAXY_DB_HOST=postgres
Expand All @@ -22,7 +22,7 @@ services:

worker:
image: galaxy:latest
command: ['/bin/bash', '-c', '/entrypoint.sh manage waitenv && /entrypoint.sh run worker']
command: ['/bin/bash', '-c', '/entrypoint.sh manage waitenv --wait-for web:8000 && /entrypoint.sh run worker']
environment:
- GALAXY_SECRET_KEY=secret
- GALAXY_DB_HOST=postgres
Expand Down
4 changes: 4 additions & 0 deletions scripts/docker-release/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ COPY build/static /var/lib/galaxy/public/static
RUN ${VENV_BIN}/pip install $(readlink -f /tmp/dist/galaxy.whl) \
&& rm -rf /tmp/dist

# Copy test data
RUN mkdir -p /galaxy/test-data
COPY test-data/* /galaxy/test-data/

WORKDIR /galaxy

ENV DJANGO_SETTINGS_MODULE galaxy.settings.production
Expand Down
6 changes: 3 additions & 3 deletions scripts/docker-release/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ function run_web() {
}

function run_worker() {
_exec_cmd "${VENV_BIN}/python" manage.py celeryd \
-B --autoreload -Q 'celery,import_tasks,login_tasks'
_exec_cmd "${VENV_BIN}/galaxy-manage" celeryd \
-B --autoreload -Q 'celery,import_tasks,login_tasks,admin_tasks,user_tasks,star_tasks'
}

function run_service() {
Expand All @@ -40,7 +40,7 @@ case "$1" in
run_service "${@:2}"
;;
manage)
_exec_cmd "${VENV_BIN}/python" manage.py "${@:2}"
_exec_cmd "${VENV_BIN}/galaxy-manage" "${@:2}"
;;
esac

Expand Down
2 changes: 0 additions & 2 deletions test-data/disable_triggers.sql

This file was deleted.

2 changes: 0 additions & 2 deletions test-data/enable_triggers.sql

This file was deleted.

5 changes: 0 additions & 5 deletions test-data/export.sh

This file was deleted.

5 changes: 0 additions & 5 deletions test-data/import.sh

This file was deleted.

1 change: 1 addition & 0 deletions test-data/platform.json

Large diffs are not rendered by default.

Binary file removed test-data/role_data.dmp.gz
Binary file not shown.

0 comments on commit 0929f6b

Please sign in to comment.