mirror of
https://github.com/jbowdre/phpipam-agent-docker.git
synced 2024-11-14 03:52:20 +00:00
remove buildx script
This commit is contained in:
parent
0e3563f984
commit
614d0acdb8
1 changed files with 0 additions and 22 deletions
22
buildx.sh
22
buildx.sh
|
@ -1,22 +0,0 @@
|
|||
#!/bin/sh
|
||||
DOCKER_REPO='mc303/phpipam-agent:latest'
|
||||
BUIILDX_REPO='buildphpipamagent'
|
||||
|
||||
# env DOCKER_BUILDKIT=1 docker build --no-cache -t $DOCKER_REPO .
|
||||
|
||||
#create platform buildx env
|
||||
echo "docker run --rm --privileged multiarch/qemu-user-static --reset -p yes"
|
||||
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||
|
||||
echo "docker buildx create --platform=linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 --name $BUIILDX_REPO"
|
||||
docker buildx create --platform=linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 --name $BUIILDX_REPO
|
||||
echo "docker buildx use $BUIILDX_REPO"
|
||||
docker buildx use $BUIILDX_REPO
|
||||
|
||||
# build platforms
|
||||
echo "docker buildx build --platform=linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 -t $DOCKER_REPO --push ."
|
||||
docker buildx build --platform=linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 -t $DOCKER_REPO --push .
|
||||
|
||||
# remove build env
|
||||
echo "docker buildx rm $BUIILDX_REPO"
|
||||
docker buildx rm $BUIILDX_REPO
|
Loading…
Reference in a new issue