This repository was archived by the owner on Oct 10, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +335
-0
lines changed
Expand file tree Collapse file tree 8 files changed +335
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM lsiobase/ubuntu:bionic as builder
2+
3+ ARG DEBIAN_FRONTEND="noninteractive"
4+ ARG NPM_CONFIG_UNSAFE_PERM=true
5+
6+ RUN \
7+ echo "**** install build packages ****" && \
8+ apt-get update && \
9+ apt-get install -y \
10+ g++ \
11+ gcc \
12+ git \
13+ make \
14+ python && \
15+ echo "**** Compile Cloud9 from source ****" && \
16+ git clone --depth 1 \
17+ https://github.com/c9/core.git c9sdk && \
18+ cd c9sdk && \
19+ mkdir -p /c9bins && \
20+ HOME=/c9bins scripts/install-sdk.sh && \
21+ echo "**** Restructure files for copy ****" && \
22+ mkdir -p \
23+ /buildout && \
24+ rm -Rf \
25+ /c9bins/.c9/tmp && \
26+ mv \
27+ /c9bins \
28+ /buildout/c9bins && \
29+ mv \
30+ /c9sdk \
31+ /buildout/
32+
33+ # runtime stage
34+ FROM lsiobase/ubuntu:bionic
35+
36+ # set version label
37+ ARG BUILD_DATE
38+ ARG VERSION
39+ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
40+ LABEL maintainer="thelamer"
41+
42+ # Env
43+ ARG DEBIAN_FRONTEND="noninteractive"
44+
45+ # add local files and files from c9base
46+ COPY --from=builder /buildout/ /
47+
48+ RUN \
49+ echo "**** install base packages ****" && \
50+ apt-get update && \
51+ apt-get install -y --no-install-recommends \
52+ curl \
53+ git \
54+ gnupg \
55+ sudo && \
56+ echo "**** Cleanup and user perms ****" && \
57+ usermod -aG sudo \
58+ abc && \
59+ apt-get autoclean && \
60+ rm -rf \
61+ /var/lib/apt/lists/* \
62+ /var/tmp/* \
63+ /tmp/*
64+
65+ # add local files
66+ COPY root/ /
67+
68+ # ports and volumes
69+ EXPOSE 8000
70+ VOLUME /code
Original file line number Diff line number Diff line change 1+ FROM lsiobase/ubuntu:arm64v8-bionic as builder
2+
3+ ARG DEBIAN_FRONTEND="noninteractive"
4+ ARG NPM_CONFIG_UNSAFE_PERM=true
5+
6+ RUN \
7+ echo "**** install build packages ****" && \
8+ apt-get update && \
9+ apt-get install -y \
10+ g++ \
11+ gcc \
12+ git \
13+ make \
14+ python && \
15+ echo "**** Compile Cloud9 from source ****" && \
16+ git clone --depth 1 \
17+ https://github.com/c9/core.git c9sdk && \
18+ cd c9sdk && \
19+ mkdir -p /c9bins && \
20+ HOME=/c9bins scripts/install-sdk.sh && \
21+ echo "**** Restructure files for copy ****" && \
22+ mkdir -p \
23+ /buildout && \
24+ rm -Rf \
25+ /c9bins/.c9/tmp && \
26+ mv \
27+ /c9bins \
28+ /buildout/c9bins && \
29+ mv \
30+ /c9sdk \
31+ /buildout/
32+
33+ # runtime stage
34+ FROM lsiobase/ubuntu:arm64v8-bionic
35+
36+ # set version label
37+ ARG BUILD_DATE
38+ ARG VERSION
39+ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
40+ LABEL maintainer="thelamer"
41+
42+ # Env
43+ ARG DEBIAN_FRONTEND="noninteractive"
44+
45+ # add local files and files from c9base
46+ COPY --from=builder /buildout/ /
47+
48+ RUN \
49+ echo "**** install base packages ****" && \
50+ apt-get update && \
51+ apt-get install -y --no-install-recommends \
52+ curl \
53+ git \
54+ gnupg \
55+ sudo && \
56+ echo "**** Cleanup and user perms ****" && \
57+ usermod -aG sudo \
58+ abc && \
59+ apt-get autoclean && \
60+ rm -rf \
61+ /var/lib/apt/lists/* \
62+ /var/tmp/* \
63+ /tmp/*
64+
65+ # add local files
66+ COPY root/ /
67+
68+ # ports and volumes
69+ EXPOSE 8000
70+ VOLUME /code
Original file line number Diff line number Diff line change 1+ FROM lsiobase/ubuntu:arm32v7-bionic as builder
2+
3+ ARG DEBIAN_FRONTEND="noninteractive"
4+ ARG NPM_CONFIG_UNSAFE_PERM=true
5+
6+ RUN \
7+ echo "**** install build packages ****" && \
8+ apt-get update && \
9+ apt-get install -y \
10+ g++ \
11+ gcc \
12+ git \
13+ make \
14+ python && \
15+ echo "**** Compile Cloud9 from source ****" && \
16+ git clone --depth 1 \
17+ https://github.com/c9/core.git c9sdk && \
18+ cd c9sdk && \
19+ mkdir -p /c9bins && \
20+ HOME=/c9bins scripts/install-sdk.sh && \
21+ echo "**** Restructure files for copy ****" && \
22+ mkdir -p \
23+ /buildout && \
24+ rm -Rf \
25+ /c9bins/.c9/tmp && \
26+ mv \
27+ /c9bins \
28+ /buildout/c9bins && \
29+ mv \
30+ /c9sdk \
31+ /buildout/
32+
33+ # runtime stage
34+ FROM lsiobase/ubuntu:arm32v7-bionic
35+
36+ # set version label
37+ ARG BUILD_DATE
38+ ARG VERSION
39+ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
40+ LABEL maintainer="thelamer"
41+
42+ # Env
43+ ARG DEBIAN_FRONTEND="noninteractive"
44+
45+ # add local files and files from c9base
46+ COPY --from=builder /buildout/ /
47+
48+ RUN \
49+ echo "**** install base packages ****" && \
50+ apt-get update && \
51+ apt-get install -y --no-install-recommends \
52+ curl \
53+ git \
54+ gnupg \
55+ sudo && \
56+ echo "**** Cleanup and user perms ****" && \
57+ usermod -aG sudo \
58+ abc && \
59+ apt-get autoclean && \
60+ rm -rf \
61+ /var/lib/apt/lists/* \
62+ /var/tmp/* \
63+ /tmp/*
64+
65+ # add local files
66+ COPY root/ /
67+
68+ # ports and volumes
69+ EXPOSE 8000
70+ VOLUME /code
Original file line number Diff line number Diff line change 1+ [ linuxserverurl ] : https://linuxserver.io
2+ [ forumurl ] : https://forum.linuxserver.io
3+ [ ircurl ] : https://www.linuxserver.io/irc/
4+
5+ [ ![ linuxserver.io] ( https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png?v=4&s=4000 )] [ linuxserverurl ]
6+
7+ ## Contact information:-
8+
9+ | Type | Address/Details |
10+ | :---: | --- |
11+ | Discord | [ Discord] ( https://discord.gg/YWrKVTn ) |
12+ | IRC | freenode at ` #linuxserver.io ` more information at:- [ IRC] [ ircurl ]
13+ | Forum | [ Linuserver.io forum] [ forumurl ] |
14+
15+   ;
16+   ;
17+
18+ [ ![ ] ( https://images.microbadger.com/badges/image/lsiobase/cloud9.svg )] ( https://microbadger.com/images/lsiobase/cloud9 " Get your own image badge on microbadger.com ")
19+
20+ [ ![ ] ( https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/Dockerfile-Link-green.png )] ( https://github.com/linuxserver/docker-baseimage-cloud9/blob/master/Dockerfile )
21+
22+ A custom base image built with [ Ubuntu linux] ( https://www.ubuntu.com/ ) and [ Cloud9] ( https://github.com/c9/core ) ..
23+
24+ The following line is only in this repo for loop testing:
25+
26+ - { date: "01.01.50:", desc: "I am the release message for this internal repo." }
Original file line number Diff line number Diff line change 1+ ---
2+
3+ # jenkins variables
4+ project_name : docker-baseimage-cloud9
5+ external_type : github_commit
6+ release_type : stable
7+ release_tag : latest
8+ ls_branch : master
9+ repo_vars :
10+ - EXT_GIT_BRANCH = 'master'
11+ - EXT_USER = 'c9'
12+ - EXT_REPO = 'core'
13+ - BUILD_VERSION_ARG = 'CLOUD9_VERSION'
14+ - LS_USER = 'linuxserver'
15+ - LS_REPO = 'docker-baseimage-cloud9'
16+ - CONTAINER_NAME = 'baseimage-cloud9'
17+ - DOCKERHUB_IMAGE = 'lsiobase/cloud9'
18+ - DEV_DOCKERHUB_IMAGE = 'lsiodev/cloud9-base'
19+ - PR_DOCKERHUB_IMAGE = 'lspipepr/cloud9-base'
20+ - DIST_IMAGE = 'ubuntu'
21+ - MULTIARCH='true'
22+ - CI='true'
23+ - CI_WEB='true'
24+ - CI_PORT='8000'
25+ - CI_SSL='false'
26+ - CI_DELAY='120'
27+ - CI_DOCKERENV='TZ=US/Pacific'
28+ - CI_AUTH='user:password'
29+ - CI_WEBPATH=''
Original file line number Diff line number Diff line change 1+ ---
2+
3+ # project information
4+ project_name : baseimage-cloud9
5+ full_custom_readme : |
6+ {% raw -%}
7+ [linuxserverurl]: https://linuxserver.io
8+ [forumurl]: https://forum.linuxserver.io
9+ [ircurl]: https://www.linuxserver.io/irc/
10+
11+ [][linuxserverurl]
12+
13+ ## Contact information:-
14+
15+ | Type | Address/Details |
16+ | :---: | --- |
17+ | Discord | [Discord](https://discord.gg/YWrKVTn) |
18+ | IRC | freenode at `#linuxserver.io` more information at:- [IRC][ircurl]
19+ | Forum | [Linuserver.io forum][forumurl] |
20+
21+
22+
23+
24+ [](https://microbadger.com/images/lsiobase/cloud9 "Get your own image badge on microbadger.com")
25+
26+ [](https://github.com/linuxserver/docker-baseimage-cloud9/blob/master/Dockerfile)
27+
28+ A custom base image built with [Ubuntu linux](https://www.ubuntu.com/) and [Cloud9](https://github.com/c9/core)..
29+
30+ The following line is only in this repo for loop testing:
31+
32+ - { date: "01.01.50:", desc: "I am the release message for this internal repo." }
33+ {%- endraw %}
Original file line number Diff line number Diff line change 1+ #!/usr/bin/with-contenv bash
2+
3+ # check for lock file to only run git operations once
4+ if [ ! -e /lock.file ]; then
5+ # give abc a sudo shell for development
6+ chsh abc -s /bin/bash
7+ sed -e 's/%sudo ALL=(ALL:ALL) ALL/%sudo ALL=(ALL:ALL) NOPASSWD: ALL/g' \
8+ -i /etc/sudoers
9+ sed -e 's/^wheel:\(.*\)/wheel:\1,abc/g' -i /etc/group
10+ # create directory for project
11+ mkdir -p /code
12+ # make sure URL is set and folder is empty to clone code
13+ if [ ${GITURL+x} ] && [ ! "$(/bin/ls -A /code 2>/dev/null)" ] ; then \
14+ # clone the url the user passed to this directory
15+ git clone "${GITURL}" /code
16+ fi
17+ else
18+ # lock exists not importing project this is a restart
19+ echo "Lock exists just starting cloud9"
20+ fi
21+
22+ # create lock file after first run
23+ touch /lock.file
24+
25+ # permissions
26+ mkdir -p /c9sdk/build/standalone
27+ echo "[cont-init.d] Setting permissions this may take some time"
28+ chown -R abc:abc \
29+ /c9sdk/build/standalone \
30+ /code \
31+ /c9bins/.c9
Original file line number Diff line number Diff line change 1+ #!/usr/bin/with-contenv bash
2+
3+ cd /c9sdk
4+ HOME=/c9bins exec \
5+ s6-setuidgid abc \
6+ /c9bins/.c9/node/bin/node server.js --listen 0.0.0.0 -p 8000 -w /code -a :
You can’t perform that action at this time.
0 commit comments