forked from projectmesa/mesa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add initial Dockerfile + docker-compose.yml + docs
still in flux, need guidance on whether `mesa runserver` has formally replaced `mesa run`
- Loading branch information
Showing
3 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM phusion/baseimage:0.11 | ||
# developer Dockerfile for mesa development, installs from local git checkout | ||
LABEL maintainer="Allen Lee <[email protected]>" | ||
|
||
ENV PYTHONUNBUFFERED=1 \ | ||
LANG=C.UTF-8 \ | ||
LC_ALL=C.UTF-8 | ||
|
||
WORKDIR /opt/mesa | ||
|
||
COPY . /opt/mesa | ||
|
||
RUN apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold" \ | ||
&& apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
python3-dev \ | ||
python3-pip \ | ||
python3-setuptools \ | ||
python3-wheel \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip3 install -e /opt/mesa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: '3' | ||
services: | ||
install: | ||
build: . | ||
image: mesa:dev | ||
command: pip3 install -e /opt/mesa | ||
volumes: | ||
- .:/opt/mesa | ||
dev: | ||
image: mesa:dev | ||
depends_on: | ||
- install | ||
volumes: | ||
- .:/opt/mesa | ||
ports: | ||
- "127.0.0.1:8521:8521" | ||
|