Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add docker-compose.yml #122

Merged
merged 7 commits into from
Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions docker-development/README.md
Original file line number Diff line number Diff line change
@@ -10,16 +10,25 @@ Wave is no different from other web frameworks which means you can even reuse yo

## Installation

Linux / MacOS:
Clone the repo and `cd` into corresponding directory

```sh
git clone https://github.com/h2oai/wave-apps.git
cd wave-apps/docker-development
```

Linux / MacOS

```sh
docker build . -t wave_local_dev
docker run -p 10101:10101 -v $(pwd)/src:/app/src wave_local_dev:latest
```

TODO: Windows
or via `docker compose`

```sh
docker compose up
```

## Features

13 changes: 13 additions & 0 deletions docker-development/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
version: '3.8'

services:
wave_local_dev:
build:
context: .
dockerfile: Dockerfile
ports:
- "10101:10101"
volumes:
- ./src:/app/src
...
4 changes: 3 additions & 1 deletion docker-development/dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM python:3.7
# Force platform to download proper wheel (with waved included).
# An alternative is to either download wheel manually or download and run waved separately.
FROM --platform=linux/amd64 python:3.8

# Create a project directory.
RUN mkdir /app