From 5a487f692dcb8b1abb570ef90d6392438a186811 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 8 May 2019 22:36:00 +0200 Subject: [PATCH] fix(core): update --- .gitignore | 19 +++++++++++++ .gitlab-ci.yml | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++ Dockerfile | 41 +++++++++++++++++++++++++++ package.json | 21 ++++++++++++++ readme.md | 26 +++++++++++++++++ tslint.json | 17 +++++++++++ 6 files changed, 201 insertions(+) create mode 100644 .gitignore create mode 100644 .gitlab-ci.yml create mode 100644 Dockerfile create mode 100644 package.json create mode 100644 readme.md create mode 100644 tslint.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e713ab4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +.nogit/ + +# artifacts +coverage/ +public/ +pages/ + +# installs +node_modules/ + +# caches and builds +.yarn/ +.cache/ +dist/ +dist_web/ +dist_serve/ +dist_ts_web/ + +# custom \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..539dfb0 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,77 @@ +# gitzone docker +image: hosttoday/ht-docker-dbase:npmci +services: + - docker:dind + +stages: + - buildAndTest + - triggerPagesVerify + +before_script: + - npm install -g @shipzone/npmci + - npmci docker login + +buildTest: + stage: buildAndTest + script: + - npmci docker build + - npmci docker test + except: + - tags + - triggers + tags: + - lossless + - priv + +buildTestRelease: + stage: buildAndTest + script: + - npmci docker build + - npmci docker test + - npmci docker push registry.gitlab.com test + - npmci docker push registry.gitlab.com + - npmci docker push docker.io + only: + - tags + - triggers + tags: + - lossless + - priv + +trigger: + stage: triggerPagesVerify + script: + - 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: + - tags + tags: + - docker \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..26e4964 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,41 @@ +FROM codercom/code-server +LABEL author="Lossless GmbH " + +WORKDIR /workspace +# important environment variables +ENV NODE_VERSION_LTS="10.15.3" NODE_VERSION_STABLE="11.2.0" NVM_DIR="/usr/local/nvm" + +# 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 \ + g++ \ + gcc \ + git \ + make \ + openssl \ + python \ + rsync \ + ssh \ + wget \ + && apt-get update \ + && apt-get clean \ + && rm -r /var/lib/apt/lists/* + +# Install nvm with node and npm +RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash +RUN bash -c "source $NVM_DIR/nvm.sh \ + && nvm install $NODE_VERSION_LTS \ + && nvm alias default $NODE_VERSION_STABLE \ + && nvm use default \ + && npm config set unsafe-perm true \ + && 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 \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..37495dc --- /dev/null +++ b/package.json @@ -0,0 +1,21 @@ +{ + "name": "ht-docker-vscode", + "version": "5.0.9", + "description": "a vscode image with everything installed needed to run a vscode instance", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "build": "echo \"Not needed for now\"" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/HostToday/ht-docker-vscode.git" + }, + "author": "Lossless GmbH", + "license": "MIT", + "bugs": { + "url": "https://github.com/HostToday/ht-docker-vscode/issues" + }, + "homepage": "https://github.com/HostToday/ht-docker-vscode#readme", + "private": true +} \ No newline at end of file diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..1b084b1 --- /dev/null +++ b/readme.md @@ -0,0 +1,26 @@ +# @hosttoday/ht-docker-vscode +a vscode image with everything installed needed to run a vscode instance + +## Availabililty and Links +* [npmjs.org (npm package)](https://www.npmjs.com/package/@hosttoday/ht-docker-vscode) +* [gitlab.com (source)](https://gitlab.com/hosttoday/ht-docker-vscode) +* [github.com (source mirror)](https://github.com/hosttoday/ht-docker-vscode) +* [docs (typedoc)](https://hosttoday.gitlab.io/ht-docker-vscode/) + +## Status for master +[![build status](https://gitlab.com/hosttoday/ht-docker-vscode/badges/master/build.svg)](https://gitlab.com/hosttoday/ht-docker-vscode/commits/master) +[![coverage report](https://gitlab.com/hosttoday/ht-docker-vscode/badges/master/coverage.svg)](https://gitlab.com/hosttoday/ht-docker-vscode/commits/master) +[![npm downloads per month](https://img.shields.io/npm/dm/@hosttoday/ht-docker-vscode.svg)](https://www.npmjs.com/package/@hosttoday/ht-docker-vscode) +[![Known Vulnerabilities](https://snyk.io/test/npm/@hosttoday/ht-docker-vscode/badge.svg)](https://snyk.io/test/npm/@hosttoday/ht-docker-vscode) +[![TypeScript](https://img.shields.io/badge/TypeScript->=%203.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/) +[![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/) + +## Usage + +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) + +[![repo-footer](https://hosttoday.gitlab.io/assets/repo-footer.svg)](https://maintainedby.lossless.com) diff --git a/tslint.json b/tslint.json new file mode 100644 index 0000000..d4ea2e9 --- /dev/null +++ b/tslint.json @@ -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" +}