Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-code-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MyDockerImages
docker-code-server
Commits
21907310
Commit
21907310
authored
5 years ago
by
aptalca
Browse files
Options
Downloads
Patches
Plain Diff
make password auth optional
parent
afd06e99
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+3
-3
3 additions, 3 deletions
README.md
readme-vars.yml
+2
-3
2 additions, 3 deletions
readme-vars.yml
root/etc/services.d/code-server/run
+15
-1
15 additions, 1 deletion
root/etc/services.d/code-server/run
with
20 additions
and
7 deletions
README.md
+
3
−
3
View file @
21907310
...
...
@@ -59,7 +59,7 @@ docker create \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/London \
-e PASSWORD=password \
-e PASSWORD=password
`#optional`
\
-p 8443:8443 \
-v /path/to/appdata/config:/config \
--restart unless-stopped \
...
...
@@ -82,7 +82,7 @@ services:
-
PUID=1000
-
PGID=1000
-
TZ=Europe/London
-
PASSWORD=password
-
PASSWORD=password
#optional
volumes:
-
/path/to/appdata/config:/config
ports:
...
...
@@ -100,7 +100,7 @@ Container images are configured using parameters passed at runtime (such as thos
| `-e PUID=1000` | for UserID - 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 |
| `-e PASSWORD=password` |
Specify a
web gui password |
| `-e PASSWORD=password` |
Optional
web gui password
, if not provided, there will be no auth
|
| `-v /config` | Contains all relevant configuration files. |
## User / Group Identifiers
...
...
This diff is collapsed.
Click to expand it.
readme-vars.yml
+
2
−
3
View file @
21907310
...
...
@@ -43,12 +43,11 @@ param_ports:
param_usage_include_env
:
true
param_env_vars
:
-
{
env_var
:
"
TZ"
,
env_value
:
"
Europe/London"
,
desc
:
"
Specify
a
timezone
to
use
EG
Europe/London"
}
-
{
env_var
:
"
PASSWORD"
,
env_value
:
"
password"
,
desc
:
"
Specify
a
web
gui
password"
}
# optional container parameters
opt_param_usage_include_env
:
fals
e
opt_param_usage_include_env
:
tru
e
opt_param_env_vars
:
-
{
env_var
:
"
"
,
env_value
:
"
"
,
desc
:
"
"
}
-
{
env_var
:
"
PASSWORD
"
,
env_value
:
"
password
"
,
desc
:
"
Optional
web
gui
password,
if
not
provided,
there
will
be
no
auth
"
}
optional_block_1
:
false
optional_block_1_items
:
"
"
...
...
This diff is collapsed.
Click to expand it.
root/etc/services.d/code-server/run
+
15
−
1
View file @
21907310
...
...
@@ -2,5 +2,19 @@
cd
/opt/code-server
||
exit
if
[
-n
"
${
PASSWORD
}
"
]
;
then
PASSARG
=
"-P
${
PASSWORD
}
"
else
PASSARG
=
"-N"
echo
"starting with no password"
fi
exec
\
s6-setuidgid abc /opt/code-server/code-server
-H
-P
${
PASSWORD
}
-d
/config/data
-e
/config/extensions
--disable-telemetry
/config/workspace
s6-setuidgid abc
\
/opt/code-server/code-server
\
-H
\
${
PASSARG
}
\
-d
/config/data
\
-e
/config/extensions
\
--disable-telemetry
\
/config/workspace
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment