Skip to content

Commit 4e6f602

Browse files
authored
Merge pull request #6 from aptalca/code-server-python3
code-server: python3 initial release
2 parents ca2c0ce + 3333842 commit 4e6f602

File tree

7 files changed

+20
-67
lines changed

7 files changed

+20
-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-python3
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="python3"
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+
# Python3 - 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 python3 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-python3`
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-python3|linuxserver/mods:code-server-mod2`

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
echo "**** installing python3 dev environment ****"
4+
apt-get update && apt-get install -y \
5+
build-essential \
6+
libssl-dev \
7+
libffi-dev \
8+
python3-dev \
9+
python3-pip \
10+
python3-venv

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)