Skip to content

Commit

Permalink
point container images to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
tsopokis committed Apr 3, 2024
1 parent ba8724a commit 8502ed1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.vscode/
.vscode/
dist/
build/
11 changes: 5 additions & 6 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ If this fails, please follow the installation procedure for your OS.

### Corteca Toolchains

Until we have the images uploaded to a container registry, we need to import them from files. You need to have the Corteca Toolchain image files [`corteca-toolchain-armv7-23.12.1.tar.bz2` and `corteca-toolchain-armv8-23.12.1.tar.bz2`]. For our examples, we will use `corteca-toolchain-armv8` version `23.12.1`.
Currently there are two flavors of the Corteca Toolchain depending on the target CPU architecure

Import the relative toolchain into your local docker instance
- `ghcr.io/nokia/corteca-toolchain-armv7:23.12.1`
- `ghcr.io/nokia/corteca-toolchain-armv8:23.12.1`

```shell
docker load --input corteca-toolchain-armv8-23.12.1.tar.bz2
```
For our examples, we will use `corteca-toolchain-armv8` version `23.12.1`.

## Toolchain functionality

Expand Down Expand Up @@ -75,7 +74,7 @@ docker run --rm -it -u "$(id -u):$(id -g)" \
-v ./:/app \
-v ./custom.config:/buildroot/.config \
-e REBUILD_BUILDROOT="yes" \
corteca-toolchain-armv8:23.12.1
ghcr.io/nokia/corteca-toolchain-armv8:23.12.1
```

This would take longer, since buildroot will be compiled first and then your application.
Expand Down
4 changes: 2 additions & 2 deletions sample-application/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ If everything is in place you can use the corteca toolchain images to build your
### Generating Container Artifact

```shell
docker run -u "$(id -u):$(id -g)" -v ./:/app corteca-toolchain-armv8:23.12.1
docker run -u "$(id -u):$(id -g)" -v ./:/app ghcr.io/nokia/corteca-toolchain-armv8:23.12.1
```

Check `/app/build/` directory for all the generated artifacts and `/app/dist/` for the container packages.
Expand All @@ -205,7 +205,7 @@ Check `/app/build/` directory for all the generated artifacts and `/app/dist/` f
All artifacts generated under `/app/dist/` and `/app/build/` are ignored by git, but you can always clean them up by running the following command

```shell
docker run -u "$(id -u):$(id -g)" -w /app -v ./:/app corteca-toolchain-armv8:23.12.1 nokia_toolchain distclean"
docker run -u "$(id -u):$(id -g)" -w /app -v ./:/app ghcr.io/nokia/corteca-toolchain-armv8:23.12.1
```

## VSCode DevContainers
Expand Down

0 comments on commit 8502ed1

Please sign in to comment.