Skip to content

Commit fe62d94

Browse files
authored
Merge pull request #625 from arduino/benjamindannegard/update-custom-container-tutorial
benjamindannegard/updated-custom-container-tutorial-x8
2 parents 1adcaa3 + 7075bef commit fe62d94

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

content/hardware/04.pro/boards/portenta-x8/tutorials/custom-container/content.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,19 +132,19 @@ Once this is done, we will push our folder to a repository within the Factory. L
132132

133133
![Container.git page](assets/custom-git.png)
134134

135-
In order to pull or push repositories you have to generate an API key. This can be done by going to the user settings on the Factory page. First click on the user drop-down menu, then go into the tokens page and follow the steps of creating a new API key. This token will be used as the password for all git operations while the username can be anything, except an empty string.
135+
In order to pull or push repositories you have to generate an API key. This can be done by going to the user settings on the Factory page. First click on the user drop-down menu, then go into the tokens page and follow the steps of creating a new API key. When creating the API key make sure you select the "Use for source code access" option and the correct factory that you want to use the key for. This token will be used as the password for all git operations while the username can be anything, except an empty string.
136136

137137
![User settings on your Factory page](assets/factory-user-settings.png)
138138

139-
![Token section in user settings](assets/token-page.png)
139+
![Token creation section in Foundries.io](assets/token-creation-page.png)
140140

141-
Use the following command in a Linux shell, like ADB which the previously mentioned tutorial showed how to set up. To get the repository on your board, replace "YOUR_FACTORY" with the name of your Factory. The "-b" parameter specifies a branch to checkout after cloning the repository. Running this command will get the container repository, where we will put our folder.
141+
Use the following command in git on your machine. To get the repository on your machine, replace "YOUR_FACTORY" with the name of your Factory. The "-b" parameter specifies a branch to checkout after cloning the repository. Running this command will get the container repository, where we will put our folder.
142142

143143
```
144144
git clone https://source.foundries.io/factories/YOUR_FACTORY/containers.git -b devel
145145
```
146146

147-
Put the "x8-custom-test" folder in the repository. If you push the commit to "containers.git" a new target will automatically build on your FoundriesFactory, you can inspect it in the "Targets" page.
147+
Put the "x8-custom-test" folder in the repository and push it with git. When you have put the folder into the git folder, use `git status` to see the changed files in the folder, it will show the unadded changes in red, then use `git add` to add the changes you want to your git commit. Then use `git commit` and `git push` to finally push the changes to the repo. If you push the commit to "containers.git" a new target will automatically build on your FoundriesFactory, you can inspect it in the "Targets" page.
148148

149149
### Building and Running the Container
150150

0 commit comments

Comments
 (0)