22 Commits

Author SHA1 Message Date
4bfc38e2dc 5.0.21 2019-11-05 15:50:15 +01:00
56fea33e32 fix(core): update to v2 of code-server 2019-11-05 15:50:15 +01:00
7e4b4e22a9 5.0.20 2019-11-05 15:48:26 +01:00
dd2c874bbf fix(core): update 2019-11-05 15:48:25 +01:00
073a29988f 5.0.19 2019-11-05 15:33:37 +01:00
f499f2a068 fix(core): update 2019-11-05 15:33:36 +01:00
c72a7e04a2 5.0.18 2019-11-05 15:33:09 +01:00
81feeb6cbb fix(core): update 2019-11-05 15:33:09 +01:00
ac357a2342 5.0.17 2019-11-05 15:27:52 +01:00
93e6612923 fix(core): update 2019-11-05 15:27:51 +01:00
baaad02eea 5.0.16 2019-05-08 23:28:19 +02:00
0dc9a11376 fix(core): update 2019-05-08 23:28:18 +02:00
f6896583bc 5.0.15 2019-05-08 23:16:25 +02:00
05f367f131 fix(core): update 2019-05-08 23:16:25 +02:00
a2940e782a 5.0.14 2019-05-08 23:12:48 +02:00
1fab137c25 fix(core): update 2019-05-08 23:12:48 +02:00
da479e27b4 5.0.13 2019-05-08 23:10:22 +02:00
158e2b9235 fix(core): update 2019-05-08 23:10:22 +02:00
8c32b84809 5.0.12 2019-05-08 23:01:33 +02:00
1f81791781 fix(core): update 2019-05-08 23:01:33 +02:00
703c647ecc 5.0.11 2019-05-08 22:53:24 +02:00
8b4f315b5a fix(core): update 2019-05-08 22:53:23 +02:00
7 changed files with 101 additions and 62 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,77 +1,69 @@
# gitzone docker # gitzone ci_docker
image: hosttoday/ht-docker-dbase:npmci image: registry.gitlab.com/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 npm prepare
- npmci docker test - npmci node install stable
except: - npmci npm install
- tags - npmci npm test
- triggers coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- lossless - lossless
- priv - docker
buildTestRelease: testBuild:
stage: buildAndTest stage: test
script: 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 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 - lossless
- docker
- priv - priv
trigger: trigger:
stage: triggerPagesVerify stage: trigger
script: script:
- npmci trigger - npmci trigger
only: only:
- tags - tags
- triggers
tags: tags:
- lossless - 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 - docker

View File

@@ -1,12 +1,13 @@
FROM codercom/code-server FROM codercom/code-server:v2
LABEL author="Lossless GmbH <hello@lossless.com>" LABEL author="Lossless GmbH <hello@lossless.com>"
WORKDIR /workspace USER root
# important environment variables # important environment variables
ENV NODE_VERSION_LTS="10.15.3" NODE_VERSION_STABLE="11.2.0" NVM_DIR="/usr/local/nvm" 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 # Set debconf to run non-interactively and install packages
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \ RUN su -c "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
&& apt-get update \ && apt-get update \
&& apt-get upgrade --no-install-recommends -y \ && apt-get upgrade --no-install-recommends -y \
&& apt-get install -y -q --no-install-recommends \ && apt-get install -y -q --no-install-recommends \
@@ -26,13 +27,17 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
wget \ wget \
&& apt-get update \ && apt-get update \
&& apt-get clean \ && apt-get clean \
&& rm -r /var/lib/apt/lists/* && rm -r /var/lib/apt/lists/*"
RUN mkdir $NVM_DIR && sudo chown coder $NVM_DIR && chmod u+w $NVM_DIR
USER coder
# Install nvm with node and npm # Install nvm with node and npm
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
RUN bash -c "source $NVM_DIR/nvm.sh \ RUN bash -c "source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION_LTS \ && nvm install $NODE_VERSION_LTS \
&& nvm alias default $NODE_VERSION_STABLE \ && nvm alias default $NODE_VERSION_LTS \
&& nvm use default \ && nvm use default \
&& npm config set unsafe-perm true \ && npm config set unsafe-perm true \
&& npm install -g npm" && npm install -g npm"

13
npmextra.json Normal file
View 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
View File

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

View File

@@ -1,10 +1,10 @@
{ {
"name": "ht-docker-vscode", "name": "ht-docker-vscode",
"version": "5.0.10", "version": "5.0.21",
"description": "a vscode image with everything installed needed to run a vscode instance", "description": "a vscode image with everything installed needed to run a vscode instance",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\"",
"build": "echo \"Not needed for now\"" "build": "echo \"Not needed for now\""
}, },
"repository": { "repository": {
@@ -17,5 +17,16 @@
"url": "https://github.com/HostToday/ht-docker-vscode/issues" "url": "https://github.com/HostToday/ht-docker-vscode/issues"
}, },
"homepage": "https://github.com/HostToday/ht-docker-vscode#readme", "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"
]
} }

View File

@@ -18,9 +18,19 @@ a vscode image with everything installed needed to run a vscode instance
## Usage ## 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. For further information read the linked docs at the top of this readme.
> MIT licensed | **&copy;** [Lossless GmbH](https://lossless.gmbh) > MIT licensed | **&copy;** [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)
[![repo-footer](https://hosttoday.gitlab.io/assets/repo-footer.svg)](https://maintainedby.lossless.com) [![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com)