2018-09-26 10:40:05 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
|
|
|
|
# push manifest
|
|
|
|
if [[ ! -d $HOME/.docker ]]
|
|
|
|
then
|
|
|
|
mkdir $HOME/.docker
|
|
|
|
fi
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2021-03-24 08:02:18 +01:00
|
|
|
if test $(uname) = "Linux"
|
|
|
|
then
|
|
|
|
sed -i '/experimental/d' $HOME/.docker/config.json
|
|
|
|
sed -i '1a"experimental": "enabled",' $HOME/.docker/config.json
|
|
|
|
fi
|
|
|
|
|
2018-09-26 10:40:05 +02:00
|
|
|
docker manifest create codeskyblue/gohttpserver \
|
|
|
|
codeskyblue/gohttpserver:latest \
|
|
|
|
codeskyblue/gohttpserver:armhf
|
2018-09-26 11:06:12 +02:00
|
|
|
docker manifest annotate codeskyblue/gohttpserver \
|
|
|
|
codeskyblue/gohttpserver:latest --os linux --arch amd64
|
|
|
|
docker manifest annotate codeskyblue/gohttpserver \
|
2018-09-26 11:48:51 +02:00
|
|
|
codeskyblue/gohttpserver:armhf --os linux --arch arm --variant v7
|
2018-09-26 10:40:05 +02:00
|
|
|
docker manifest push codeskyblue/gohttpserver
|
|
|
|
|
|
|
|
# check again
|
2021-03-24 08:02:18 +01:00
|
|
|
docker run mplatform/mquery codeskyblue/gohttpserver
|