abuendia commited on
Commit
30eb4a2
2 Parent(s): f38ffad 26d3e71

Merge branch 'master' of github.com:fuxialexander/getdemo

Browse files
.github/workflows/docker-build-and-push.yml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Docker Build and Push
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+
8
+ jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - name: Checkout code
14
+ uses: actions/checkout@v4
15
+ with:
16
+ token: ${{ secrets.TOKEN }}
17
+ submodules: 'recursive'
18
+ lfs: 'true'
19
+
20
+
21
+ - name: Set up Docker
22
+ uses: docker/setup-buildx-action@v3
23
+
24
+ - name: Login to DockerHub
25
+ uses: docker/login-action@v3
26
+ with:
27
+ username: ${{ secrets.DOCKER_USERNAME }}
28
+ password: ${{ secrets.DOCKER_PASSWORD }}
29
+
30
+ - name: Build and push Docker image
31
+ uses: docker/build-push-action@v3
32
+ with:
33
+ context: .
34
+ push: true
35
+ tags: fuxialexander/getdemo:latest
Dockerfile CHANGED
@@ -53,8 +53,8 @@ RUN micromamba clean --all --yes
53
  WORKDIR /app
54
 
55
  # Make port 80 available to the world outside this container
56
- EXPOSE 7681
57
  # Set the working directory where your app resides
58
 
59
  # Command to run the Gradio app automatically
60
- CMD ["python", "app/main.py", "-p", "7681", "-s", "-u", "s3://2023-get-xf2217/get_demo_test_data", "-d", "/data"]
 
53
  WORKDIR /app
54
 
55
  # Make port 80 available to the world outside this container
56
+ EXPOSE 7860
57
  # Set the working directory where your app resides
58
 
59
  # Command to run the Gradio app automatically
60
+ CMD ["python", "app/main.py", "-p", "7860", "-s", "-u", "s3://2023-get-xf2217/get_demo_test_data", "-d", "/data"]
app/main.py CHANGED
@@ -29,6 +29,7 @@ args.add_argument("-p", "--port", type=int, default=7860, help="Port number")
29
  args.add_argument("-s", "--share", action="store_true", help="Share on network")
30
  args.add_argument("-u", "--s3_uri", type=str, default=None, help="Path to demo S3 bucket")
31
  args.add_argument("-d", "--data", type=str, default=None, help="Data directory")
 
32
  args = args.parse_args()
33
 
34
  GET_CONFIG = load_config(
@@ -360,4 +361,4 @@ You can download specific segment pair PDB files by clicking 'Get PDB.'
360
  outputs=[subnet_plot, cell],
361
  )
362
 
363
- demo.launch(share=args.share, server_port=args.port)
 
29
  args.add_argument("-s", "--share", action="store_true", help="Share on network")
30
  args.add_argument("-u", "--s3_uri", type=str, default=None, help="Path to demo S3 bucket")
31
  args.add_argument("-d", "--data", type=str, default=None, help="Data directory")
32
+ args.add_argument("-n", "--host", type=str, default="127.0.0.1")
33
  args = args.parse_args()
34
 
35
  GET_CONFIG = load_config(
 
361
  outputs=[subnet_plot, cell],
362
  )
363
 
364
+ demo.launch(server_name=args.host, share=args.share, server_port=args.port)
modules/atac_rna_data_processing CHANGED
@@ -1 +1 @@
1
- Subproject commit 3b3aa98cbb86c9161886afb0f423e687a06d73ec
 
1
+ Subproject commit e3591f6a18614b73484b13aa242f75971334f80d