-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy path.gitpod.Dockerfile
46 lines (38 loc) · 2.11 KB
/
.gitpod.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# FROM ambianic/ambianic-edge:dev
# Starting from the ambianic dev image results in errors when gitpod tries to build a workspace. Gitpod error below:
# build failed: cannot build base image: failed to register layer: Error processing tar file(exit status 1): Container ID 306111 cannot be mapped to a host ID5f5935479edd: Download complete
FROM gitpod/workspace-full
# The docker image build context doesn't seem to be able to access this repo files...
# Workaround is to pull the latest script version from the repo, which can lead to confusion,
# because it is not the same version as the script in the branch where this dockerfile comes from
# install wget
# RUN sudo apt-get install -y curl && \
# curl -k -L -o ./install_requirements.sh https://raw.githubusercontent.com/ambianic/ambianic-edge/master/build/install_requirements.sh && \
# sudo /bin/bash ./install_requirements.sh
# Install custom tools, runtimes, etc.
# For example "bastet", a command-line tetris clone:
# RUN brew install bastet
#
# More information: https://www.gitpod.io/docs/config-docker/
# Remove pyenv, which gitpod installs by default
# but it doesn't play well with system level dependencies like gstreamer python wrappers and tflite
# comment out lines in init shell script that enable pyenv
# RUN rm -rf $(pyenv root) && \
# sudo sed -i '/pyenv /s/^/#/' /home/gitpod/.bashrc.d/60-python && \
# sudo apt-get remove -y python3-pip
# Copy dependencies install list and script
# COPY install_requirements.sh install_requirements.sh
COPY ["./build/*", "./"]
RUN arch && ls -al && sudo /bin/bash ./install_requirements.sh #
# install gtipod environment dev packages for app testing
# RUN python3 -m pip install --upgrade pip && \
# python3 -m pip install --upgrade --upgrade setuptools && \
# python3 -m pip install -U pytest && \
# python3 -m pip install -U codecov && \
# python3 -m pip install -U pytest-cov && \
# python3 -m pip install -U pylint && \
# sudo ln -s /usr/bin/python3 /usr/bin/python
# && \
# echo "pyenv global system" >> ~/.bashrc.d/60-python && \
# echo "python3 -m pip install -e ~/src" >> ~/.bashrc
#