Skip to content

Commit de7c801

Browse files
authored
Merge pull request #63 from Integrative-Transcriptomics:adapting-wiggle-visualization
Adapting-wiggle-visualization
2 parents 5cc0319 + 313e51a commit de7c801

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+7441
-24422
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and Push Docker Image
33
# when to run the workflow
44
on:
55
push:
6-
branches: [main]
6+
branches: [main_2]
77

88
# the jobs to run
99
jobs:

.github/workflows/docker_release.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build and Push Docker Image
2+
3+
# when to run the workflow
4+
on:
5+
push:
6+
branches: [main]
7+
8+
# the jobs to run
9+
jobs:
10+
build:
11+
# the os to run the job on
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
# build the image now
18+
- name: Build Docker image
19+
env:
20+
YARNRC: ${{secrets.YARNRC}}
21+
run: |
22+
echo "$YARNRC" > .yarnrc.yml
23+
docker compose --env-file variables_tsspredator.env build
24+
25+
- name: save images
26+
run: |
27+
docker save tsspredator_web:latest | gzip > image_tsspredator_web.tar.gz
28+
docker save tsspredator_celery_app:latest | gzip > image_tsspredator_celery_app.tar.gz
29+
30+
- name: Release WebImage to Repo
31+
uses: svenstaro/upload-release-action@v2
32+
with:
33+
repo_token: ${{ secrets.GITHUB_TOKEN }}
34+
file: image_tsspredator_web.tar.gz
35+
asset_name: TSSpredatorWeb
36+
tag: ${{ github.ref }}
37+
overwrite: true
38+
body: "The image for the web interface of TSSpredator"
39+
40+
- name: Release CeleryImage to Repo
41+
uses: svenstaro/upload-release-action@v2
42+
with:
43+
repo_token: ${{ secrets.GITHUB_TOKEN }}
44+
file: image_tsspredator_celery_app.tar.gz
45+
asset_name: TSSpredatorCelery
46+
tag: ${{ github.ref }}
47+
overwrite: true
48+
body: "The image for the celery app of TSSpredator"

.gitignore

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@
22

33
# dependencies
44
node_modules
5+
.yarn
56
/.pnp
67
.pnp.js
78
env
9+
/.vite
810

911
# testing
1012
/coverage
1113

1214
# production
1315
/build
1416
/data
17+
/dist
1518

1619
# misc
1720
.DS_Store
@@ -24,12 +27,19 @@ __pycache__
2427
npm-debug.log*
2528
yarn-debug.log*
2629
yarn-error.log*
27-
server_tsspredator/exampleData/campylobacter/Archive/*
28-
server_tsspredator/exampleData/pseudomonas/Archive/*
30+
server_tsspredator/exampleData/campylobacter/files/*
31+
server_tsspredator/exampleData/pseudomonas/files/*
2932
dump.rdb
3033
package-lock.json
3134
server_tsspredator.egg-info/PKG-INFO
3235
celerybeat-schedule.db
3336
server_tsspredator/exampleData/campylobacter/files.zip
3437
server_tsspredator/exampleData/pseudomonas/files.zip
3538
server_tsspredator.egg-info
39+
.npmrc
40+
.gradle
41+
bin
42+
.yarnrc.yml
43+
image_tsspredator_celery_app.tar.gz
44+
image_tsspredator_web.tar.gz
45+
server_tsspredator/redisdb/dump-tsspredator.rdb

.vite/deps_temp_b8ec2e2a/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "module"
3+
}

celery/dockerfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# first stage build the frontend
33
# FROM node:20-alpine3.18 as build
4-
FROM --platform=linux/amd64 alpine:3.18
4+
FROM --platform=linux/x86_64 alpine:latest
55

66
# Set the working directory in the container to /app
77
# Set the working directory in the container to /app
@@ -27,17 +27,21 @@ COPY server_tsspredator /app/server_tsspredator
2727
COPY requirements.txt /app
2828
COPY setup.py /app
2929
COPY server_tsspredator/TSSpredator.jar /app
30-
30+
RUN apk add gcompat libbz2 libcurl libstdc++ krb5-dev zlib gcc musl-dev g++ curl-dev
31+
RUN wget https://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/bedGraphToBigWig -P /app
32+
RUN chmod +x /app/bedGraphToBigWig
3133

3234
# Install java 17
3335
RUN apk add --update --no-cache openjdk17-jre-headless
3436

3537

3638
# Install python3.11
37-
RUN apk add --update --no-cache python3 py3-pip
38-
39+
RUN apk add --update --no-cache python3-dev py3-pip
40+
RUN python3 -m venv /app/env_tss_predator_celery
41+
ENV PATH="/app/env_tss_predator_celery/bin:$PATH"
42+
RUN python3 -m pip install --upgrade pip
3943
# install python dependencies
40-
RUN pip install -r requirements.txt
44+
RUN python3 -m pip install -r requirements.txt
4145

4246
# Install the server package
4347
RUN pip install -e .

docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ version: '3.8'
22
services:
33
web:
44
image: tsspredator_web:latest
5+
platform: linux/x86_64
56
build:
67
context: .
78
dockerfile: webapp/Dockerfile
89
working_dir: /app/server_tsspredator
9-
command: gunicorn --workers 6 --timeout 500 --graceful-timeout 500 --bind 0.0.0.0:5001 server_tsspredator.wsgi:tsspredator
10+
command: gunicorn --workers 6 --timeout 500 --graceful-timeout 500 --bind 0.0.0.0:5001 server_tsspredator.wsgi:tsspredator
1011
deploy:
1112
resources:
1213
limits:
@@ -33,6 +34,7 @@ services:
3334

3435
celery:
3536
image: tsspredator_celery_app:latest
37+
platform: linux/x86_64
3638
build:
3739
context: .
3840
dockerfile: celery/Dockerfile

public/index.html renamed to index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,21 @@
44
<head>
55
<link rel="stylesheet" href="https://esm.sh/higlass@1.13/dist/hglib.css" />
66
<meta charset="utf-8" />
7-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
7+
<link rel="icon" href="/favicon.ico" />
88
<meta name="viewport" content="width=device-width, initial-scale=1" />
99
<meta name="theme-color" content="#000000" />
10-
<meta name="description" content="Web site created using create-react-app" />
11-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
10+
<link rel="apple-touch-icon" href="/logo192.png" />
1211
<!--
1312
manifest.json provides metadata used when your web app is installed on a
1413
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
1514
-->
16-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
15+
<link rel="manifest" href="/manifest.json" />
1716
<!--
18-
Notice the use of %PUBLIC_URL% in the tags above.
17+
Notice the use of in the tags above.
1918
It will be replaced with the URL of the `public` folder during the build.
2019
Only files inside the `public` folder can be referenced from the HTML.
2120
22-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
21+
Unlike "/favicon.ico" or "favicon.ico", "/favicon.ico" will
2322
work correctly both with client-side routing and a non-root public URL.
2423
Learn how to configure a non-root public URL by running `npm run build`.
2524
-->
@@ -39,6 +38,7 @@
3938
To begin the development, run `npm start` or `yarn start`.
4039
To create a production bundle, use `npm run build` or `yarn build`.
4140
-->
41+
<script type="module" src="/src/index.jsx"></script>
4242
</body>
4343

4444
</html>

0 commit comments

Comments
 (0)