Skip to content

Commit

Permalink
- Adding support for aarch images
Browse files Browse the repository at this point in the history
  - Adding support for aarch64 images
  - Changing the default repo to ghcr (test registry)
  - version bump
rnishtala-sumo committed Oct 12, 2022
1 parent dfbe35d commit 762581f
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -37,16 +37,16 @@ In this step you create, on the Sumo service, an HTTP endpoint to receive your D

On each Docker host with containers from which you want to collect container logs, install the plugin by running the following command in a terminal window:
```bash
$ docker plugin install sumologic/docker-logging-driver:1.0.5 --alias sumologic --grant-all-permissions
$ docker plugin install sumologic/docker-logging-driver:1.0.6 --alias sumologic --grant-all-permissions
```
This defaults to amd64; for arm64, please pull the corresponding version:
```bash
$ docker plugin install sumologic/docker-logging-driver:1.0.5-arm64 --alias sumologic --grant-all-permissions
$ docker plugin install sumologic/docker-logging-driver:1.0.6-aarch64 --alias sumologic --grant-all-permissions
```

**NOTE** The `--alias` is required for using it on AWS ECS

**NOTE** As of version `1.0.5`, the plugin image is only available from the repo `sumologic/docker-logging-driver`. Prior to `1.0.5`, the plugin was also available at `store/sumologic/docker-logging-driver`. However, with the deprecation of the Docker Publisher Center, the `store` repo has been deprecated as well.
**NOTE** As of version `1.0.6`, the plugin image is only available from the repo `sumologic/docker-logging-driver`. Prior to `1.0.6`, the plugin was also available at `store/sumologic/docker-logging-driver`. However, with the deprecation of the Docker Publisher Center, the `store` repo has been deprecated as well.

To verify that the plugin is installed and enabled, run the following command:

8 changes: 4 additions & 4 deletions plugin_build.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

VERSION="1.0.5"
VERSION="1.0.6"

build_plugin () {
ACTION=$1
@@ -22,12 +22,12 @@ build_plugin () {
docker rm -vf "$id"

cp config.json ./sumoplugin/
docker plugin create sumologic/docker-logging-driver:${VERSION_ARCH} ./sumoplugin/
docker plugin create ghcr.io/sumologic/docker-logging-driver:${VERSION_ARCH} ./sumoplugin/

if [[ "$ACTION" == "install" ]]; then
docker plugin enable sumologic/docker-logging-driver:${VERSION_ARCH}
docker plugin enable ghcr.io/sumologic/docker-logging-driver:${VERSION_ARCH}
elif [[ "$ACTION" == "push" ]]; then
docker plugin push sumologic/docker-logging-driver:${VERSION_ARCH}
docker plugin push ghcr.io/sumologic/docker-logging-driver:${VERSION_ARCH}
else
echo "Invalid action ${ACTION}, must be 'install' or 'push'."
fi
2 changes: 1 addition & 1 deletion plugin_install.sh
Original file line number Diff line number Diff line change
@@ -2,6 +2,6 @@

source ./plugin_build.sh

for arch in "" "amd64" "arm64"; do
for arch in "" "amd64" "arm64" "aarch64"; do
build_plugin "install" $arch
done
2 changes: 1 addition & 1 deletion plugin_package.sh
Original file line number Diff line number Diff line change
@@ -2,6 +2,6 @@

source ./plugin_build.sh

for arch in "" "amd64" "arm64"; do
for arch in "" "amd64" "arm64" "aarch64"; do
build_plugin "push" $arch
done

0 comments on commit 762581f

Please sign in to comment.