docker buildx

pull/744/head
hunterlong 2020-07-13 15:38:45 -07:00
parent 2be9564fff
commit 0d6c4a89a7
5 changed files with 90 additions and 864 deletions

View File

@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM statping/statping:base AS base
FROM statping/statping:base AS base
ARG BUILDPLATFORM
# Statping main Docker image that contains all required libraries
FROM --platform=$BUILDPLATFORM alpine:latest

View File

@ -1,4 +1,3 @@
ARG NODEIMAGE=node:10.17.0-alpine
FROM node:10.17.0-alpine AS frontend
LABEL maintainer="Hunter Long (https://github.com/hunterlong)"
ARG BUILDPLATFORM

View File

@ -335,19 +335,19 @@ certs:
buildx-master: buildx-base
docker buildx create --name statping-latest
docker buildx inspect --builder statping-latest --bootstrap
docker buildx build --builder statping-latest --pull --push --platform linux/amd64,linux/arm64,linux/arm/v7 -f Dockerfile -t statping/statping:latest -t statping/statping:v${VERSION} --build-arg=VERSION=${VERSION} .
docker buildx build --builder statping-latest --pull --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 -f Dockerfile -t statping/statping:latest -t statping/statping:v${VERSION} --build-arg=VERSION=${VERSION} .
docker buildx rm statping-latest
buildx-dev: buildx-base
docker buildx create --name statping-dev
docker buildx inspect --builder statping-dev --bootstrap
docker buildx build --builder statping-dev --pull --push --platform linux/amd64,linux/arm64,linux/arm/v7 -f Dockerfile -t statping/statping:dev --build-arg=VERSION=${VERSION} .
docker buildx build --builder statping-dev --pull --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 -f Dockerfile -t statping/statping:dev --build-arg=VERSION=${VERSION} .
docker buildx rm statping-dev
buildx-base: multiarch
docker buildx create --name statping-base
docker buildx inspect --builder statping-base --bootstrap
docker buildx build --builder statping-base --pull --push --platform linux/amd64,linux/arm64,linux/arm/v7 -f Dockerfile.base -t statping/statping:base --build-arg=VERSION=${VERSION} .
docker buildx build --builder statping-base --pull --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 -f Dockerfile.base -t statping/statping:base --build-arg=VERSION=${VERSION} .
docker buildx rm statping-base
multiarch:

View File

@ -30,6 +30,7 @@
"date-fns": "^2.9.0",
"js-beautify": "^1.11.0",
"querystring": "^0.2.0",
"sass": "^1.26.10",
"vue": "^2.6.11",
"vue-apexcharts": "^1.5.2",
"vue-clipboard2": "^0.3.1",
@ -83,7 +84,6 @@
"mini-css-extract-plugin": "~0.5",
"mocha": "^7.0.1",
"mochapack": "^1.1.13",
"node-sass": "^4.13.1",
"optimize-css-assets-webpack-plugin": "~5.0",
"sass-loader": "^8.0.2",
"start-server-and-test": "^1.10.11",

File diff suppressed because it is too large Load Diff