Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 073a29988f | |||
| f499f2a068 | |||
| c72a7e04a2 | |||
| 81feeb6cbb | |||
| ac357a2342 | |||
| 93e6612923 | |||
| baaad02eea | |||
| 0dc9a11376 | |||
| f6896583bc | |||
| 05f367f131 | |||
| a2940e782a | |||
| 1fab137c25 |
6
.gitignore
vendored
6
.gitignore
vendored
@@ -8,13 +8,15 @@ pages/
|
||||
# installs
|
||||
node_modules/
|
||||
|
||||
# caches and builds
|
||||
# caches
|
||||
.yarn/
|
||||
.cache/
|
||||
.rpt2_cache
|
||||
|
||||
# builds
|
||||
dist/
|
||||
dist_web/
|
||||
dist_serve/
|
||||
dist_ts_web/
|
||||
|
||||
# custom
|
||||
code-server/
|
||||
|
||||
@@ -1,77 +1,69 @@
|
||||
# gitzone docker
|
||||
image: hosttoday/ht-docker-dbase:npmci
|
||||
services:
|
||||
- docker:dind
|
||||
# gitzone ci_docker
|
||||
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||
|
||||
stages:
|
||||
- buildAndTest
|
||||
- triggerPagesVerify
|
||||
cache:
|
||||
paths:
|
||||
- .npmci-cache/
|
||||
key: '$CI_BUILD_STAGE'
|
||||
|
||||
before_script:
|
||||
- npm install -g @shipzone/npmci
|
||||
- npmci docker login
|
||||
- npmci npm prepare
|
||||
|
||||
buildTest:
|
||||
stage: buildAndTest
|
||||
stages:
|
||||
- test
|
||||
- release
|
||||
- trigger
|
||||
- pages
|
||||
|
||||
testStable:
|
||||
stage: test
|
||||
script:
|
||||
- npmci docker build
|
||||
- npmci docker test
|
||||
except:
|
||||
- tags
|
||||
- triggers
|
||||
- npmci npm prepare
|
||||
- npmci node install stable
|
||||
- npmci npm install
|
||||
- npmci npm test
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- lossless
|
||||
- priv
|
||||
- docker
|
||||
|
||||
buildTestRelease:
|
||||
stage: buildAndTest
|
||||
testBuild:
|
||||
stage: test
|
||||
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 test
|
||||
- npmci docker push registry.gitlab.com
|
||||
- npmci docker push docker.io
|
||||
only:
|
||||
- tags
|
||||
- triggers
|
||||
tags:
|
||||
- lossless
|
||||
- docker
|
||||
- priv
|
||||
|
||||
trigger:
|
||||
stage: triggerPagesVerify
|
||||
stage: trigger
|
||||
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
|
||||
@@ -3,7 +3,6 @@ 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"
|
||||
|
||||
@@ -30,7 +29,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 && chown u+w $NVM_DIR
|
||||
RUN mkdir $NVM_DIR && sudo chown coder $NVM_DIR && chmod u+w $NVM_DIR
|
||||
|
||||
USER coder
|
||||
|
||||
@@ -38,7 +37,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_STABLE \
|
||||
&& nvm alias default $NODE_VERSION_LTS \
|
||||
&& nvm use default \
|
||||
&& npm config set unsafe-perm true \
|
||||
&& npm install -g npm"
|
||||
|
||||
13
npmextra.json
Normal file
13
npmextra.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"gitzone": {
|
||||
"module": {
|
||||
"githost": "gitlab.com",
|
||||
"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": {}
|
||||
}
|
||||
5
package-lock.json
generated
Normal file
5
package-lock.json
generated
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "ht-docker-vscode",
|
||||
"version": "5.0.19",
|
||||
"lockfileVersion": 1
|
||||
}
|
||||
15
package.json
15
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ht-docker-vscode",
|
||||
"version": "5.0.13",
|
||||
"version": "5.0.19",
|
||||
"description": "a vscode image with everything installed needed to run a vscode instance",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
@@ -17,5 +17,16 @@
|
||||
"url": "https://github.com/HostToday/ht-docker-vscode/issues"
|
||||
},
|
||||
"homepage": "https://github.com/HostToday/ht-docker-vscode#readme",
|
||||
"private": true
|
||||
"private": true,
|
||||
"files": [
|
||||
"ts/**/*",
|
||||
"ts_web/**/*",
|
||||
"dist/**/*",
|
||||
"dist_web/**/*",
|
||||
"dist_ts_web/**/*",
|
||||
"assets/**/*",
|
||||
"cli.js",
|
||||
"npmextra.json",
|
||||
"readme.md"
|
||||
]
|
||||
}
|
||||
|
||||
12
readme.md
12
readme.md
@@ -18,9 +18,17 @@ a vscode image with everything installed needed to run a vscode instance
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
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 | **©** [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)
|
||||
|
||||
[](https://maintainedby.lossless.com)
|
||||
[](https://maintainedby.lossless.com)
|
||||
|
||||
Reference in New Issue
Block a user