Skip to content

Commit

Permalink
Merge pull request #126 from x-atlas-consortia/shirey/assayclass-dev-…
Browse files Browse the repository at this point in the history
…server

Shirey/assayclass dev server
  • Loading branch information
yuanzhou authored Sep 3, 2024
2 parents 4cf69f1 + 063c133 commit f1596e0
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
13 changes: 13 additions & 0 deletions dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM hubmap/api-base-image:1.0.0

LABEL description="DEV Server for Assayclasses"

WORKDIR /usr/src/app

COPY . .

RUN pip install --upgrade pip -r requirements.txt

EXPOSE 8181

CMD [ "python", "-m" , "app"]
18 changes: 17 additions & 1 deletion dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,20 @@ The `/assayclasses/<assay-code>` endpoint searches the same [assayclasses.json f
"vitessce_hints": []
}
}
```
```

## Docker Deployment on DEV VM

First build a new docker image

```
docker compose build
```

Then spin up the container

```
docker compose up -d
```

Once the container is up running correctly, you can access at `http://gateway.dev.hubmapconsortium.org:8181/assayclasses`
13 changes: 13 additions & 0 deletions dev/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:

assayclasses-dev-server:
build:
context: .
container_name: assayclasses-dev-server
ports:
- "8181:8181"
init: true
restart: always
volumes:
- "./instance:/usr/src/app/instance"

0 comments on commit f1596e0

Please sign in to comment.