Skip to content

Commit

Permalink
Merge pull request #3 from simonsobs/koopman/compose-testing
Browse files Browse the repository at this point in the history
Setup compose file for testing
  • Loading branch information
BrianJKoopman authored Mar 11, 2022
2 parents f3a3825 + 93c06ee commit fdf213e
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
.PHONY : build
build :
docker build -t so-daq-sequencer .
docker-compose build --pull

.PHONY : run
run :
docker-compose up

.PHONY : clean
clean :
docker-compose down
docker image rm so-daq-sequencer-frontend:latest
docker image rm so-daq-sequencer:latest

# vim: set expandtab!:
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,32 @@ This repo is used to build and publish the Docker image for running
[nextline](https://github.com/simonsobs/nextline-graphql) with
[sorunlib](https://github.com/simonsobs/sorunlib) installed.

Quickstart
----------

To run a local copy of the sequencer:

```bash
$ git clone https://github.com/simonsobs/so-daq-sequencer-docker.git
$ make build
$ make run
```

Navigate to http://localhost:8080/nextline/ to view.

A helpful test script to run is:

```python
import sorunlib
print(sorunlib.__version__)
```

To tear down, ctrl+c out of the running `make run` command and then run:

```bash
$ make clean
```

License
-------
This project is licensed under the BSD 2-Clause License - see the
Expand Down
File renamed without changes.
23 changes: 23 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: '3.7'

services:
frontend:
build:
context: ./
dockerfile: frontend.Dockerfile
image: so-daq-sequencer-frontend:latest
container_name: frontend
ports:
- "8080:80"
environment:
- API_HTTP=http://localhost:8000
- PUBLIC_PATH=/nextline/

backend:
build:
context: ./
dockerfile: backend.Dockerfile
image: so-daq-sequencer:latest
container_name: backend
ports:
- "8000:8000"
1 change: 1 addition & 0 deletions frontend.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM ghcr.io/simonsobs/nextline-web:v0.1.7

0 comments on commit fdf213e

Please sign in to comment.