mirror of
https://github.com/hamburghammer/gohttpserver.git
synced 2024-12-22 06:47:39 +01:00
28 lines
717 B
Bash
28 lines
717 B
Bash
#!/bin/bash
|
|
#
|
|
|
|
# push manifest
|
|
if [[ ! -d $HOME/.docker ]]
|
|
then
|
|
mkdir $HOME/.docker
|
|
fi
|
|
|
|
set -ex
|
|
|
|
if test $(uname) = "Linux"
|
|
then
|
|
sed -i '/experimental/d' $HOME/.docker/config.json
|
|
sed -i '1a"experimental": "enabled",' $HOME/.docker/config.json
|
|
fi
|
|
|
|
docker manifest create codeskyblue/gohttpserver \
|
|
codeskyblue/gohttpserver:latest \
|
|
codeskyblue/gohttpserver:armhf
|
|
docker manifest annotate codeskyblue/gohttpserver \
|
|
codeskyblue/gohttpserver:latest --os linux --arch amd64
|
|
docker manifest annotate codeskyblue/gohttpserver \
|
|
codeskyblue/gohttpserver:armhf --os linux --arch arm --variant v7
|
|
docker manifest push codeskyblue/gohttpserver
|
|
|
|
# check again
|
|
docker run mplatform/mquery codeskyblue/gohttpserver
|