Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/deploy-code-serverPublic template

Commitfb6b7b4

Browse files
committed
Merge branch 'main' into local-container
2 parentscecaa7d +297319e commitfb6b7b4

File tree

3 files changed

+29
-8
lines changed

3 files changed

+29
-8
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A collection of one-click buttons and scripts for deploying [code-server](https:
44

55
|| Name| Type| Lowest-Price Plan| Deploy|
66
| ---------------------------------------------------------------------------------------------------------------| -----------------| -------------| -----------------------------| -------------------------------------------------------|
7-
|[![AWS EC2](img/logo/aws-ec2.png)](https://digitalocean.com)| AWS EC2| VM| Free Tier, 1 CPU, 1 GB RAM|[see guide](guides/aws-ec2.md)|
7+
|[![AWS EC2](img/logo/aws-ec2.png)](https://aws.amazon.com/ec2)| AWS EC2| VM| Free Tier, 1 CPU, 1 GB RAM|[see guide](guides/aws-ec2.md)|
88
|[![DigitalOcean](img/logo/digitalocean.png)](https://digitalocean.com)| DigitalOcean| VM| $5/mo, 1 CPU, 1 GB RAM|[see guide](guides/digitalocean.md)|
99
|[![Vultr](img/logo/vultr.png)](https://vultr.com)| Vultr| VM| $3.50/mo, 1 CPU, 512 MB RAM| coming soon|
1010
|[![Linode](img/logo/linode.png)](https://linode.com)| Linode| VM| $5/mo, 1 CPU, 1 GB RAM|[see guide](guides/linode.md)|

‎deploy-container/README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@ COPY deploy-container/myTool /home/coder/myTool
4242

4343
##Environment variables
4444

45-
| Variable Name| Description| Default Value|
46-
| -----------------| ------------------------------------------------------------------------------------------------| -------------------|
47-
|`PASSWORD`| Password for code-server||
48-
|`HASHED_PASSWORD`| Overrrides PASSWORD.[SHA-256 hash](https://xorbin.com/tools/sha256-hash-calculator) of password|
49-
|`USE_LINK`| Use code-server --link instead of a password (coming soon)| false|
50-
|`GIT_REPO`| A git repository to clone||
51-
|`START_DIR`| The directory code-server opens (and clones repos in)| /home/coder/project|
45+
| Variable Name| Description| Default Value|
46+
| ------------------| --------------------------------------------------------------------------------------------------| -------------------|
47+
|`PASSWORD`| Password for code-server||
48+
|`HASHED_PASSWORD`| Overrrides PASSWORD.[SHA-256 hash](https://xorbin.com/tools/sha256-hash-calculator) of password|
49+
|`USE_LINK`| Use code-server --link instead of a password (coming soon)| false|
50+
|`GIT_REPO`| A git repository to clone||
51+
|`DOTFILES_REPO`| A[dotfiles](https://dotfiles.github.io/) repo to save preferences. Runs install.sh, if it exists.||
52+
|`DOTFILES_SYMLINK`| Symlinks dotfiles repo to $HOME, if exits.| true|
53+
|`START_DIR`| The directory code-server opens (and clones repos in)| /home/coder/project|
5254

5355
---
5456

‎deploy-container/entrypoint.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,25 @@ else
7676

7777
fi
7878

79+
# Add dotfiles, if set
80+
if [-n"$DOTFILES_REPO" ];then
81+
# grab the files from the remote instead of running project_init()
82+
echo"[$PREFIX] Cloning dotfiles..."
83+
mkdir -p$HOME/dotfiles
84+
git clone$DOTFILES_REPO$HOME/dotfiles
85+
86+
DOTFILES_SYMLINK="${RCLONE_AUTO_PULL:-true}"
87+
88+
# symlink repo to $HOME
89+
if [$DOTFILES_SYMLINK="true" ];then
90+
shopt -s dotglob
91+
ln -sf source_file$HOME/dotfiles/*$HOME
92+
fi
93+
94+
# run install script, if it exists
95+
[-f"$HOME/dotfiles/install.sh" ]&&$HOME/dotfiles/install.sh
96+
fi
97+
7998
echo"[$PREFIX] Starting code-server..."
8099
# Now we can run code-server with the default entrypoint
81100
/usr/bin/entrypoint.sh --bind-addr 0.0.0.0:8080$START_DIR

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp