Compare commits

..

126 Commits

Author SHA1 Message Date
61ef4951f6 5.0.73 2021-11-12 18:24:58 +01:00
a24403304f fix(core): update 2021-11-12 18:24:58 +01:00
4435fa2567 5.0.72 2021-11-12 18:19:15 +01:00
1155205cf7 fix(core): update 2021-11-12 18:19:15 +01:00
8684837a7b 5.0.71 2021-11-07 19:01:54 +01:00
87610140b6 fix(core): update 2021-11-07 19:01:54 +01:00
512955eb0a 5.0.70 2021-11-07 18:44:28 +01:00
a1dda00d41 fix(core): update 2021-11-07 18:44:28 +01:00
0846f649d4 5.0.69 2021-11-07 16:25:14 +01:00
57b66c8172 fix(core): update 2021-11-07 16:25:13 +01:00
939c168712 5.0.68 2021-11-07 16:24:05 +01:00
759754937c fix(core): update 2021-11-07 16:24:04 +01:00
74b25307de 5.0.67 2021-10-22 19:45:49 +02:00
22af5432db fix(core): update 2021-10-22 19:45:49 +02:00
900c126a13 5.0.66 2021-10-22 19:40:16 +02:00
92fd3c36cf fix(core): update 2021-10-22 19:40:16 +02:00
59db72f452 5.0.65 2021-10-22 19:34:40 +02:00
87b1c58e0f fix(core): update 2021-10-22 19:34:39 +02:00
f751354a83 5.0.64 2021-10-22 19:31:15 +02:00
4586a2f34e fix(core): update 2021-10-22 19:31:15 +02:00
ffd299114a 5.0.63 2021-10-19 17:02:28 +02:00
df2cc6ccee fix(core): update 2021-10-19 17:02:27 +02:00
847ff6aded 5.0.62 2021-05-05 15:13:50 +00:00
dd40629f09 fix(core): update 2021-05-05 15:13:50 +00:00
9f2d8ca700 5.0.61 2021-05-05 15:07:22 +00:00
5b6e13f3fd fix(core): update 2021-05-05 15:07:21 +00:00
5f02b4707c 5.0.60 2021-05-05 14:56:39 +00:00
a6c8f5c9fc fix(core): update 2021-05-05 14:56:38 +00:00
934b1b7c2f 5.0.59 2021-05-05 13:48:19 +00:00
cedebef214 fix(core): update 2021-05-05 13:48:18 +00:00
96d8d43018 5.0.58 2021-02-05 21:22:26 +00:00
dcd581929b fix(core): update 2021-02-05 21:22:25 +00:00
d2629cd453 5.0.57 2020-05-27 23:10:49 +00:00
b9070b3a35 fix(core): update 2020-05-27 23:10:48 +00:00
25849cd990 5.0.56 2019-11-26 17:51:30 +00:00
8586b68bf7 5.0.55 2019-11-19 18:02:34 +00:00
9f7b61feeb fix(snyk): now on latest version again 2019-11-19 18:02:33 +00:00
ee58a43ed4 5.0.54 2019-11-19 16:07:55 +00:00
f1dc84f8a8 fix(core): update 2019-11-19 16:07:54 +00:00
d5fa32786c 5.0.53 2019-11-19 16:03:16 +00:00
cd4b629f07 fix(core): update 2019-11-19 16:03:16 +00:00
eca7a18409 5.0.52 2019-10-04 15:24:18 +02:00
1e620394ac 5.0.51 2019-10-02 23:56:42 +02:00
39b3d5df91 5.0.50 2019-10-02 23:40:21 +02:00
2b0cceb822 5.0.49 2019-10-02 12:09:42 +02:00
e25fb766d0 fix(core): update 2019-10-02 12:09:42 +02:00
83f47a5d33 5.0.48 2019-10-02 12:02:42 +02:00
c9b0009cd3 5.0.47 2019-10-02 11:40:10 +02:00
3e58b1c7c6 5.0.46 2019-09-19 19:34:28 +02:00
08515255bb fix(core): update 2019-09-19 19:34:27 +02:00
4cfd049e0c 5.0.45 2019-09-19 17:39:42 +02:00
0472feeaeb fix(core): update 2019-09-19 17:39:42 +02:00
d8b1f5cf83 5.0.44 2019-09-19 16:13:08 +02:00
bc05ac5ce8 fix(core): update 2019-09-19 16:13:08 +02:00
5e58389bbe 5.0.43 2019-09-19 16:11:44 +02:00
2cef721039 fix(core): update 2019-09-19 16:11:44 +02:00
1e5677e7b3 5.0.42 2019-09-01 15:15:56 +02:00
a16aa527e0 5.0.41 2019-09-01 13:59:24 +02:00
8a3ebe4edd 5.0.40 2019-08-31 16:32:16 +02:00
3754370601 fix(core): update 2019-08-31 16:32:16 +02:00
98e9bb7ccd 5.0.39 2019-08-31 16:30:43 +02:00
d15e063c92 fix(core): update 2019-08-31 16:30:43 +02:00
be3ae65d72 5.0.38 2019-08-31 16:21:57 +02:00
b75e5ef366 fix(core): update 2019-08-31 16:21:57 +02:00
fd35505647 5.0.37 2019-08-31 16:20:57 +02:00
c77d2bf370 fix(core): update 2019-08-31 16:20:56 +02:00
28439a4b57 5.0.36 2019-08-31 14:24:53 +02:00
7d68fdf34e 5.0.35 2019-08-27 19:44:57 +02:00
8a0beb0748 fix(core): update 2019-08-27 19:44:57 +02:00
54440f3d87 5.0.34 2019-08-27 19:42:48 +02:00
c3690d0ad0 fix(core): update 2019-08-27 19:42:47 +02:00
469b9cda79 5.0.33 2019-08-23 17:25:47 +02:00
274939af46 fix(core): update 2019-08-23 17:25:47 +02:00
edd645a222 5.0.32 2019-08-23 17:10:07 +02:00
bf3972cf55 fix(core): update 2019-08-23 17:10:07 +02:00
3b581d1e11 5.0.31 2019-07-18 17:18:41 +02:00
d4f83ecdda 5.0.30 2019-07-17 18:01:57 +02:00
b369197763 fix(core): update 2019-07-17 18:01:57 +02:00
52cde0c4d9 5.0.29 2019-07-17 17:19:43 +02:00
e118fab8c6 fix(core): update 2019-07-17 17:19:43 +02:00
b6fe7e1b36 5.0.28 2019-06-19 13:26:45 +02:00
9b264755ab fix(core): update 2019-06-19 13:26:44 +02:00
11d6f9a1ec 5.0.27 2019-06-19 12:03:19 +02:00
fecbcdde64 fix(core): update 2019-06-19 12:03:19 +02:00
9e1d21931e 5.0.26 2019-06-19 11:15:19 +02:00
81ef1f1fd9 fix(core): update 2019-06-19 11:15:19 +02:00
9fa5bee1ee 5.0.25 2019-06-19 11:04:44 +02:00
36099654b4 fix(core): update 2019-06-19 11:04:44 +02:00
99bb05ee51 5.0.24 2019-06-18 17:26:52 +02:00
a020d12a2e fix(core): update 2019-06-18 17:26:51 +02:00
f393560c78 5.0.23 2019-06-18 17:25:34 +02:00
258de44568 fix(core): update 2019-06-18 17:25:34 +02:00
02b846642e 5.0.22 2019-06-10 11:37:24 +02:00
7f05f5da84 fix(core): update 2019-06-10 11:37:24 +02:00
a818bf8aeb 5.0.21 2019-06-10 11:35:56 +02:00
d182b93d65 fix(core): update 2019-06-10 11:35:56 +02:00
875da4bc76 5.0.20 2019-06-10 11:31:48 +02:00
3b2729f9bf fix(core): update 2019-06-10 11:31:47 +02:00
d309093c77 5.0.19 2019-06-10 11:05:43 +02:00
78544b9c7a fix(core): update 2019-06-10 11:05:42 +02:00
0b80f1b2ac 5.0.18 2019-06-10 10:58:01 +02:00
094fa46f80 fix(core): update 2019-06-10 10:58:01 +02:00
7c8e796611 5.0.17 2019-06-10 10:56:41 +02:00
30188f8aeb 5.0.16 2019-06-10 10:51:20 +02:00
f829160720 fix(core): update 2019-06-10 10:51:19 +02:00
755ddd2d77 5.0.15 2019-06-10 10:43:23 +02:00
9fbcb625d3 fix(core): update 2019-06-10 10:43:22 +02:00
5ef828500b 5.0.14 2019-06-08 21:36:23 +02:00
a763bc61a0 fix(core): update 2019-06-08 21:36:23 +02:00
860d5c722e 5.0.13 2019-06-03 13:15:48 +02:00
b370777bd4 fix(core): update 2019-06-03 13:15:48 +02:00
4f280ebd13 5.0.12 2019-05-29 20:04:06 +02:00
4e10028f65 fix(core): update 2019-05-29 20:04:06 +02:00
bb44e89699 5.0.11 2019-05-08 23:17:11 +02:00
2ad5215865 fix(core): update 2019-05-08 23:17:11 +02:00
e60bf4dae8 5.0.10 2019-05-08 22:27:59 +02:00
d44f8d7959 fix(core): update 2019-05-08 22:27:59 +02:00
33cad48fed 5.0.9 2018-12-24 01:53:51 +01:00
79e0128d30 fix(core): update 2018-12-24 01:53:51 +01:00
24531b63b0 5.0.8 2018-12-01 15:36:33 +01:00
a7d2b34f8b 5.0.7 2018-11-29 11:06:53 +01:00
1089942cc3 fix(core): update 2018-11-29 11:06:53 +01:00
f443d220c6 5.0.6 2018-11-29 10:57:30 +01:00
52866e8aa5 fix(tests): remove npmts from tests 2018-11-29 10:57:30 +01:00
50cb638732 5.0.5 2018-11-29 10:49:50 +01:00
67470d22f4 fix(core): update 2018-11-29 10:49:50 +01:00
22 changed files with 247 additions and 138 deletions

