Software Build
This tutorial will walk you through updating, modifying, and building NEPI Software running in a NEPI Docker Container.
For additional support, see the documentation, tutorials, videos, and community forum available at NEPI.com: NEPI Website
NEPI Source-Code Repository Setup
RUN THESE STEPS ON A NEPI HOST DEVICE or NEPI REMOTE DEV SYSTEM
Check or set up an SSH Key for your GitHub Account by typing the following:
nepigithub~/nepi_engine_ws.Additional command line NEPI GitHub commands are available:
nepiclone # Clone the latest NEPI source-code repo
nepiclonedev # Clone the latest NEPI Development branch source-code repo
nepipull # Update to the latest NEPI source-code repo
nepimain # Switch to the NEPI source-code main repo branch
nepidev # Switch to the NEPI source-code develop repo branch
nepidpl # Deploy nepi source-code to nepi device
nepipush # Push current repo (or submodule repo) if you have push permissionsOther useful NEPI development command line shortcuts:
sshn # SSH into the running NEPI Software Container
sshnh # SSH into the NEPI Software Host SystemNEPI Software Deploy, Build, and Test Process
RUN THESE STEPS ON YOUR NEPI REMOTE DEV SYSTEM
Check network connection to the NEPI HOST Device:
pingn # Ctrl-C to stopDeploy the NEPI Source Code to the Device:
nepidplRUN THESE STEPS IN THE NEPI HOST
Open a terminal on your NEPI Device (or SSH into your NEPI Device from your NEPI Remote Dev System using the terminal command sshnh).
Run the NEPI Docker Build processes to update your NEPI Docker files (password is 'nepi'):
nepibld
dps # Show running NEPI containerStart a NEPI container running in dev mode (password is 'nepi'):
nepistart # OR 'nepidev' if the container fails to run
dps # Show running NEPI containerLog into the running NEPI container (password is 'nepi'):
nepilogin # OR 'nepidev' if the container fails to runsshn.RUN THESE STEPS IN THE NEPI CONTAINER
Run the NEPI Software Build processes to update your NEPI Container software files (password is 'nepi'):
nepibld
dps # Show running NEPI containerIf you don't see any FATAL errors, then test the NEPI software by running:
nepistartLook for any NEPI software error messages.
nepicommit # This will commit with an HoursMinutes tag. You can also pass a short custom tag like "dev1"nepistart and nepidev commands will use the committed container.NEPI Software Modification Process
This section covers modifying NEPI Software source code. If you just want to update your NEPI Docker Container's software, you can skip this section.
RUN THESE STEPS ON A NEPI HOST DEVICE or NEPI REMOTE DEV SYSTEM
~/nepi_engine_ws repo folder, then: 1) Repeat the Software Deploy and Software Build steps, or 2) Deploy and test quick fixes by opening a terminal in the folder containing the updated source code, then use one of the NEPI SFTP command line shortcuts to log into the appropriate folder on the NEPI Device (e.g. sdk for SDK source code folder changes), then use the put * command to deploy the folder files directly. Then rerun the nepistart command in your NEPI Host Device to retest in the container.NEPI Container Create Process
RUN THESE STEPS IN THE NEPI HOST
Once you are happy with the NEPI Software changes, you can create, deploy, and import your new NEPI Docker Image (password is 'nepi'):
nepistart
dps # Show running NEPI containerExport and Import the new NEPI Docker Image from the running NEPI Container (password is 'nepi'):
nepicreate # OR 'nepiexport' to just export the new image without importing back in