Skip to content

Latest commit

 

History

History
 
 

docker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Install docker

Visit the official Docker Installation Page and follow the instructions tailored for your operating system.

Install docker-compose

Docker Compose makes dealing with the orchestration processes of Docker containers (such as starting up, shutting down, and setting up intra-container linking and volumes) really easy.

With docker compose we can define the entire multi-container application in single file and then the application can be spinned up using one command.

Visit the official Docker Compose Installation Page and follow the instructions tailored for your operating system.

(Optional) Adjust your setting

Edit the docker-compose.yml and adjust the settings, if needed.

 
# Uncomment the lines below if you want to map your local source code
#          inside  the docker container
# volumes:
#   - ../../Sming/:/workspace/Sming
   
 ports:
 #choose a free port to connect to the web C9 editor
 - "10080:80"
 
 devices:
  # uncomment to map your serial USB adaptor 
  #- "/dev/ttyUSB0:/dev/ttyUSB0"

Start your container

docker-compose up -d 

Open your browser

http://localhost:10080

C9 screenshot example

And inside of the Terminal tab in your browser window you can type

cd $SMING_HOME
make
cd $SMING_HOME/../samples/Basic_Blink
make
make flash

Shut down your container

docker-compose down