-
-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from aptalca/code-server-nodejs
code-server: nodejs initial release
- Loading branch information
Showing
7 changed files
with
24 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
FROM scratch | ||
|
||
LABEL maintainer="aptalca" | ||
|
||
# copy local files | ||
COPY root/ / |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
# Docker mod for openssh-server | ||
# Nodejs - Docker mod for code-server | ||
|
||
This mod adds rsync to openssh-server, to be installed/updated during container start. | ||
This mod adds a nodejs dev environment to code-server, to be installed/updated during container start. | ||
|
||
In openssh-server docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:openssh-server-rsync` | ||
In code-server docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:code-server-nodejs` | ||
|
||
# Mod creation instructions | ||
|
||
* 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. | ||
* Fork the repo, checkout the template branch. | ||
* Edit the `Dockerfile` for the mod. `Dockerfile.complex` is only an example and included for reference; it should be deleted when done. | ||
* Inspect the `root` folder contents. Edit, add and remove as necessary. | ||
* Edit this readme with pertinent info, delete thse instructions. | ||
* Finally edit the `travis.yml`. Customize the build branch,and the vars for `BASEIMAGE` and `MODNAME` | ||
* Submit PR against the branch created by the team | ||
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/with-contenv bash | ||
|
||
echo "**** installing nodejs dev environment ****" | ||
[[ ! -f "/etc/apt/sources.list.d/nodesource.list" ]] && \ | ||
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \ | ||
echo 'deb https://deb.nodesource.com/node_12.x bionic main' \ | ||
> /etc/apt/sources.list.d/nodesource.list | ||
[[ ! -f "/etc/apt/sources.list.d/yarn.list" ]] && \ | ||
curl -s https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ | ||
echo 'deb https://dl.yarnpkg.com/debian/ stable main' \ | ||
> /etc/apt/sources.list.d/yarn.list | ||
apt-get update && apt-get install -y \ | ||
nodejs \ | ||
yarn |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.