21
.gitignore vendored
View File

@ -1 +1,22 @@
.nogit/
# artifacts
coverage/
public/
pages/
# installs
node_modules/ node_modules/
# caches
.yarn/
.cache/
.rpt2_cache
# builds
dist/
dist_web/
dist_serve/
dist_ts_web/
# custom

View File

@ -1,76 +1,51 @@
# gitzone docker # gitzone ci_docker
image: hosttoday/ht-docker-dbase:npmci image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
services:
- docker:dind
stages: cache:
- buildAndTest paths:
- triggerPagesVerify - .npmci-cache/
key: "$CI_BUILD_STAGE"
before_script: before_script:
- npm install -g @shipzone/npmci - npmci npm prepare
- npmci docker login
buildTest: stages:
stage: buildAndTest - test
- release
- trigger
- pages
testStable:
stage: test
script: script:
- npmci docker build - npmci node install stable
- npmci docker test - npmci npm install
except: - npmci npm test
- tags coverage: /\d+.?\d+?\%\s*coverage/
- triggers
tags: tags:
- lossless - docker
- priv
buildTestRelase: release:
stage: buildAndTest image: registry.gitlab.com/hosttoday/ht-docker-dbase:npmci
services:
- docker:stable-dind
stage: release
script: script:
- npmci node install lts
- npmci docker login
- npmci docker build - npmci docker build
- npmci docker test - npmci docker test
- npmci docker push registry.gitlab.com test
- npmci docker push registry.gitlab.com - npmci docker push registry.gitlab.com
- npmci docker push docker.io
only: only:
- tags - tags
- triggers
tags: tags:
- lossless - docker
- priv - priv
trigger: trigger:
stage: triggerPagesVerify stage: trigger
script: script:
- npmci trigger - npmci trigger
only:
- tags
- triggers
tags:
- lossless
- priv
pages:
stage: triggerPagesVerify
before_script:
- 'npmci -v'
image: hosttoday/ht-docker-node:npmci
script:
# - npmci command npm install -g npmpage
# - npmci command npmpage
- echo "nothing here yet until @gitzone/npmpage is ready!"
only:
- tags
tags:
- docker
artifacts:
expire_in: 1 week
paths:
- public
verify:
stage: triggerPagesVerify
script:
- npmci docker pull registry.gitlab.com test
only: only:
- tags - tags
tags: tags:

