Skip to content

Commit d1454d2

Browse files
authored
Merge pull request #7 from aptalca/code-server-nodejs
code-server: nodejs initial release
2 parents ca2c0ce + 6499749 commit d1454d2

File tree

7 files changed

+24
-67
lines changed

7 files changed

+24
-67
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ language: shell
44

55
branches:
66
only:
7-
- <baseimagename>-<modname> #replace variables, omit brackets
7+
- code-server-nodejs
88

99
services:
1010
- docker
1111

1212
env:
1313
global:
14-
- DOCKERHUB="linuxserver/mods" #don't modify
15-
- BASEIMAGE="baseimagename" #replace
16-
- MODNAME="modname" #replace
14+
- DOCKERHUB="linuxserver/mods"
15+
- BASEIMAGE="code-server"
16+
- MODNAME="nodejs"
1717

1818
jobs:
1919
include:

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
FROM scratch
22

3+
LABEL maintainer="aptalca"
4+
35
# copy local files
46
COPY root/ /

Dockerfile.complex

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
1-
# Docker mod for openssh-server
1+
# Nodejs - Docker mod for code-server
22

3-
This mod adds rsync to openssh-server, to be installed/updated during container start.
3+
This mod adds a nodejs dev environment to code-server, to be installed/updated during container start.
44

5-
In openssh-server docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:openssh-server-rsync`
5+
In code-server docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:code-server-nodejs`
66

7-
# Mod creation instructions
8-
9-
* Ask the team to create a new branch named `<baseimagename>-<modname>`. Baseimage should be the name of the image the mod will be applied to. The new branch will be based on the `template` branch.
10-
* Fork the repo, checkout the template branch.
11-
* Edit the `Dockerfile` for the mod. `Dockerfile.complex` is only an example and included for reference; it should be deleted when done.
12-
* Inspect the `root` folder contents. Edit, add and remove as necessary.
13-
* Edit this readme with pertinent info, delete thse instructions.
14-
* Finally edit the `travis.yml`. Customize the build branch,and the vars for `BASEIMAGE` and `MODNAME`
15-
* Submit PR against the branch created by the team
7+
If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:code-server-nodejs|linuxserver/mods:code-server-mod2`

root/etc/cont-init.d/99-nodejs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
echo "**** installing nodejs dev environment ****"
4+
[[ ! -f "/etc/apt/sources.list.d/nodesource.list" ]] && \
5+
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
6+
echo 'deb https://deb.nodesource.com/node_12.x bionic main' \
7+
> /etc/apt/sources.list.d/nodesource.list
8+
[[ ! -f "/etc/apt/sources.list.d/yarn.list" ]] && \
9+
curl -s https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
10+
echo 'deb https://dl.yarnpkg.com/debian/ stable main' \
11+
> /etc/apt/sources.list.d/yarn.list
12+
apt-get update && apt-get install -y \
13+
nodejs \
14+
yarn

root/etc/cont-init.d/99-vpn-config

Lines changed: 0 additions & 27 deletions
This file was deleted.

root/etc/services.d/sshvpn/run

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)