-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
54 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
**/node_modules | ||
**/node_modules | ||
.history/ | ||
doc/ | ||
docker/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
**/node_modules | ||
*.bak | ||
.history | ||
.history | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
ARG node_version="15" | ||
ARG node_variant="-alpine" | ||
ARG version | ||
ARG build_version | ||
ARG build_id | ||
ARG build_date | ||
|
||
FROM node:${node_version}${node_variant} as client-builder | ||
|
||
|
@@ -13,16 +14,20 @@ RUN cd /app/client \ | |
|
||
FROM node:${node_version}${node_variant} | ||
|
||
ARG version | ||
ARG build_version | ||
ARG build_id | ||
ARG build_date | ||
|
||
LABEL app-name="Our Shopping List" | ||
LABEL maintainer="Anaël Ollier <[email protected]>" | ||
LABEL org.label-schema.name="Our Shopping List" | ||
LABEL org.label-schema.vcs-url="https://github.com/nanawel/our-shopping-list" | ||
LABEL org.label-schema.vendor="Anaël Ollier <[email protected]>" | ||
LABEL org.label-schema.version="${build_version}#${build_id}" | ||
LABEL org.label-schema.build-date="${build_date}" | ||
|
||
ENV APP_VERSION=${version} | ||
ENV APP_VERSION=${build_version} | ||
ENV APP_BUILD_ID=${build_id} | ||
|
||
COPY ./ /app | ||
COPY ./server/ /app | ||
COPY --from=client-builder /app/client /app/client | ||
|
||
WORKDIR /app | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ services: | |
- mongodb | ||
|
||
mongodb: | ||
image: mongo:4-bionic | ||
image: mongo:4 | ||
volumes: | ||
- dbdata:/data/db | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ services: | |
build: | ||
context: './' | ||
args: | ||
version: 'dev' | ||
build_version: 'dev' | ||
build_id: '(unknown build)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
# Docker Hub build script | ||
|
||
set -x | ||
|
||
build_version="${DOCKER_TAG:-dev}" | ||
build_id="${SOURCE_COMMIT:0:8}" | ||
build_date="$(date -Is)" | ||
|
||
docker build -t $IMAGE_NAME \ | ||
--build-arg build_version="${build_version}" \ | ||
--build-arg build_id="${build_id}" \ | ||
--build-arg build_date="${build_date}" \ | ||
. |
File renamed without changes.
File renamed without changes.
File renamed without changes.