Compare commits

..

No commits in common. "master" and "v5.0.13" have entirely different histories.

9 changed files with 69 additions and 119 deletions

8
.gitignore vendored
View File

@ -8,15 +8,13 @@ pages/
# installs
node_modules/
# caches
# caches and builds
.yarn/
.cache/
.rpt2_cache
# builds
dist/
dist_web/
dist_serve/
dist_ts_web/
# custom
# custom
code-server/

View File

@ -1,69 +1,77 @@
# gitzone ci_docker
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
cache:
paths:
- .npmci-cache/
key: '$CI_BUILD_STAGE'
before_script:
- npmci npm prepare
# gitzone docker
image: hosttoday/ht-docker-dbase:npmci
services:
- docker:dind
stages:
- test
- release
- trigger
- pages
- buildAndTest
- triggerPagesVerify
testStable:
stage: test
script:
- npmci npm prepare
- npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- lossless
- docker
before_script:
- npm install -g @shipzone/npmci
- npmci docker login
testBuild:
stage: test
buildTest:
stage: buildAndTest
script:
- npmci npm prepare
- npmci node install stable
- npmci npm install
- npmci command npm run build
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- lossless
- docker
- notpriv
release:
image: registry.gitlab.com/hosttoday/ht-docker-dbase:npmci
services:
- docker:stable-dind
stage: release
script:
- npmci node install stable
- npmci docker login
- npmci docker build
- npmci docker test
- npmci docker push registry.gitlab.com
only:
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
- docker
- priv
trigger:
stage: 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

View File

@ -1,8 +1,9 @@
FROM codercom/code-server:v2
FROM codercom/code-server
LABEL author="Lossless GmbH <hello@lossless.com>"
USER root
WORKDIR /workspace
# important environment variables
ENV NODE_VERSION_LTS="10.15.3" NODE_VERSION_STABLE="11.2.0" NVM_DIR="/usr/local/nvm"
@ -29,7 +30,7 @@ RUN su -c "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-s
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*"
RUN mkdir $NVM_DIR && sudo chown coder $NVM_DIR && chmod u+w $NVM_DIR
RUN mkdir $NVM_DIR && sudo chown coder $NVM_DIR && chown u+w $NVM_DIR
USER coder
@ -37,7 +38,7 @@ USER coder
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_LTS \
&& nvm alias default $NODE_VERSION_STABLE \
&& nvm use default \
&& npm config set unsafe-perm true \
&& npm install -g npm"

View File

@ -1,16 +0,0 @@
{
"gitzone": {
"module": {
"githost": "code.foss.global",
"gitscope": "hosttoday",
"gitrepo": "ht-docker-vscode",
"shortDescription": "a vscode image with everything installed needed to run a vscode instance",
"npmPackagename": "@hosttoday/ht-docker-vscode",
"license": "MIT"
}
},
"npmci": {},
"tsdoc": {
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
}
}

5
package-lock.json generated
View File

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

View File

@ -1,10 +1,10 @@
{
"name": "ht-docker-vscode",
"version": "5.0.21",
"version": "5.0.13",
"description": "a vscode image with everything installed needed to run a vscode instance",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\"",
"test": "echo \"Error: no test specified\" && exit 1",
"build": "echo \"Not needed for now\""
},
"repository": {
@ -17,16 +17,5 @@
"url": "https://github.com/HostToday/ht-docker-vscode/issues"
},
"homepage": "https://github.com/HostToday/ht-docker-vscode#readme",
"private": true,
"files": [
"ts/**/*",
"ts_web/**/*",
"dist/**/*",
"dist_web/**/*",
"dist_ts_web/**/*",
"assets/**/*",
"cli.js",
"npmextra.json",
"readme.md"
]
"private": true
}

View File

@ -1 +0,0 @@

View File

@ -18,19 +18,9 @@ a vscode image with everything installed needed to run a vscode instance
## Usage
This image uses codercom/code-server:v2 as base. As a result you can use it largely like the base image.
```
docker run -it -p 127.0.0.1:8080:8080 -v "${HOME}/.local/share/code-server:/home/coder/.local/share/code-server" -v "$PWD:/home/coder/project" registry.gitlab.com/hosttoday/ht-docker-vscode
```
## Contribution
We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)
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)
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
[![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com)
[![repo-footer](https://hosttoday.gitlab.io/assets/repo-footer.svg)](https://maintainedby.lossless.com)

View File

@ -1,14 +0,0 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"useDefineForClassFields": false,
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"esModuleInterop": true,
"verbatimModuleSyntax": true
},
"exclude": [
"dist_*/**/*.d.ts"
]
}