kopia lustrzana https://github.com/linuxserver/docker-cloud9
add http auth
rodzic
7d0941cb2a
commit
ed558619b6
16
Dockerfile
16
Dockerfile
|
@ -9,7 +9,7 @@ RUN \
|
||||||
git \
|
git \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
zlib1g-dev
|
zlib1g-dev
|
||||||
|
|
||||||
|
@ -47,16 +47,16 @@ COPY --from=buildstage /docker-compose /usr/local/bin/
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** install docker deps ****" && \
|
echo "**** install docker deps ****" && \
|
||||||
curl -s \
|
curl -s \
|
||||||
https://download.docker.com/linux/debian/gpg | \
|
https://download.docker.com/linux/debian/gpg | \
|
||||||
apt-key add - && \
|
apt-key add - && \
|
||||||
echo 'deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable' > \
|
echo 'deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable' > \
|
||||||
/etc/apt/sources.list.d/docker-ce.list && \
|
/etc/apt/sources.list.d/docker-ce.list && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
docker-ce && \
|
docker-ce && \
|
||||||
echo "**** Cleanup and user perms ****" && \
|
echo "**** Cleanup and user perms ****" && \
|
||||||
apt-get autoclean && \
|
apt-get autoclean && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/var/lib/apt/lists/* \
|
/var/lib/apt/lists/* \
|
||||||
/var/tmp/* \
|
/var/tmp/* \
|
||||||
/tmp/*
|
/tmp/*
|
||||||
|
|
|
@ -10,7 +10,7 @@ RUN \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
zlib1g-dev
|
zlib1g-dev
|
||||||
|
|
||||||
|
@ -48,16 +48,16 @@ COPY --from=buildstage /docker-compose /usr/local/bin/
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** install docker deps ****" && \
|
echo "**** install docker deps ****" && \
|
||||||
curl -s \
|
curl -s \
|
||||||
https://download.docker.com/linux/debian/gpg | \
|
https://download.docker.com/linux/debian/gpg | \
|
||||||
apt-key add - && \
|
apt-key add - && \
|
||||||
echo 'deb [arch=arm64] https://download.docker.com/linux/ubuntu bionic stable' > \
|
echo 'deb [arch=arm64] https://download.docker.com/linux/ubuntu bionic stable' > \
|
||||||
/etc/apt/sources.list.d/docker-ce.list && \
|
/etc/apt/sources.list.d/docker-ce.list && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
docker-ce && \
|
docker-ce && \
|
||||||
echo "**** Cleanup and user perms ****" && \
|
echo "**** Cleanup and user perms ****" && \
|
||||||
apt-get autoclean && \
|
apt-get autoclean && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/var/lib/apt/lists/* \
|
/var/lib/apt/lists/* \
|
||||||
/var/tmp/* \
|
/var/tmp/* \
|
||||||
/tmp/*
|
/tmp/*
|
||||||
|
|
|
@ -10,7 +10,7 @@ RUN \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
zlib1g-dev
|
zlib1g-dev
|
||||||
|
|
||||||
|
@ -48,16 +48,16 @@ COPY --from=buildstage /docker-compose /usr/local/bin/
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** install docker deps ****" && \
|
echo "**** install docker deps ****" && \
|
||||||
curl -s \
|
curl -s \
|
||||||
https://download.docker.com/linux/debian/gpg | \
|
https://download.docker.com/linux/debian/gpg | \
|
||||||
apt-key add - && \
|
apt-key add - && \
|
||||||
echo 'deb [arch=armhf] https://download.docker.com/linux/ubuntu bionic stable' > \
|
echo 'deb [arch=armhf] https://download.docker.com/linux/ubuntu bionic stable' > \
|
||||||
/etc/apt/sources.list.d/docker-ce.list && \
|
/etc/apt/sources.list.d/docker-ce.list && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
docker-ce && \
|
docker-ce && \
|
||||||
echo "**** Cleanup and user perms ****" && \
|
echo "**** Cleanup and user perms ****" && \
|
||||||
apt-get autoclean && \
|
apt-get autoclean && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/var/lib/apt/lists/* \
|
/var/lib/apt/lists/* \
|
||||||
/var/tmp/* \
|
/var/tmp/* \
|
||||||
/tmp/*
|
/tmp/*
|
||||||
|
|
13
README.md
13
README.md
|
@ -80,8 +80,10 @@ docker create \
|
||||||
-e PGID=1000 \
|
-e PGID=1000 \
|
||||||
-e TZ=Europe/London \
|
-e TZ=Europe/London \
|
||||||
-e GITURL=https://github.com/linuxserver/docker-cloud9.git `#optional` \
|
-e GITURL=https://github.com/linuxserver/docker-cloud9.git `#optional` \
|
||||||
|
-e USERNAME= `#optional` \
|
||||||
|
-e PASSWORD= `#optional` \
|
||||||
-p 8000:8000 \
|
-p 8000:8000 \
|
||||||
-v <path to your code>:/code `#optional` \
|
-v /path/to/your/code:/code `#optional` \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock `#optional` \
|
-v /var/run/docker.sock:/var/run/docker.sock `#optional` \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
linuxserver/cloud9
|
linuxserver/cloud9
|
||||||
|
@ -104,8 +106,10 @@ services:
|
||||||
- PGID=1000
|
- PGID=1000
|
||||||
- TZ=Europe/London
|
- TZ=Europe/London
|
||||||
- GITURL=https://github.com/linuxserver/docker-cloud9.git #optional
|
- GITURL=https://github.com/linuxserver/docker-cloud9.git #optional
|
||||||
|
- USERNAME= #optional
|
||||||
|
- PASSWORD= #optional
|
||||||
volumes:
|
volumes:
|
||||||
- <path to your code>:/code #optional
|
- /path/to/your/code:/code #optional
|
||||||
- /var/run/docker.sock:/var/run/docker.sock #optional
|
- /var/run/docker.sock:/var/run/docker.sock #optional
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000
|
- 8000:8000
|
||||||
|
@ -121,8 +125,10 @@ Container images are configured using parameters passed at runtime (such as thos
|
||||||
| `-p 8000` | The port for the Cloud9 web interface |
|
| `-p 8000` | The port for the Cloud9 web interface |
|
||||||
| `-e PUID=1000` | for UserID - see below for explanation |
|
| `-e PUID=1000` | for UserID - see below for explanation |
|
||||||
| `-e PGID=1000` | for GroupID - see below for explanation |
|
| `-e PGID=1000` | for GroupID - see below for explanation |
|
||||||
| `-e TZ=Europe/London` | Specify a timezone to use EG Europe/London, this is required for Radarr |
|
| `-e TZ=Europe/London` | Specify a timezone to use EG Europe/London |
|
||||||
| `-e GITURL=https://github.com/linuxserver/docker-cloud9.git` | Specify a git repo to checkout on first startup |
|
| `-e GITURL=https://github.com/linuxserver/docker-cloud9.git` | Specify a git repo to checkout on first startup |
|
||||||
|
| `-e USERNAME=` | Optionally specify a username for http auth |
|
||||||
|
| `-e PASSWORD=` | Optionally specify a password for http auth (if USERNAME and PASSWORD are not set, there will be no http auth) |
|
||||||
| `-v /code` | Optionally if you want to mount up a local folder of code instead of checking out |
|
| `-v /code` | Optionally if you want to mount up a local folder of code instead of checking out |
|
||||||
| `-v /var/run/docker.sock` | Needed if you plan to use Docker or compose commands |
|
| `-v /var/run/docker.sock` | Needed if you plan to use Docker or compose commands |
|
||||||
|
|
||||||
|
@ -223,4 +229,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
* **07.02.20:** - Add optional http auth.
|
||||||
* **02.06.19:** - Initial Release.
|
* **02.06.19:** - Initial Release.
|
||||||
|
|
|
@ -30,16 +30,18 @@ param_ports:
|
||||||
- { external_port: "8000", internal_port: "8000", port_desc: "The port for the Cloud9 web interface" }
|
- { external_port: "8000", internal_port: "8000", port_desc: "The port for the Cloud9 web interface" }
|
||||||
param_usage_include_env: true
|
param_usage_include_env: true
|
||||||
param_env_vars:
|
param_env_vars:
|
||||||
- { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London, this is required for Radarr"}
|
- { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London"}
|
||||||
|
|
||||||
# optional params
|
# optional params
|
||||||
opt_param_usage_include_vols: true
|
opt_param_usage_include_vols: true
|
||||||
opt_param_volumes:
|
opt_param_volumes:
|
||||||
- { vol_path: "/code", vol_host_path: "<path to your code>", desc: "Optionally if you want to mount up a local folder of code instead of checking out" }
|
- { vol_path: "/code", vol_host_path: "/path/to/your/code", desc: "Optionally if you want to mount up a local folder of code instead of checking out" }
|
||||||
- { vol_path: "/var/run/docker.sock", vol_host_path: "/var/run/docker.sock", desc: "Needed if you plan to use Docker or compose commands" }
|
- { vol_path: "/var/run/docker.sock", vol_host_path: "/var/run/docker.sock", desc: "Needed if you plan to use Docker or compose commands" }
|
||||||
opt_param_usage_include_env: true
|
opt_param_usage_include_env: true
|
||||||
opt_param_env_vars:
|
opt_param_env_vars:
|
||||||
- { env_var: "GITURL", env_value: "https://github.com/linuxserver/docker-cloud9.git", desc: "Specify a git repo to checkout on first startup"}
|
- { env_var: "GITURL", env_value: "https://github.com/linuxserver/docker-cloud9.git", desc: "Specify a git repo to checkout on first startup"}
|
||||||
|
- { env_var: "USERNAME", env_value: "", desc: "Optionally specify a username for http auth"}
|
||||||
|
- { env_var: "PASSWORD", env_value: "", desc: "Optionally specify a password for http auth (if USERNAME and PASSWORD are not set, there will be no http auth)"}
|
||||||
|
|
||||||
# application setup block
|
# application setup block
|
||||||
app_setup_block_enabled: true
|
app_setup_block_enabled: true
|
||||||
|
@ -48,5 +50,6 @@ app_setup_block: |
|
||||||
|
|
||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
|
- { date: "07.02.20:", desc: "Add optional http auth." }
|
||||||
- { date: "02.06.19:", desc: "Initial Release." }
|
- { date: "02.06.19:", desc: "Initial Release." }
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue