Skip to content

Commit 49daf61

Browse files
authored
Merge pull request #2 from usegalaxy-eu/initial
add all changes from the previous PR
2 parents 619ec11 + d12d93c commit 49daf61

6 files changed

Lines changed: 303 additions & 0 deletions

File tree

.github/workflows/pr.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: PR
2+
3+
on:
4+
pull_request:
5+
branches: [ "main", "master" ]
6+
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
jobs:
11+
initialise:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Docker Buildx
19+
uses: docker/setup-buildx-action@v3
20+
21+
build_only:
22+
needs: initialise
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- name: Build docker image
27+
uses: docker/build-push-action@v6
28+
with:
29+
push: false
30+
tags: user/app:latest

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: release-CI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
jobs:
11+
build_and_publish:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Docker Buildx
19+
uses: docker/setup-buildx-action@v3
20+
21+
- name: Login to Quay IO
22+
uses: docker/login-action@v3
23+
with:
24+
registry: quay.io
25+
username: '$oauthtoken'
26+
password: ${{ secrets.QUAY_OAUTH_TOKEN }}
27+
28+
- name: Build docker image and push to quay.io
29+
uses: docker/build-push-action@v6
30+
with:
31+
push: true
32+
tags: |
33+
quay.io/bgruening/webatlas:${{ github.event.release.tag_name }}
34+
quay.io/bgruening/webatlas:latest

.gitignore

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# UV
98+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
#uv.lock
102+
103+
# poetry
104+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105+
# This is especially recommended for binary packages to ensure reproducibility, and is more
106+
# commonly ignored for libraries.
107+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108+
#poetry.lock
109+
110+
# pdm
111+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
112+
#pdm.lock
113+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
114+
# in version control.
115+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
116+
.pdm.toml
117+
.pdm-python
118+
.pdm-build/
119+
120+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121+
__pypackages__/
122+
123+
# Celery stuff
124+
celerybeat-schedule
125+
celerybeat.pid
126+
127+
# SageMath parsed files
128+
*.sage.py
129+
130+
# Environments
131+
.env
132+
.venv
133+
env/
134+
venv/
135+
ENV/
136+
env.bak/
137+
venv.bak/
138+
139+
# Spyder project settings
140+
.spyderproject
141+
.spyproject
142+
143+
# Rope project settings
144+
.ropeproject
145+
146+
# mkdocs documentation
147+
/site
148+
149+
# mypy
150+
.mypy_cache/
151+
.dmypy.json
152+
dmypy.json
153+
154+
# Pyre type checker
155+
.pyre/
156+
157+
# pytype static type analyzer
158+
.pytype/
159+
160+
# Cython debug symbols
161+
cython_debug/
162+
163+
# PyCharm
164+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
165+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166+
# and can be added to the global gitignore or merged into this file. For a more nuclear
167+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
168+
#.idea/
169+
170+
# PyPI configuration file
171+
.pypirc

Dockerfile

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
FROM python:3.10-slim-bookworm AS builder
2+
3+
ARG BIOFORMATS2RAW="0.7.0"
4+
ARG WEBATLAS_FORK_TAG="0.5.3-galaxy4"
5+
6+
RUN apt-get update && \
7+
apt-get install -y --no-install-recommends \
8+
wget unzip cmake g++ && \
9+
apt-get clean && \
10+
rm -rf /var/lib/apt/lists/*
11+
12+
# Download and stage bioformats2raw
13+
RUN wget -q -O bioformats2raw.zip https://github.com/glencoesoftware/bioformats2raw/releases/download/v${BIOFORMATS2RAW}/bioformats2raw-${BIOFORMATS2RAW}.zip && \
14+
unzip bioformats2raw.zip -d /opt/ && \
15+
rm bioformats2raw.zip
16+
17+
# Download and stage webatlas scripts
18+
RUN wget -q -O webatlas.tar.gz https://github.com/dannyspadaro/webatlas-pipeline/archive/refs/tags/${WEBATLAS_FORK_TAG}.tar.gz && \
19+
tar -xf webatlas.tar.gz && \
20+
mkdir /opt/webatlas-bin && \
21+
cp -r webatlas-pipeline-${WEBATLAS_FORK_TAG}/bin/* /opt/webatlas-bin/ && \
22+
chmod +x /opt/webatlas-bin/* && \
23+
rm -rf webatlas.tar.gz webatlas-pipeline-${WEBATLAS_FORK_TAG}
24+
25+
COPY requirements.txt /requirements.txt
26+
RUN pip install --upgrade pip "setuptools<81" distlib --no-cache-dir && \
27+
pip install --no-cache-dir -r /requirements.txt
28+
29+
# Runtime stage
30+
FROM python:3.10-slim-bookworm
31+
32+
ARG BIOFORMATS2RAW="0.7.0"
33+
34+
RUN apt-get update && \
35+
apt-get install -y --no-install-recommends \
36+
libblosc1 libvips libtiff-tools openjdk-17-jre-headless procps && \
37+
apt-get clean && \
38+
rm -rf /var/lib/apt/lists/*
39+
40+
# Copy required from builder
41+
COPY --from=builder /opt/bioformats2raw-${BIOFORMATS2RAW} /usr/local/share/bioformats2raw-${BIOFORMATS2RAW}
42+
RUN ln -sf /usr/local/share/bioformats2raw-${BIOFORMATS2RAW}/bin/bioformats2raw /usr/local/bin/bioformats2raw
43+
44+
COPY --from=builder /opt/webatlas-bin/ /usr/local/bin/
45+
COPY --from=builder /usr/local/lib/python3.10 /usr/local/lib/python3.10
46+
COPY --from=builder /usr/local/bin /usr/local/bin
47+
48+
ENTRYPOINT []

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# docker-webatlas
22
Docker image for Galaxy WebAtlas toolsuite
3+
4+
There are some minor changes that are required for Galaxy included in @dannyspadaro's fork: https://github.com/haniffalab/webatlas-pipeline/compare/main...dannyspadaro:webatlas-pipeline:update_dependencies

requirements.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pillow==12.0.0
2+
xmlschema==4.3.1
3+
scipy==1.15.3
4+
fire==0.7.1
5+
regex==2026.2.28
6+
scikit-image==0.25.2
7+
tifffile==2025.5.10
8+
numpy==2.2.6
9+
pandas==2.3.3
10+
pyvips==3.1.1
11+
scanpy==1.11.5
12+
ome-zarr==0.10.2
13+
anndata==0.11.4
14+
zarr==2.16.1
15+
h5py==3.16.0
16+
rioxarray==0.19.0
17+
spatialdata==0.5.0
18+
vitessce==3.8.2

0 commit comments

Comments
 (0)