Compare commits

..

110 Commits

Author SHA1 Message Date
e295440d11 4.3.21 2017-06-30 16:42:40 +02:00
a3b5bbc4d4 4.3.20 2017-06-30 16:42:27 +02:00
da26dc649d update 2017-06-30 16:42:20 +02:00
dc7b11c78d 4.3.19 2017-06-30 16:39:12 +02:00
c9b317372f update 2017-06-30 16:38:53 +02:00
c7bdbd3901 update ci 2017-06-30 16:22:53 +02:00
e07d31c2af 4.3.18 2017-06-30 16:19:48 +02:00
8ad139ba56 update maintainer 2017-06-30 16:18:55 +02:00
e7170565f4 Merge branch 'master' of gitlab.com:hosttoday/ht-docker-node 2017-06-30 16:18:25 +02:00
5e89b9a9a7 add java version 2017-06-30 16:18:17 +02:00
5cbf1489bd Update .gitlab-ci.yml 2017-05-15 16:39:32 +00:00
a83cc999c4 4.3.17 2017-04-02 23:45:38 +02:00
ada45c2db7 fix readme name 2017-04-02 23:45:20 +02:00
db439e3733 prefix 2017-04-02 23:45:07 +02:00
16ba6ab3d3 4.3.16 2017-04-02 23:00:14 +02:00
00631f769b fic ci 2017-04-02 23:00:10 +02:00
d110ef6a47 4.3.15 2017-04-02 22:59:03 +02:00
3d1161a799 fix ci pages 2017-04-02 22:59:00 +02:00
6e8f7ef602 4.3.14 2017-04-02 22:13:56 +02:00
b7ba47db18 update readme 2017-04-02 22:13:52 +02:00
d0d3e15922 4.3.13 2017-04-02 22:05:46 +02:00
9a845b8ec7 update ci with pages 2017-04-02 22:02:16 +02:00
75cc86d69f 4.3.12 2017-03-11 14:53:43 +01:00
9f872eb376 fix tests 2017-03-11 14:53:41 +01:00
15165235fd 4.3.11 2017-03-11 14:43:37 +01:00
9e23bf4811 fix tests 2017-03-11 14:43:34 +01:00
6bf5730895 4.3.10 2017-03-11 14:32:41 +01:00
0c733d3a90 update tests 2017-03-11 14:30:48 +01:00
1007880f8c 4.3.9 2017-03-11 14:29:37 +01:00
4ec2503671 update 2017-03-11 14:29:10 +01:00
b1814a60d5 4.3.8 2017-02-25 03:12:07 +01:00
aed0fee59f add mongo image 2017-02-25 02:10:23 +01:00
fc53a7e3f0 fix tests 2017-02-19 14:52:54 +01:00
6ee919ac34 4.3.7 2017-02-19 14:51:37 +01:00
1b8680edff update test 2017-02-18 23:51:09 +01:00
67f4456073 update tests 2017-02-18 23:32:59 +01:00
b2835bd220 improve tests 2017-02-18 23:01:07 +01:00
a0a2cc2eda update tests 2017-02-18 22:28:05 +01:00
e8c24d504c 4.3.6 2017-02-18 21:11:15 +01:00
866346a0a5 fix 2017-02-18 18:39:14 +01:00
04ea46f681 fix yarn install 2017-02-18 18:34:45 +01:00
cd858ae9fa fix curl 2017-02-18 18:29:27 +01:00
dc28ada99a add yarn 2017-02-18 18:26:19 +01:00
09c78e9577 update to latest node versions for base image 2016-11-18 00:54:35 +01:00
7525d1af5c 4.3.5 2016-08-31 12:48:35 +02:00
043651bfac removed python3 version 2016-08-31 12:47:57 +02:00
621fff81c3 4.3.4 2016-08-31 12:40:17 +02:00
b0e8ff164f added triggers to valid release criteria 2016-08-31 12:40:13 +02:00
21ce311be3 4.3.3 2016-08-31 00:15:44 +02:00
c030b94bc6 update to only publish on tags 2016-08-31 00:15:38 +02:00
221fd422d6 4.3.2 2016-08-30 23:55:45 +02:00
04e29ffd5e update npmpage installation 2016-08-30 23:55:21 +02:00
bc58522b12 Merge branch 'master' of gitlab.com:hosttoday/ht-docker-node 2016-07-18 03:57:31 +02:00
42760d7aeb switch to stable for default 2016-07-18 03:57:23 +02:00
a93e26ce98 Update README.md 2016-07-12 14:20:58 +00:00
a442040021 update lts version 2016-06-29 23:11:12 +02:00
87678e9bf4 fix ssh 2016-06-26 06:39:01 +02:00
23a4df0c35 add ssh 2016-06-26 06:25:07 +02:00
2fe58c23c3 Update Dockerfile_npmts 2016-06-26 02:56:21 +00:00
40fa047c24 update npm to ensure nodegit compatibility 2016-06-26 00:19:00 +02:00
e8c45ba38b add openssl to base Dockerfile 2016-06-25 21:04:10 +02:00
22adbef520 fix filename of test so it gets picked up by npmci 2016-06-17 15:08:08 +02:00
774a9a3e91 Update .gitlab-ci.yml 2016-06-13 13:06:55 +00:00
f829c38137 add some tests 2016-06-11 23:11:05 +02:00
6f27262366 fix npmts install 2016-06-11 23:00:43 +02:00
5ee60a65d6 fix npmci call 2016-06-11 21:25:09 +02:00
97f371890b now using npmci to install npmts 2016-06-11 20:24:36 +02:00
8630f4920d update ht-docker-node 2016-06-11 19:07:03 +02:00
cefe591b2a Update Dockerfile_npmts 2016-06-10 11:16:25 +00:00
87bc1f267a add version with npmdeploy installed 2016-06-10 08:43:25 +02:00
ced7c75cba fix npmts Dockerfile 2016-06-10 07:41:41 +02:00
371c7c11ea Merge branch 'master' of gitlab.com:hosttoday/ht-docker-node 2016-06-10 07:30:15 +02:00
a112bba2e1 update npmts to have npmts in path for all node tests. 2016-06-10 07:30:07 +02:00
9aff193ef9 Update README.md 2016-06-08 21:09:24 +00:00
37e997ebf2 fix test file 2016-06-07 07:55:05 +02:00
864ebf39a8 fix gitlab yml 2016-06-07 06:10:03 +02:00
27b65ae64a add tests for dockerfile with tag latest 2016-06-07 05:21:48 +02:00
cf8f10d032 update gitlab ci yml 2016-06-07 04:45:08 +02:00
9e10b04105 Update .gitlab-ci.yml 2016-06-05 08:25:22 +00:00
5d0fc29252 Update .gitlab-ci.yml 2016-06-05 05:07:38 +00:00
d27f9f11ae Update .gitlab-ci.yml 2016-06-05 04:36:03 +00:00
10bb62cc01 Update .gitlab-ci.yml 2016-06-04 22:16:58 +00:00
886211f908 add python3 2016-06-04 03:57:39 +02:00
e49776862e removed npmci from base 2016-06-04 03:51:32 +02:00
2c6ffe34fc fix 2016-06-04 03:38:39 +02:00
56a1bc4e0f fix gitlab-ci 2016-06-04 03:31:13 +02:00
2d0bc35096 update gitlab ci 2016-06-04 03:19:20 +02:00
fc8de3e5d1 fix 2016-06-04 03:03:00 +02:00
dfaf401f1b now building tags 2016-06-04 03:01:23 +02:00
6ad80e7aa9 update Dockerfile_stable 2016-06-04 02:51:18 +02:00
99c9645108 fix 2016-06-04 02:47:22 +02:00
6499eedc7b create tagged versions 2016-06-04 02:43:39 +02:00
4c75ba6e3f Add new file 2016-06-04 00:28:19 +00:00
53c013da51 Update .gitlab-ci.yml 2016-06-02 17:08:12 +00:00
fd432a3f16 Update .gitlab-ci.yml 2016-06-02 15:46:40 +00:00
c8a92cc2e2 Update .gitlab-ci.yml 2016-06-02 11:46:56 +00:00
d6ac184f9f Update .gitlab-ci.yml 2016-06-02 11:43:27 +00:00
c8db76b050 Update .gitlab-ci.yml 2016-06-02 11:37:23 +00:00
c587638b90 Update .gitlab-ci.yml 2016-06-01 07:43:17 +00:00
e20c79b3ab Update .gitlab-ci.yml 2016-05-30 14:46:00 +00:00
ae78db3097 Update .gitlab-ci.yml 2016-05-30 14:16:40 +00:00
e5ad68e7ca Update Dockerfile 2016-05-30 14:06:48 +00:00
6bd6665f63 Add new file 2016-05-30 13:22:51 +00:00
19deb73114 Update README.md 2016-05-30 02:19:09 +00:00
e08088c520 add npmci 2016-05-26 22:34:05 +02:00
30c57e2f3a add npmci 2016-05-26 21:50:07 +02:00
c81f3446c2 update node stack 2016-04-24 01:34:44 +02:00
b4e13ceffe updated nodejs lts version and improved bash use in Dockerfile 2016-04-22 01:52:21 +02:00
b8d3094ad7 improve README 2016-03-07 02:35:09 +00:00
f3b85d94eb added README 2016-03-07 02:32:20 +00:00
15 changed files with 652 additions and 26 deletions

