-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from mountaindude/master
5.5.0 RC1
- Loading branch information
Showing
8 changed files
with
229 additions
and
51 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
File renamed without changes.
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,27 @@ | ||
FROM node:12-stretch | ||
|
||
# Add metadata about the image | ||
LABEL maintainer="Göran Sander mountaindude@ptarmiganlabs.com" | ||
LABEL description="Real-time operational metrics for Qlik Sense." | ||
|
||
# Create app dir inside container | ||
WORKDIR /nodeapp | ||
|
||
# Install app dependencies separately (creating a separate layer for node_modules, effectively caching them between image rebuilds) | ||
COPY src/package.json . | ||
RUN npm install | ||
|
||
# Copy app's source files | ||
COPY src/. . | ||
|
||
# Create and use non-root user | ||
RUN groupadd -r nodejs \ | ||
&& useradd -m -r -g nodejs nodejs | ||
|
||
USER nodejs | ||
|
||
# Set up Docker healthcheck | ||
HEALTHCHECK --interval=12s --timeout=12s --start-period=30s CMD ["node", "docker-healthcheck.js"] | ||
|
||
CMD ["node", "butler-sos.js"] | ||
|
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,27 @@ | ||
FROM node:12-stretch | ||
|
||
# Add metadata about the image | ||
LABEL maintainer="Göran Sander mountaindude@ptarmiganlabs.com" | ||
LABEL description="Real-time operational metrics for Qlik Sense." | ||
|
||
# Create app dir inside container | ||
WORKDIR /nodeapp | ||
|
||
# Install app dependencies separately (creating a separate layer for node_modules, effectively caching them between image rebuilds) | ||
COPY src/package.json . | ||
RUN npm install | ||
|
||
# Copy app's source files | ||
COPY src/. . | ||
|
||
# Create and use non-root user | ||
RUN groupadd -r nodejs \ | ||
&& useradd -m -r -g nodejs nodejs | ||
|
||
USER nodejs | ||
|
||
# Set up Docker healthcheck | ||
HEALTHCHECK --interval=12s --timeout=12s --start-period=30s CMD ["node", "docker-healthcheck.js"] | ||
|
||
CMD ["node", "butler-sos.js"] | ||
|
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,25 @@ | ||
image: ptarmiganlabs/butler-sos:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} | ||
{{#if build.tags}} | ||
tags: | ||
{{#each build.tags}} | ||
- {{this}} | ||
{{/each}} | ||
{{/if}} | ||
manifests: | ||
- | ||
image: ptarmiganlabs/butler-sos:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 | ||
platform: | ||
architecture: amd64 | ||
os: linux | ||
- | ||
image: ptarmiganlabs/butler-sos:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64 | ||
platform: | ||
architecture: arm64 | ||
os: linux | ||
variant: v8 | ||
- | ||
image: ptarmiganlabs/butler-sos:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm | ||
platform: | ||
architecture: arm | ||
os: linux | ||
variant: v7 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.