Skip to content

Instantly share code, notes, and snippets.

@Robokishan
Created April 20, 2020 06:57
Show Gist options
  • Save Robokishan/b531a55a76785839ec74df8a0ddf6061 to your computer and use it in GitHub Desktop.
Save Robokishan/b531a55a76785839ec74df8a0ddf6061 to your computer and use it in GitHub Desktop.
Docker file for phytec setup docker
FROM gmacario/build-yocto
RUN mkdir yocto
ADD volume /home/build/yocto
RUN sudo apt-get update
RUN sudo apt-get install -y nano vim
RUN wget ftp://ftp.phytec.de/pub/Software/Linux/Yocto/Tools/phyLinux
RUN chmod a+x phyLinux
RUN sudo chown -R build:build yocto
RUN sudo chmod 777 yocto
RUN ls -la /home/build
RUN wget https://github.com/cdr/code-server/releases/download/2.1698/code-server2.1698-vsc1.41.1-linux-x86_64.tar.gz
RUN tar xvfz code-server2.1698-vsc1.41.1-linux-x86_64.tar.gz
# TODO: to build image
# docker build --network host -t yocto-phytec .
# TODO: Run image
# docker run -v $PWD/volume:/home/build/yocto -d --network host --name=yocto-phytec -it yocto-phytec
# TODO: Get into Docker container
# docker exec -i -t yocto-phytec /bin/bash
# TODO: after getting into the docker container
# sudo chown build:build yocto
# AND NOW GOOD TO GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment