Skip to content

Commit 2e4bca6

Browse files
aptalcathelamer
authored andcommitted
initial commit of mod-python2
1 parent a9346cf commit 2e4bca6

File tree

9 files changed

+60
-389
lines changed

9 files changed

+60
-389
lines changed

Dockerfile

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,10 @@
1-
FROM lsiobase/ubuntu:bionic
1+
FROM scratch
22

33
# set version label
44
ARG BUILD_DATE
55
ARG VERSION
6-
ARG CODE_RELEASE
76
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
87
LABEL maintainer="aptalca"
98

10-
# environment settings
11-
ENV HOME="/config"
12-
13-
RUN \
14-
apt-get update && \
15-
apt-get install -y \
16-
git \
17-
jq \
18-
nano \
19-
net-tools \
20-
sudo && \
21-
echo "**** install code-server ****" && \
22-
if [ -z ${CODE_RELEASE+x} ]; then \
23-
CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/latest" \
24-
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
25-
fi && \
26-
CODE_URL=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/tags/${CODE_RELEASE}" \
27-
| jq -r '.assets[] | select(.browser_download_url | contains("linux-x86_64")) | .browser_download_url') && \
28-
curl -o \
29-
/tmp/code.tar.gz -L \
30-
"${CODE_URL}" && \
31-
tar xzf /tmp/code.tar.gz -C \
32-
/usr/bin/ --strip-components=1 \
33-
--wildcards code-server*/code-server && \
34-
echo "**** clean up ****" && \
35-
rm -rf \
36-
/tmp/* \
37-
/var/lib/apt/lists/* \
38-
/var/tmp/*
39-
409
# add local files
4110
COPY /root /
42-
43-
# ports and volumes
44-
EXPOSE 8443

Jenkinsfile

Lines changed: 46 additions & 148 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
229229

230230
## Versions
231231

232+
* **28.01.20:** - Release python2-mod.
232233
* **17.01.20:** - Fix artifact url retrieval from github.
233234
* **24.10.19:** - Upgrade to v2 builds.
234235
* **28.09.19:** - Update project logo.

jenkins-vars.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33
# jenkins variables
44
project_name: docker-code-server
5-
external_type: github_stable
6-
release_type: stable
7-
release_tag: latest
8-
ls_branch: master
5+
external_type: os
6+
release_type: prerelease
7+
release_tag: mod-python2
8+
ls_branch: mod-python2
9+
skip_package_check: true
910
repo_vars:
10-
- EXT_GIT_BRANCH = 'master'
11-
- EXT_USER = 'cdr'
12-
- EXT_REPO = 'code-server'
1311
- CONTAINER_NAME = 'code-server'
1412
- BUILD_VERSION_ARG = 'CODE_RELEASE'
1513
- LS_USER = 'linuxserver'
@@ -19,11 +17,4 @@ repo_vars:
1917
- PR_DOCKERHUB_IMAGE = 'lspipepr/code-server'
2018
- DIST_IMAGE = 'ubuntu'
2119
- MULTIARCH='false'
22-
- CI='true'
23-
- CI_WEB='true'
24-
- CI_PORT='8443'
25-
- CI_SSL='false'
26-
- CI_DELAY='120'
27-
- CI_DOCKERENV='TZ=US/Pacific'
28-
- CI_AUTH='user:password'
29-
- CI_WEBPATH=''
20+
- CI='false'

package_versions.txt

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

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ app_setup_block: |
6565
6666
# changelog
6767
changelogs:
68+
- { date: "28.01.20:", desc: "Release python2-mod." }
6869
- { date: "17.01.20:", desc: "Fix artifact url retrieval from github." }
6970
- { date: "24.10.19:", desc: "Upgrade to v2 builds." }
7071
- { date: "28.09.19:", desc: "Update project logo." }

root/etc/cont-init.d/30-config

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

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
apt update && apt install -y \
4+
python \
5+
python-pip

root/etc/services.d/code-server/run

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

0 commit comments

Comments
 (0)