Compare commits
23 Commits
Author | SHA1 | Date | |
---|---|---|---|
4f280ebd13 | |||
4e10028f65 | |||
bb44e89699 | |||
2ad5215865 | |||
e60bf4dae8 | |||
d44f8d7959 | |||
33cad48fed | |||
79e0128d30 | |||
24531b63b0 | |||
a7d2b34f8b | |||
1089942cc3 | |||
f443d220c6 | |||
52866e8aa5 | |||
50cb638732 | |||
67470d22f4 | |||
5a3f5a1a72 | |||
3cdcc3738b | |||
d2c8e2b51e | |||
b69c781c4d | |||
7bc8cb3f51 | |||
1ce4382885 | |||
e9ff80ceae | |||
32ceafbd59 |
18
.gitignore
vendored
18
.gitignore
vendored
@ -1 +1,19 @@
|
|||||||
|
.nogit/
|
||||||
|
|
||||||
|
# artifacts
|
||||||
|
coverage/
|
||||||
|
public/
|
||||||
|
pages/
|
||||||
|
|
||||||
|
# installs
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|
||||||
|
# caches and builds
|
||||||
|
.yarn/
|
||||||
|
.cache/
|
||||||
|
dist/
|
||||||
|
dist_web/
|
||||||
|
dist_serve/
|
||||||
|
dist_ts_web/
|
||||||
|
|
||||||
|
# custom
|
@ -23,7 +23,7 @@ buildTest:
|
|||||||
- lossless
|
- lossless
|
||||||
- priv
|
- priv
|
||||||
|
|
||||||
buildTestRelase:
|
buildTestRelease:
|
||||||
stage: buildAndTest
|
stage: buildAndTest
|
||||||
script:
|
script:
|
||||||
- npmci docker build
|
- npmci docker build
|
||||||
@ -55,8 +55,9 @@ pages:
|
|||||||
- 'npmci -v'
|
- 'npmci -v'
|
||||||
image: hosttoday/ht-docker-node:npmci
|
image: hosttoday/ht-docker-node:npmci
|
||||||
script:
|
script:
|
||||||
- npmci command npm install -g npmpage
|
# - npmci command npm install -g npmpage
|
||||||
- npmci command npmpage
|
# - npmci command npmpage
|
||||||
|
- echo "nothing here yet until @gitzone/npmpage is ready!"
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
FROM ubuntu:xenial
|
FROM ubuntu:xenial
|
||||||
LABEL author="Lossless GmbH <office@lossless.com>"
|
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||||
|
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
# important environment variables
|
# important environment variables
|
||||||
ENV NODE_VERSION_LTS="8.11.3" NODE_VERSION_STABLE="10.5.0" NVM_DIR="/usr/local/nvm"
|
ENV NODE_VERSION_LTS="10.13.0" NODE_VERSION_STABLE="11.2.0" 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 \
|
||||||
@ -23,6 +24,7 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
|||||||
rsync \
|
rsync \
|
||||||
ssh \
|
ssh \
|
||||||
wget \
|
wget \
|
||||||
|
libx11-xcb1 \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -r /var/lib/apt/lists/*
|
&& rm -r /var/lib/apt/lists/*
|
||||||
|
3
Dockerfile_alpine
Normal file
3
Dockerfile_alpine
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM node:11.3.0-alpine
|
||||||
|
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||||
|
RUN apk update && apk add bash libc6-compat
|
@ -1,4 +1,5 @@
|
|||||||
FROM hosttoday/ht-docker-node:stable
|
FROM hosttoday/ht-docker-node:stable
|
||||||
|
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||||
|
|
||||||
# See https://crbug.com/795759
|
# See https://crbug.com/795759
|
||||||
RUN apt-get update && apt-get install -yq libgconf-2-4 \
|
RUN apt-get update && apt-get install -yq libgconf-2-4 \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
FROM hosttoday/ht-docker-node:latest
|
FROM hosttoday/ht-docker-node:latest
|
||||||
LABEL author="Lossless GmbH <office@lossless.com>"
|
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||||
|
|
||||||
RUN bash -c "source $NVM_DIR/nvm.sh \
|
RUN bash -c "source $NVM_DIR/nvm.sh \
|
||||||
&& nvm install $NODE_VERSION_LTS \
|
&& nvm install $NODE_VERSION_LTS \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM hosttoday/ht-docker-node:stable
|
FROM hosttoday/ht-docker-node:stable
|
||||||
LABEL author="Lossless GmbH <office@lossless.com>"
|
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||||
|
|
||||||
RUN npm install -g @shipzone/npmci
|
RUN npm install -g @shipzone/npmci
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
FROM hosttoday/ht-docker-node:npmci
|
|
||||||
LABEL author="Lossless GmbH <office@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
|
|
@ -1,4 +1,4 @@
|
|||||||
FROM hosttoday/ht-docker-node:stable
|
FROM hosttoday/ht-docker-node:stable
|
||||||
LABEL author="Lossless GmbH <office@lossless.com>"
|
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||||
|
|
||||||
RUN npm install -g @shipzone/npmci @gitzone/npmdocker @gitzone/npmts ts-node
|
RUN npm install -g @shipzone/npmci @gitzone/npmdocker @gitzone/npmts ts-node
|
@ -1,5 +1,5 @@
|
|||||||
FROM hosttoday/ht-docker-node:latest
|
FROM hosttoday/ht-docker-node:latest
|
||||||
LABEL author="Lossless GmbH <office@lossless.com>"
|
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||||
|
|
||||||
RUN bash -c "source $NVM_DIR/nvm.sh \
|
RUN bash -c "source $NVM_DIR/nvm.sh \
|
||||||
&& nvm install $NODE_VERSION_STABLE \
|
&& nvm install $NODE_VERSION_STABLE \
|
||||||
|
10
package.json
10
package.json
@ -1,10 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "ht-docker-node",
|
"name": "ht-docker-node",
|
||||||
"version": "5.0.0",
|
"version": "5.0.12",
|
||||||
"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 \"Error: no test specified\" && exit 1",
|
||||||
|
"build": "echo \"Not needed for now\""
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -15,5 +16,6 @@
|
|||||||
"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
|
||||||
}
|
}
|
||||||
|
56
readme.md
56
readme.md
@ -1,18 +1,23 @@
|
|||||||
# ht-docker-node
|
# @hosttoday/ht-docker-node
|
||||||
the ultimate docker node image
|
docker image with nodejs and ship.zone 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
|
||||||
[](https://gitlab.com/hosttoday/ht-docker-node/commits/master)
|
[](https://gitlab.com/hosttoday/ht-docker-node/commits/master)
|
||||||
|
[](https://gitlab.com/hosttoday/ht-docker-node/commits/master)
|
||||||
[Docs](https://hosttoday.gitlab.io/ht-docker-node/)
|
[](https://www.npmjs.com/package/@hosttoday/ht-docker-node)
|
||||||
|
[](https://snyk.io/test/npm/@hosttoday/ht-docker-node)
|
||||||
## Availability
|
[](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||||
Registry | Image Path
|
[](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||||
--- | ---
|
[](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,31 @@ 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
|
||||||
|
Registry | Image Path
|
||||||
|
--- | ---
|
||||||
|
GitLab Registry | registry.gitlab.com/hosttoday/ht-docker-node
|
||||||
|
Docker Hub | hosttoday/ht-docker-node
|
||||||
|
|
||||||
* **:lts** - node lts version, equals :latest
|
## Flavour Overview
|
||||||
* **:stable** - node stable version
|
|
||||||
* **:npmci** - npmci preinstalled
|
- **:lts** - node lts version, equals :latest
|
||||||
* **:npmts** - npmci + npmts preinstalled
|
- **:stable** - node stable version
|
||||||
* **:npmpage** - npmci + npmts + npmpage preinstalled
|
- **:npmci** - npmci preinstalled
|
||||||
* **:mongo** - npmci + npmts + mongo
|
- **: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 | **©** [Lossless GmbH](https://lossless.gmbh)
|
> MIT licensed | **©** [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)
|
||||||
|
|
||||||
[](https://host.today)
|
[](https://host.today)
|
||||||
|
|
||||||
|
For further information read the linked docs at the top of this readme.
|
||||||
|
|
||||||
|
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||||
|
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
||||||
|
|
||||||
|
[](https://maintainedby.lossless.com)
|
||||||
|
@ -1,2 +1 @@
|
|||||||
#!/bin/sh
|
|
||||||
echo "this runs within latest container!";
|
echo "this runs within latest container!";
|
||||||
|
@ -5,5 +5,5 @@ npmci -v
|
|||||||
npmci install lts
|
npmci install lts
|
||||||
|
|
||||||
# check if npm picks it up
|
# check if npm picks it up
|
||||||
npmci command npm install -g npmts
|
npmci command npm install -g @gitzone/gitzone
|
||||||
npmci command npmts -v
|
npmci command gitzone -v
|
||||||
|
@ -1 +0,0 @@
|
|||||||
mkdocs --version
|
|
@ -1,3 +1,5 @@
|
|||||||
# npm
|
# npm
|
||||||
npm install -g npmts
|
npm -v
|
||||||
npmts -v
|
node -v
|
||||||
|
npm install -g @gitzone/gitzone
|
||||||
|
gitzone -v
|
17
tslint.json
Normal file
17
tslint.json
Normal 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"
|
||||||
|
}
|
Reference in New Issue
Block a user