Skip to content

Commit

Permalink
Update SETUP.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SighingSnow committed Jul 7, 2022
1 parent 83c2782 commit 0890841
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ARG JOBS = 2

FROM dokken/ubuntu-20.04
RUN apt install build-essentials gcc g++ make

# Copy source code to docker
COPY . /ors
WORKDIR /ors/build

# Build and install ors
RUN cmake . && make -j${JOBS} && make install

EXPOSE 8080 8000/udp

# Default workdir and command
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Pixel Streaming
The proj is based on cloud rendering.(云渲染)

### 1 Set Up
For the detailed enviroment setup, please refer to [setup.md](./docs/setup.md).
For the detailed enviroment setup, please refer to [SETUP.md](./docs/SETUP.md).
Ubuntu and macos is recommended.
And please note that the server file is from libdatachannel repo.

Expand Down
Empty file added docker-compose.yml
Empty file.
6 changes: 5 additions & 1 deletion docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ sudo apt install libfreetype6-dev libavcodec-dev libavformat-dev libswscale-dev
### 2 MacOS

### 3 Docker

Switch to docker branch first.
```shell
docker build -t ors-image
docker run --rm -p 8080:8080 -p 8000:8000/udp ors-image ./build/ors
```

### 4 Windows
Windows currently has not been tested.

0 comments on commit 0890841

Please sign in to comment.