73
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,73 @@
# gitzone docker
image: hosttoday/ht-docker-dbase:latest
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay
stages:
- build
- test
- release
- trigger
- pages
before_script:
- npmci prepare docker
build:
stage: build
script:
- npmci build docker
tags:
- lossless
- priv
test:
stage: test
script:
- npmci test docker
tags:
- lossless
- priv
release:
stage: release
script:
- npmci publish docker
only:
- tags
- triggers
tags:
- lossless
- priv
trigger:
stage: trigger
script:
- npmci trigger
only:
- tags
- triggers
tags:
- lossless
- priv
pages:
before_script:
- 'npmci -v'
image: hosttoday/ht-docker-node:npmci
stage: pages
script:
- npmci command yarn global add npmpage
- npmci command npmpage
only:
- tags
tags:
- docker
artifacts:
expire_in: 1 week
paths:
- public

View File

@ -1,36 +1,30 @@
FROM debian
FROM ubuntu:latest
MAINTAINER Lossless GmbH <office@lossless.com>
# Replace shell with bash so we can source files
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# important environment variables
ENV NODE_VERSION_LTS="6.10.0" NODE_VERSION_STABLE="8.1.3" NVM_DIR="/usr/local/nvm"
# Set debconf to run non-interactively
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
# Install base dependencies
RUN apt-get update && apt-get install -y -q --no-install-recommends \
# Set debconf to run non-interactively and install packages
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
&& apt-get update \
&& apt-get upgrade --no-install-recommends -y \
&& apt-get install -y -q --no-install-recommends \
software-properties-common \
apt-transport-https \
build-essential \
ca-certificates \
curl \
git \
libssl-dev \
ssh \
openssl \
python \
rsync \
software-properties-common \
wget \
&& rm -rf /var/lib/apt/lists/*
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 4.3.1
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get install yarn -y \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*
# Install nvm with node and npm
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash \
&& source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
RUN node -v
RUN npm -v
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash

11
Dockerfile_lts Normal file
View File

@ -0,0 +1,11 @@
FROM hosttoday/ht-docker-node:latest
MAINTAINER Lossless GmbH <office@lossless.com>
RUN bash -c "source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION_LTS \
&& nvm alias default $NODE_VERSION_LTS \
&& nvm use default \
&& npm install -g npm"
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_LTS/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION_LTS/bin:$PATH

7
Dockerfile_mongo Normal file
View File

@ -0,0 +1,7 @@
FROM hosttoday/ht-docker-node:stable
MAINTAINER Lossless GmbH <office@lossless.com>
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 \
&& echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list \
&& apt-get update \
&& apt-get install -y mongodb-org

4
Dockerfile_npmci Normal file
View File

@ -0,0 +1,4 @@
FROM hosttoday/ht-docker-node:stable
MAINTAINER Lossless GmbH <office@lossless.com>
RUN npm install -g npmci

23
Dockerfile_npmcijava Normal file
View File

@ -0,0 +1,23 @@
FROM hosttoday/ht-docker-node:npmci
MAINTAINER Lossless GmbH <office@lossless.com>
# Java Version
ENV JAVA_VERSION=9 \
JAVA_UPDATE=ea \
JAVA_BUILD=168 \
JAVA_HOME=/usr/lib/jvm/current-java
# JDK: http://www.java.net/download/java/jdk9/archive/145/binaries/jdk-9-ea+145_linux-x64_bin.tar.gz
# JRE: http://www.java.net/download/java/jdk9/archive/145/binaries/jre-9-ea+145_linux-x64_bin.tar.gz
# JRE
RUN cd /tmp && wget --header "Cookie: oraclelicense=accept-securebackup-cookie;" \
"http://www.java.net/download/java/jdk9/archive/${JAVA_BUILD}/binaries/jre-${JAVA_VERSION}-${JAVA_UPDATE}+${JAVA_BUILD}_linux-x64_bin.tar.gz" && \
tar xzf "jre-${JAVA_VERSION}-${JAVA_UPDATE}+${JAVA_BUILD}_linux-x64_bin.tar.gz" && \
mkdir -p /usr/lib/jvm && mv "/tmp/jre-${JAVA_VERSION}" "/usr/lib/jvm/java-${JAVA_VERSION}-oracle" && \
ln -s "java-${JAVA_VERSION}-oracle" $JAVA_HOME && \
ln -s $JAVA_HOME/bin/java /usr/bin/java && \
rm -rf $JAVA_HOME/*.txt && \
rm -rf $JAVA_HOME/*.html && \
apk del wget ca-certificates curl && \
rm /tmp/* /var/cache/apk/*

10
Dockerfile_stable Normal file
View File

@ -0,0 +1,10 @@
FROM hosttoday/ht-docker-node:latest
RUN bash -c "source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION_STABLE \
&& nvm alias default $NODE_VERSION_STABLE \
&& nvm use default \
&& npm install -g npm"
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_STABLE/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION_STABLE/bin:$PATH

38
docs/index.md Normal file
View File

@ -0,0 +1,38 @@
# ht-docker-node
the ultimate docker node image
## Status
[![build status](https://gitlab.com/hosttoday/ht-docker-node/badges/master/build.svg)](https://gitlab.com/hosttoday/ht-docker-node/commits/master)
## Availability
Registry | Image Path
--- | ---
GitLab Registry | registry.gitlab.com/hosttoday/ht-docker-node
Docker Hub | hosttoday/ht-docker-node
## Usage
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.
The **:npmci flavour** has npmci in path and can install any required node version and update PATH accordingly:
```Dockerfile
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
```
## 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.
> MIT licensed | **&copy;** [Lossless GmbH](https://lossless.gmbh)
| 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)

1
node_modules/.yarn-integrity generated vendored Normal file
View File

@ -0,0 +1 @@
549854b8a60607db81d4c58008d59f812d744acba026266f380acd942941356a

View File

@ -1,6 +1,6 @@
{
"name": "ht-docker-node",
"version": "4.3.1",
"version": "4.3.21",
"description": "docker image with nodejs with shipzone.io support",
"main": "index.js",
"scripts": {

411
public/index.html Normal file
View File

@ -0,0 +1,411 @@
<!DOCTYPE html>
<html>
<head>
<title>Quicksite</title>
<link
href="https://fonts.googleapis.com/css?family=Roboto+Mono:300,400,700|Roboto+Slab:300,400,700|Roboto:300,400,700"
rel="stylesheet"
>
<style>
.menuBox {
box-shadow: 0px 0px 5px #CCCCCC;
margin: auto;
box-sizing: border-box;
margin-bottom: 70px;
margin-top: 0px;
width: 100%;
background: #2196F3;
position: fixed;
padding: 15px;
will-change: transform; }
.menuBox .menuItems {
text-align: right; }
.menuBox .menuItems a {
display: inline-block;
padding: 0px 10px;
border-right: 1px #fff solid;
font-size: 15px;
font-weight: 400;
letter-spacing: 1px;
text-transform: uppercase;
text-decoration: none;
color: #fafafa; }
.menuBox .menuItems a:hover {
color: #fff; }
.menuBox .menuItems a:last-of-type {
border-right: none; }
h1,
h2,
h3,
h4 {
margin: 1.414rem 0 .5rem;
font-weight: inherit;
font-family: 'Roboto Slab', serif;
line-height: 1.42;
text-align: center; }
h1 {
margin-top: 0;
font-size: 3.998rem; }
h1::after {
display: block;
margin: auto;
margin-top: 0px;
width: 200px;
border-top: 2px #e4002b solid;
content: ''; }
h1 + h2 {
font-weight: 300;
margin-top: 5px;
font-size: 25px; }
h2 {
font-size: 2.827rem; }
h3 {
font-size: 1.999rem; }
h4 {
font-size: 1.414rem; }
h5 {
font-size: 1.121rem; }
h6 {
font-size: .88rem; }
table {
-webkit-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
width: 100%;
margin-bottom: 2rem;
margin-left: 0px;
margin-right: 0px;
background-color: #fff;
box-shadow: 0px 0px 3px #ccc;
border-radius: 3px;
padding: 10px; }
@media screen and (min-width: 768px) {
table {
width: 768px; } }
@media screen and (min-width: 1200px) {
table {
width: 968px;
margin-left: -100px;
margin-right: -100px; } }
table thead tr,
table tbody tr,
table tfoot tr {
-webkit-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease; }
table thead tr th,
table thead tr td,
table tbody tr th,
table tbody tr td,
table tfoot tr th,
table tfoot tr td {
text-align: left;
padding: 10px;
vertical-align: top;
border-top: 0;
-webkit-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease; }
table thead tr th {
font-weight: 400;
color: #757575;
vertical-align: bottom;
border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
table caption + thead tr:first-child th,
table caption + thead tr:first-child td,
table colgroup + thead tr:first-child th,
table colgroup + thead tr:first-child td,
table thead:first-child tr:first-child th,
table thead:first-child tr:first-child td {
border-top: 0; }
table tbody + tbody {
border-top: 1px solid rgba(0, 0, 0, 0.12); }
blockquote {
padding: 0px;
page-break-inside: avoid;
margin: 0;
border-left: 5px solid #7a7a7a;
font-style: italic;
text-align: left; }
blockquote p {
padding: 10px; }
table {
-webkit-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
width: 100%;
margin-bottom: 2rem;
margin-left: 0px;
margin-right: 0px;
background-color: #fff;
box-shadow: 0px 0px 3px #ccc;
border-radius: 3px;
padding: 10px; }
@media screen and (min-width: 768px) {
table {
width: 768px; } }
@media screen and (min-width: 1200px) {
table {
width: 968px;
margin-left: -100px;
margin-right: -100px; } }
table thead tr,
table tbody tr,
table tfoot tr {
-webkit-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease; }
table thead tr th,
table thead tr td,
table tbody tr th,
table tbody tr td,
table tfoot tr th,
table tfoot tr td {
text-align: left;
padding: 10px;
vertical-align: top;
border-top: 0;
-webkit-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease; }
table thead tr th {
font-weight: 400;
color: #757575;
vertical-align: bottom;
border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
table caption + thead tr:first-child th,
table caption + thead tr:first-child td,
table colgroup + thead tr:first-child th,
table colgroup + thead tr:first-child td,
table thead:first-child tr:first-child th,
table thead:first-child tr:first-child td {
border-top: 0; }
table tbody + tbody {
border-top: 1px solid rgba(0, 0, 0, 0.12); }
.content {
margin: auto;
padding-top: 110px;
max-width: 768px; }
@media screen and (max-width: 808px) {
.content {
margin-left: 20px;
margin-right: 20px; } }
.footer {
border-top: 2px #333 solid;
margin: auto;
margin-top: 70px;
margin-bottom: 60px;
max-width: 768px; }
@media screen and (min-width: 500px) {
.footer .footerGridContainer {
margin-left: -20px;
margin-right: -20px; } }
.footer .footerGridContainer::after {
clear: both;
content: "";
display: block; }
.footer .footerGridContainer .footerColumn {
padding-top: 20px; }
@media screen and (min-width: 500px) {
.footer .footerGridContainer .footerColumn {
width: calc(33.33333% - 26.66667px);
float: left;
margin-left: 20px; } }
.footer .footerGridContainer .footerColumn h1 {
font-size: 14px;
font-weight: 700;
text-align: left;
text-transform: uppercase; }
.footer .footerGridContainer .footerColumn h1::after {
content: none; }
.footer .footerGridContainer .footerColumn a {
color: #333;
text-decoration: none;
display: block;
padding: 2px 10px 2px 10px;
border-left: #CCC 2px solid;
-webkit-transition: all 0.1s ease;
-o-transition: all 0.1s ease;
transition: all 0.1s ease; }
.footer .footerGridContainer .footerColumn a:hover {
border-left: 2px #e4002b solid;
background: #e8e8e8; }
.footer .footerGridContainer .footerColumn a + span {
-webkit-transition: all 0.1s ease;
-o-transition: all 0.1s ease;
transition: all 0.1s ease;
color: #666;
font-family: 'Roboto Mono', monospace;
font-weight: 400;
font-size: 10px;
display: block;
padding-left: 10px;
border-left: 2px #eee solid;
margin-bottom: 5px; }
.footer .footerGridContainer .footerColumn a:hover + span {
border-left: 2px #e4002b solid;
background: #f0f0f0; }
@media print {
*,
*:before,
*:after {
background: transparent !important;
color: #000 !important;
box-shadow: none !important;
text-shadow: none !important; }
a,
a:visited {
text-decoration: underline; }
a[href]:after {
content: " (" attr(href) ")"; }
abbr[title]:after {
content: " (" attr(title) ")"; }
a[href^="#"]:after,
a[href^="javascript:"]:after {
content: ""; }
pre {
border: 1px solid #999;
page-break-inside: avoid; }
thead {
display: table-header-group; }
tr {
page-break-inside: avoid; }
p,
h2,
h3 {
orphans: 3;
widows: 3; }
h2,
h3 {
page-break-after: avoid; } }
html {
font-size: 12px; }
@media screen and (min-width: 32rem) and (max-width: 48rem) {
html {
font-size: 15px; } }
@media screen and (min-width: 48rem) {
html {
font-size: 16px; } }
p {
font-size: 1rem;
margin-bottom: 1.3rem; }
small {
font-size: .707em; }
canvas,
iframe,
video,
svg,
select,
textarea {
max-width: 100%; }
body {
color: #444;
font-family: 'Roboto', sans-serif;
font-weight: 300;
line-height: 1.85;
margin: 0px; }
a,
a:visited {
color: #3498db; }
a:hover, a:focus, a:active {
color: #2980b9; }
pre {
background-color: #fafafa;
padding: 1rem;
text-align: left; }
ul,
ol,
li {
text-align: left; }
p {
color: #777; }
</style>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class='menuBox'>
<div class='menuItems'>
<a href='./index.html'>index</a>
</div>
</div>
<div class='content'>
<h1 id="ht-docker-node">ht-docker-node</h1>
<p>the ultimate docker node image</p>
<h2 id="status">Status</h2>
<p><a href="https://gitlab.com/hosttoday/ht-docker-node/commits/master"><img src="https://gitlab.com/hosttoday/ht-docker-node/badges/master/build.svg" alt="build status"></a></p>
<h2 id="availability">Availability</h2>
<table>
<thead>
<tr>
<th>Registry</th>
<th>Image Path</th>
</tr>
</thead>
<tbody>
<tr>
<td>GitLab Registry</td>
<td>registry.gitlab.com/hosttoday/ht-docker-node</td>
</tr>
<tr>
<td>Docker Hub</td>
<td>hosttoday/ht-docker-node</td>
</tr>
</tbody>
</table>
<h2 id="usage">Usage</h2>
<p>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.</p>
<p>The <strong>:npmci flavour</strong> has npmci in path and can install any required node version and update PATH accordingly:</p>
<pre><code class="lang-Dockerfile">FROM hosttoday/ht-docker-<span class="hljs-keyword">node</span><span class="hljs-title">:npmci</span>
RUN npmci install [node_version_number] // this installs <span class="hljs-keyword">node</span> <span class="hljs-title">using</span> <span class="hljs-keyword">node</span> <span class="hljs-title">and</span> sets the default to the new <span class="hljs-keyword">node</span> <span class="hljs-title">and</span> npm versions
</code></pre>
<h2 id="flavour-overview-">Flavour Overview:</h2>
<ul>
<li><strong>:lts</strong> - node lts version, equals :latest</li>
<li><strong>:stable</strong> - node stable version</li>
<li><strong>:npmci</strong> - npmci preinstalled</li>
<li><strong>:npmts</strong> - npmci + npmts preinstalled</li>
<li><strong>:npmpage</strong> - npmci + npmts + npmpage preinstalled</li>
<li><strong>:mongo</strong> - npmci + npmts + mongo</li>
</ul>
<p>For further information read the linked docs at the top of this README.</p>
<blockquote>
<p>MIT licensed | <strong>&copy;</strong> <a href="https://lossless.gmbh">Lossless GmbH</a>
| By using this npm module you agree to our <a href="https://lossless.gmbH/privacy.html">privacy policy</a></p>
</blockquote>
<p><a href="https://host.today"><img src="https://hosttoday.gitlab.io/assets/repo-footer.svg" alt="repo-footer"></a></p>
<div class='footer'>
<div class='footerGridContainer'>
</div>
</div>
</div>
</body>
</html>

40
readme.md Normal file
View File

@ -0,0 +1,40 @@
# ht-docker-node
the ultimate docker node image
## Status
[![build status](https://gitlab.com/hosttoday/ht-docker-node/badges/master/build.svg)](https://gitlab.com/hosttoday/ht-docker-node/commits/master)
[Docs](https://hosttoday.gitlab.io/ht-docker-node/)
## Availability
Registry | Image Path
--- | ---
GitLab Registry | registry.gitlab.com/hosttoday/ht-docker-node
Docker Hub | hosttoday/ht-docker-node
## Usage
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.
The **:npmci flavour** has npmci in path and can install any required node version and update PATH accordingly:
```Dockerfile
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
```
## 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.
> MIT licensed | **&copy;** [Lossless GmbH](https://lossless.gmbh)
| 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)

2
test/test_latest.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
yarn -v

9
test/test_npmci.sh Normal file
View File

@ -0,0 +1,9 @@
# check if npmci is available
npmci -v
# check if we can use lts
npmci install lts
# check if yarn picks it up
npmci command yarn global add npmts
npmci command npmts -v

3
test/test_stable.sh Normal file
View File

@ -0,0 +1,3 @@
# test yarn
yarn global add npmts
npmts -v