-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
738ab37
commit beb2c7d
Showing
13 changed files
with
136 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Use With Mount Volume | ||
|
||
## Mechanism | ||
|
||
Container will mount your existing project folder into `/home` and compile it in `/home/build`. | ||
|
||
- `HostPath` is the existing project folder path on your local host machine. **This folder must contain your source code.** | ||
|
||
- `ContainerPath` is the folder in docker container. Default is `/home`. | ||
|
||
|
||
## Command | ||
|
||
- Format: | ||
```bash | ||
docker run -v "{HostPath}":"/home" {IMAGE:VERSION} | ||
docker run -v "{HostPath}":"/home" {IMAGE:VERSION} -t {Build_Type} | ||
docker run -v "{HostPath}":"/custom" {IMAGE:VERSION} -v /custom | ||
``` | ||
|
||
- Example: | ||
```bash | ||
docker run -v "F:\Project\STM32-CMAKE-TEMPLATE":"/home" jasonyangee/stm32-builder:ubuntu-latest | ||
docker run -v "F:\Project\STM32-CMAKE-TEMPLATE":"/home" jasonyangee/stm32-builder:ubuntu-latest -t Debug | ||
docker run -v "F:\Project\STM32-CMAKE-TEMPLATE":"/custom" jasonyangee/stm32-builder:ubuntu-latest -v /custom | ||
``` | ||
|
||
|
||
## Output | ||
|
||
Binary Output `.bin` `.elf` `.hex` `.map` are located in `HostPath/build`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Use With Git Link | ||
|
||
## Mechanism | ||
|
||
Container will mount to local folder as working directory. Then it will clone the supplied git repo source file into `/home` and compile it in `/home/build`. | ||
|
||
- `HostPath` is any empty folder path on local host machine. If no folder existed, one will be created. | ||
|
||
- `ContainerPath` is the path inside of container. Default is `/home`. | ||
|
||
## Command | ||
|
||
- Format: | ||
```bash | ||
docker run -v "{HostPath}":"/home" {IMAGE:VERSION} -r {Git_Repo_URL} | ||
docker run -v "{HostPath}":"/home" {IMAGE:VERSION} -r {Git_Repo_URL} -t {Build_Type} | ||
docker run -v "{HostPath}":"{ContainerPath}" {IMAGE:VERSION} -r {Git_Repo_URL} -t {Build_Type} -v {ContainerPath} | ||
``` | ||
|
||
- Example: | ||
```bash | ||
docker run -v "F:\test_compile":"/home" jasonyangee/stm32-builder:ubuntu-latest -r https://github.com/jasonyang-ee/STM32-CMAKE-TEMPLATE.git | ||
docker run -v "F:\test_compile":"/home" jasonyangee/stm32-builder:ubuntu-latest -r https://github.com/jasonyang-ee/STM32-CMAKE-TEMPLATE.git -t MinSizeRel | ||
docker run -v "F:\test_compile":"/custom" jasonyangee/stm32-builder:ubuntu-latest -r https://github.com/jasonyang-ee/STM32-CMAKE-TEMPLATE.git -t Debug -v /custom | ||
``` | ||
|
||
## Output | ||
|
||
Binary Output `.bin` `.elf` `.hex` `.map` are located in `HostPath/build`. |