fix(core): update

This commit is contained in:
Philipp Kunz 2019-06-08 21:36:23 +02:00
parent 860d5c722e
commit a763bc61a0
8 changed files with 79 additions and 74 deletions

5
.gitignore vendored
View File

@ -8,9 +8,12 @@ pages/
# installs # installs
node_modules/ node_modules/
# caches and builds # caches
.yarn/ .yarn/
.cache/ .cache/
.rpt2_cache
# builds
dist/ dist/
dist_web/ dist_web/
dist_serve/ dist_serve/

View File

@ -1,76 +1,51 @@
# gitzone docker # gitzone ci_docker
image: hosttoday/ht-docker-dbase:npmci image: 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
buildTestRelease: release:
stage: buildAndTest image: hosttoday/ht-docker-dbase:npmci
services:
- docker:dind
stage: release
script: script:
- npmci node install stable
- 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:

3
Dockerfile_iot Normal file
View 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

13
npmextra.json Normal file
View File

@ -0,0 +1,13 @@
{
"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": {}
}

View File

@ -17,5 +17,15 @@
"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 "private": true,
"files": [
"ts/*",
"ts_web/*",
"dist/*",
"dist_web/*",
"assets/*",
"cli.js",
"npmextra.json",
"readme.md"
]
} }

View File

@ -1,5 +1,5 @@
# @hosttoday/ht-docker-node # @hosttoday/ht-docker-node
docker image with nodejs and ship.zone support docker image with nodejs and shipzone.io support
## Availabililty and Links ## Availabililty and Links
* [npmjs.org (npm package)](https://www.npmjs.com/package/@hosttoday/ht-docker-node) * [npmjs.org (npm package)](https://www.npmjs.com/package/@hosttoday/ht-docker-node)
@ -29,10 +29,11 @@ RUN npmci install [node_version_number] // this installs node using node and set
``` ```
## Availability ## Availability
Registry | Image Path
--- | --- | Registry | Image Path |
GitLab Registry | registry.gitlab.com/hosttoday/ht-docker-node | --------------- | -------------------------------------------- |
Docker Hub | hosttoday/ht-docker-node | GitLab Registry | registry.gitlab.com/hosttoday/ht-docker-node |
| Docker Hub | hosttoday/ht-docker-node |
## Flavour Overview ## Flavour Overview

View File

@ -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 @gitzone/gitzone npmci command npm install -g @gitzone/tsrun
npmci command gitzone -v npmci command tsrun -v

View File

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