Setup for automated docker builds.

This commit is contained in:
Gareth Latty
2020-05-23 21:10:22 +01:00
parent 19ee41d04b
commit 3459ec5527
6 changed files with 18 additions and 6 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ ARG VERSION=dev
EXPOSE 8080
LABEL org.label-schema.name="manydecks/client"
LABEL org.label-schema.name="massivedecks/manydecks-client"
LABEL org.label-schema.description="The web client for Many Decks, a deck source for Massive Decks."
LABEL org.label-schema.url="https://github.com/Lattyware/manydecks"
LABEL org.label-schema.vcs-url="https://github.com/Lattyware/manydecks"
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
docker build \
--build-arg VCS_REF="`git rev-parse HEAD`" \
--build-arg BUILD_DATE="`date --rfc-3339=seconds`" \
--build-arg VERSION="`git describe --tags`" \
-t $IMAGE_NAME .
+1 -2
View File
@@ -4,8 +4,7 @@
"description": "The web client to make and share custom decks for Massive Decks.",
"scripts": {
"dev": "npx webpack-dev-server --mode=development --port 8082",
"build": "npx webpack --mode=production",
"build-image": "docker build . -t \"manydecks/client\" --build-arg BUILD_DATE=\"$(date --rfc-3339=seconds)\""
"build": "npx webpack --mode=production"
},
"repository": {
"type": "git",
+1 -1
View File
@@ -18,7 +18,7 @@ ARG VERSION=dev
ENV MD_VERSION $VERSION
LABEL org.label-schema.name="manydecks/server"
LABEL org.label-schema.name="massivedecks/manydecks-server"
LABEL org.label-schema.description="The web server for Many Decks, a deck source for Massive Decks."
LABEL org.label-schema.url="https://github.com/Lattyware/manydecks"
LABEL org.label-schema.vcs-url="https://github.com/Lattyware/manydecks"
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
docker build \
--build-arg VCS_REF="`git rev-parse HEAD`" \
--build-arg BUILD_DATE="`date --rfc-3339=seconds`" \
--build-arg VERSION="`git describe --tags`" \
-t $IMAGE_NAME .
+1 -2
View File
@@ -16,8 +16,7 @@
"prestart": "npm run build",
"start": "node --es-module-specifier-resolution=node dist/index.js",
"dev": "nodemon",
"debug": "nodemon --inspect",
"build-image": "docker build . -t \"manydecks/server\" --build-arg BUILD_DATE=\"$(date --rfc-3339=seconds)\""
"debug": "nodemon --inspect"
},
"dependencies": {
"express": "^4.17.1",