View File

@ -1,15 +1,16 @@
FROM ubuntu:xenial FROM ubuntu:bionic
LABEL author="Lossless GmbH <hello@lossless.com>" LABEL author="Lossless GmbH <hello@lossless.com>"
WORKDIR /workspace WORKDIR /workspace
# important environment variables # important environment variables
ENV NODE_VERSION_LTS="10.13.0" NODE_VERSION_STABLE="11.2.0" NVM_DIR="/usr/local/nvm" ENV NODE_VERSION_LTS="14.18.1" NODE_VERSION_STABLE="16.11.1" NVM_DIR="/usr/local/nvm"
# Set debconf to run non-interactively and install packages # Set debconf to run non-interactively and install packages
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
&& apt-get update \ && apt-get update \
&& apt-get upgrade --no-install-recommends -y \ && apt-get upgrade --no-install-recommends -y \
&& apt-get install -y -q --no-install-recommends \ && apt-get install -y -q --no-install-recommends \
# base libs
software-properties-common \ software-properties-common \
apt-transport-https \ apt-transport-https \
build-essential \ build-essential \
@ -21,10 +22,58 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
make \ make \
openssl \ openssl \
python \ python \
python3 \
rsync \ rsync \
ssh \ ssh \
wget \ wget \
&& apt-get update \ # puppeteer
gconf-service \
libasound2 \
libatk1.0-0 \
libc6 \
libcairo2 \
libcups2 \
libdbus-1-3 \
libexpat1 \
libfontconfig1 \
libgcc1 \
libgconf-2-4 \
libgdk-pixbuf2.0-0 \
libglib2.0-0 \
libgtk-3-0 \
libnspr4 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libstdc++6 \
libx11-6 \
libx11-xcb1 \
libxcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxi6 \
libxrandr2 \
libxrender1 \
libxss1 \
libxtst6 \
ca-certificates \
fonts-liberation \
libappindicator1 \
libnss3 \
lsb-release \
xdg-utils \
# chrome
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& apt install -y -q --no-install-recommends ./google-chrome-stable_current_amd64.deb \
# mongodb
&& curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add - \
&& echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list \
&& apt-get install -y -q --no-install-recommends \
mongodb-org \
&& apt-get clean \ && apt-get clean \
&& rm -r /var/lib/apt/lists/* && rm -r /var/lib/apt/lists/*

10
Dockerfile_alpine Normal file
View File

@ -0,0 +1,10 @@
FROM node:14.15.4-alpine
LABEL author="Lossless GmbH <hello@lossless.com>"
RUN apk update && apk add bash libc6-compat alpine-sdk
ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
RUN python3 -m ensurepip
RUN pip3 install --no-cache --upgrade pip setuptools
ENV NODE_OPTIONS="--max_old_space_size=1000"

View File

@ -1,19 +0,0 @@
FROM hosttoday/ht-docker-node:stable
LABEL author="Lossless GmbH <hello@lossless.com>"
# See https://crbug.com/795759
RUN apt-get update && apt-get install -yq libgconf-2-4 \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*
# Install latest chrome dev package.
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
# installs, work.
RUN apt-get update && apt-get install -y wget --no-install-recommends \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y google-chrome-unstable \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /src/*.deb

12
Dockerfile_iot Normal file
View File

@ -0,0 +1,12 @@
FROM hosttoday/ht-docker-node:stable as stage1
LABEL author="Lossless GmbH <hello@lossless.com>"
RUN apt-get update && apt-get install -y --no-install-recommends qemu-user-static binfmt-support
# the following lines need to be run on a system that supports both architectures
# update-binfmts --enable qemu-arm \
# && update-binfmts --display qemu-arm \
# && mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc \
# && echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm-static:' > /proc/sys/fs/binfmt_misc/register
FROM arm32v7/node:lts-jessie as stage2
COPY --from=stage1 /usr/bin/qemu-arm-static /usr/bin/qemu-arm-static

View File

@ -6,6 +6,7 @@ RUN bash -c "source $NVM_DIR/nvm.sh \
&& nvm alias default $NODE_VERSION_LTS \ && nvm alias default $NODE_VERSION_LTS \
&& nvm use default \ && nvm use default \
&& npm config set unsafe-perm true \ && npm config set unsafe-perm true \
&& npm install -g agentkeepalive \
&& npm install -g npm" && npm install -g npm"
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_LTS/lib/node_modules ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_LTS/lib/node_modules

View File

@ -1,14 +0,0 @@
FROM hosttoday/ht-docker-node:npmci
LABEL author="Lossless GmbH <hello@lossless.com>"
# Install Java.
RUN \
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java8-installer && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer
# Define commonly used JAVA_HOME variable
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle

View File

@ -1,4 +0,0 @@
FROM hosttoday/ht-docker-node:stable
LABEL author="Lossless GmbH <hello@lossless.com>"
RUN npm install -g @shipzone/npmci @gitzone/npmdocker @gitzone/npmts ts-node

View File

@ -1,3 +0,0 @@
FROM node:11.3.0-alpine
LABEL author="Lossless GmbH <hello@lossless.com>"
RUN apk update && apk add bash

View File

@ -6,6 +6,7 @@ RUN bash -c "source $NVM_DIR/nvm.sh \
&& nvm alias default $NODE_VERSION_STABLE \ && nvm alias default $NODE_VERSION_STABLE \
&& nvm use default \ && nvm use default \
&& npm config set unsafe-perm true \ && npm config set unsafe-perm true \
&& npm install -g agentkeepalive \
&& npm install -g npm" && npm install -g npm"
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_STABLE/lib/node_modules ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_STABLE/lib/node_modules

4
Dockerfile_tsdocker Normal file
View File

@ -0,0 +1,4 @@
FROM hosttoday/ht-docker-node:lts
LABEL author="Lossless GmbH <hello@lossless.com>"
RUN npm install -g @shipzone/npmci @gitzone/tsdocker @gitzone/tsrun

View File

@ -1,6 +1,6 @@
The MIT License (MIT) The MIT License (MIT)
Copyright (c) 2016 Host.Today Copyright (c) 2016 Lossless GmbH
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

18
npmextra.json Normal file
View File

@ -0,0 +1,18 @@
{
"gitzone": {
"module": {
"githost": "gitlab.com",
"gitscope": "hosttoday",
"gitrepo": "ht-docker-node",
"shortDescription": "docker image with nodejs and shipzone.io support",
"npmPackagename": "@hosttoday/ht-docker-node",
"license": "MIT"
}
},
"npmci": {
"dockerRegistries": [
"docker.io",
"registry.gitlab.com"
]
}
}

5
package-lock.json generated Normal file
View File

@ -0,0 +1,5 @@
{
"name": "ht-docker-node",
"version": "5.0.73",
"lockfileVersion": 1
}

View File

@ -1,10 +1,11 @@
{ {
"name": "ht-docker-node", "name": "ht-docker-node",
"version": "5.0.4", "version": "5.0.73",
"description": "docker image with nodejs with shipzone.io support", "description": "docker image with nodejs and shipzone.io support",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"no npm test specified\"",
"build": "echo \"Not needed for now\""
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -15,5 +16,20 @@
"bugs": { "bugs": {
"url": "https://github.com/HostToday/ht-docker-node/issues" "url": "https://github.com/HostToday/ht-docker-node/issues"
}, },
"homepage": "https://github.com/HostToday/ht-docker-node#readme" "homepage": "https://github.com/HostToday/ht-docker-node#readme",
"private": true,
"files": [
"ts/*",
"ts_web/*",
"dist/*",
"dist_web/*",
"dist_ts_web/*",
"assets/*",
"cli.js",
"npmextra.json",
"readme.md"
],
"directories": {
"test": "test"
}
} }

View File

@ -1,18 +1,23 @@
# ht-docker-node # @hosttoday/ht-docker-node
the ultimate docker node image docker image with nodejs and shipzone.io support
## Status ## Availabililty and Links
* [npmjs.org (npm package)](https://www.npmjs.com/package/@hosttoday/ht-docker-node)
* [gitlab.com (source)](https://gitlab.com/hosttoday/ht-docker-node)
* [github.com (source mirror)](https://github.com/hosttoday/ht-docker-node)
* [docs (typedoc)](https://hosttoday.gitlab.io/ht-docker-node/)
## Status for master
[![build status](https://gitlab.com/hosttoday/ht-docker-node/badges/master/build.svg)](https://gitlab.com/hosttoday/ht-docker-node/commits/master) [![build status](https://gitlab.com/hosttoday/ht-docker-node/badges/master/build.svg)](https://gitlab.com/hosttoday/ht-docker-node/commits/master)
[![coverage report](https://gitlab.com/hosttoday/ht-docker-node/badges/master/coverage.svg)](https://gitlab.com/hosttoday/ht-docker-node/commits/master)
[Docs](https://hosttoday.gitlab.io/ht-docker-node/) [![npm downloads per month](https://img.shields.io/npm/dm/@hosttoday/ht-docker-node.svg)](https://www.npmjs.com/package/@hosttoday/ht-docker-node)
[![Known Vulnerabilities](https://snyk.io/test/npm/@hosttoday/ht-docker-node/badge.svg)](https://snyk.io/test/npm/@hosttoday/ht-docker-node)
## Availability [![TypeScript](https://img.shields.io/badge/TypeScript->=%203.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
Registry | Image Path [![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
--- | --- [![JavaScript Style Guide](https://img.shields.io/badge/code%20style-prettier-ff69b4.svg)](https://prettier.io/)
GitLab Registry | registry.gitlab.com/hosttoday/ht-docker-node
Docker Hub | hosttoday/ht-docker-node
## Usage ## Usage
The purpose of this Docker image is to provide a robust base for node apps and CI. The purpose of this Docker image is to provide a robust base for node apps and CI.
It comes in different flavours and all of them have node, npm, git and ssh in PATH. It comes in different flavours and all of them have node, npm, git and ssh in PATH.
@ -23,18 +28,32 @@ FROM hosttoday/ht-docker-node:npmci
RUN npmci install [node_version_number] // this installs node using node and sets the default to the new node and npm versions RUN npmci install [node_version_number] // this installs node using node and sets the default to the new node and npm versions
``` ```
## Flavour Overview: ## Availability
* **:lts** - node lts version, equals :latest | Registry | Image Path |
* **:stable** - node stable version | --------------- | -------------------------------------------- |
* **:npmci** - npmci preinstalled | GitLab Registry | registry.gitlab.com/hosttoday/ht-docker-node |
* **:npmts** - npmci + npmts preinstalled | Docker Hub | hosttoday/ht-docker-node |
* **:npmpage** - npmci + npmts + npmpage preinstalled
* **:mongo** - npmci + npmts + mongo ## Flavour Overview
- **:lts** - node lts version, equals :latest
- **:stable** - node stable version
- **:npmci** - npmci preinstalled
- **:npmts** - npmci + npmts preinstalled
- **:npmpage** - npmci + npmts + npmpage preinstalled
- **:mongo** - npmci + npmts + mongo
For further information read the linked docs at the top of this README. For further information read the linked docs at the top of this README.
> MIT licensed | **&copy;** [Lossless GmbH](https://lossless.gmbh) > MIT licensed | **&copy;** [Lossless GmbH](https://lossless.gmbh)
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html) > | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
[![repo-footer](https://hosttoday.gitlab.io/assets/repo-footer.svg)](https://host.today) [![repo-footer](https://hosttoday.gitlab.io/assets/repo-footer.svg)](https://host.today)
For further information read the linked docs at the top of this readme.
> MIT licensed | **&copy;** [Lossless GmbH](https://lossless.gmbh)
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
[![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com)

View File

@ -1,2 +1 @@
#!/bin/sh
echo "this runs within latest container!"; echo "this runs within latest container!";

View File

@ -1,9 +1,10 @@
# check if npmci is available # check if npmci is available
npm init -y
npmci -v npmci -v
# check if we can use lts # TODO update npmci to not require package.json
npmci install lts npmci node install stable
# check if npm picks it up # check if npm picks it up
npmci command npm install -g npmts npmci command npm install -g @gitzone/tsrun
npmci command npmts -v npmci command tsrun -v

View File

@ -1 +0,0 @@
mkdocs --version

View File

@ -1,3 +1,5 @@
# npm # npm
npm install -g npmts npm -v
npmts -v node -v
npm install -g @gitzone/tsrun
# tsrun -v

17
tslint.json Normal file
View File

@ -0,0 +1,17 @@
{
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"semicolon": [true, "always"],
"no-console": false,
"ordered-imports": false,
"object-literal-sort-keys": false,
"member-ordering": {
"options":{
"order": [
"static-method"
]
}
}
},
"defaultSeverity": "warning"
}