Spaces:
Runtime error
Runtime error
move build to dockerfile
Browse files- .devcontainer/Dockerfile +7 -7
- .devcontainer/devcontainer.json +1 -1
- .devcontainer/packages.txt +32 -0
- .nvmrc +1 -0
- Makefile +3 -5
.devcontainer/Dockerfile
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
|
3 |
FROM mcr.microsoft.com/vscode/devcontainers/universal:2-focal
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
2 |
|
3 |
FROM mcr.microsoft.com/vscode/devcontainers/universal:2-focal
|
4 |
|
5 |
+
USER root
|
6 |
+
|
7 |
+
COPY packages.txt /root/packages.txt
|
8 |
+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
9 |
+
&& xargs -r -a /root/packages.txt apt-get install -y
|
10 |
+
|
11 |
+
USER codespace
|
.devcontainer/devcontainer.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"postCreateCommand": "oryx build -p virtualenv_name=.venv --log-file /tmp/oryx-build.log --manifest-dir /tmp || echo 'Could not auto-build. Skipping.' && make
|
3 |
"hostRequirements": {
|
4 |
"gpus": 1
|
5 |
},
|
|
|
1 |
{
|
2 |
+
"postCreateCommand": "oryx build -p virtualenv_name=.venv --log-file /tmp/oryx-build.log --manifest-dir /tmp || echo 'Could not auto-build. Skipping.' && make set-env",
|
3 |
"hostRequirements": {
|
4 |
"gpus": 1
|
5 |
},
|
.devcontainer/packages.txt
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
python3-opencv
|
2 |
+
libopencv-dev
|
3 |
+
libopencv-core-dev
|
4 |
+
pkg-config
|
5 |
+
libopencv-imgcodecs-dev
|
6 |
+
libopencv-dev
|
7 |
+
libopencv-contrib-dev
|
8 |
+
build-essential
|
9 |
+
cmake
|
10 |
+
git
|
11 |
+
pkg-config
|
12 |
+
libgtk-3-dev
|
13 |
+
libavcodec-dev
|
14 |
+
libavformat-dev
|
15 |
+
libswscale-dev
|
16 |
+
libv4l-dev
|
17 |
+
libxvidcore-dev
|
18 |
+
libx264-dev
|
19 |
+
libjpeg-dev
|
20 |
+
libpng-dev
|
21 |
+
libtiff-dev
|
22 |
+
gfortran
|
23 |
+
openexr
|
24 |
+
libatlas-base-dev
|
25 |
+
python3-dev
|
26 |
+
python3-numpy
|
27 |
+
libtbb2
|
28 |
+
libtbb-dev
|
29 |
+
libdc1394-22-dev
|
30 |
+
libopenexr-dev
|
31 |
+
libgstreamer-plugins-base1.0-dev
|
32 |
+
libgstreamer1.0-dev
|
.nvmrc
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
18
|
Makefile
CHANGED
@@ -1,8 +1,6 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
pip install -r requirements.txt
|
5 |
-
cd frontend && npm install && cp .env.development.example .env.development && cp .env.example .env
|
6 |
build-client:
|
7 |
cd frontend && npm install && PUBLIC_DEV_MODE=PROD npm run build && rm -rf ../static && cp -r build/ ../static/
|
8 |
build-dev:
|
|
|
1 |
+
set-env:
|
2 |
+
pip install -r requirements.txt
|
3 |
+
cd frontend && npm install && cp .env.development.example .env.development && cp .env.example .env
|
|
|
|
|
4 |
build-client:
|
5 |
cd frontend && npm install && PUBLIC_DEV_MODE=PROD npm run build && rm -rf ../static && cp -r build/ ../static/
|
6 |
build-dev:
|