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

feat: one-line install script#1924

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
bpmct merged 21 commits intomainfrombpmct/installscript
Jun 1, 2022
Merged

feat: one-line install script#1924

bpmct merged 21 commits intomainfrombpmct/installscript
Jun 1, 2022

Conversation

bpmct
Copy link
Member

@bpmctbpmct commentedMay 31, 2022
edited
Loading

Fixes#1852 The install script was originally used for code-server so many similar elements were used. I took inspiration from the code-server andkubectx docs for the installation guide as well.

  • remove unsupported methods leftover from code-server script
  • use proper package names for the coder/coder repo
  • test all methods and operating systems
    • Ubuntu/Debian amd64, arm64, armv7
    • MacOS (m1, amd64)
    • Fedora
    • Alpine Linux
    • Unsupported Linux (Arch)
  • fix has_standalone to reflect Coder's supported arcs
  • use accurate postinstall instructions for system services
  • Update README
    • Windows is not supported
  • host on coder.com/install.sh
  • fix lint rules

Test it:

Dry run

curl -L https://coder.com/install.sh| sh -s -- --dry-run

Install

curl -L https://coder.com/install.sh | sh

@bpmct
Copy link
MemberAuthor

bpmct commentedJun 1, 2022
edited
Loading

Gonna work with@kylecarbs to gethttps://coder.com/install.sh up and running

Edit: done

bpmct reacted with thumbs up emojikylecarbs reacted with eyes emoji

@bpmctbpmct marked this pull request as ready for reviewJune 1, 2022 03:37
install.sh Outdated
Comment on lines 351 to 355
# MacOS releases are packaged as .zip
case $OS in
darwin) STANDALONE_ARCHIVE_FORMAT=zip ;;
*) STANDALONE_ARCHIVE_FORMAT=tar.gz ;;
esac
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'm not super happy with this implementation, had to make some adjustments since our OSX releases are published as .zips

Comment on lines +55 to +56
env:
SHELLCHECK_OPTS: --external-sources
Copy link
MemberAuthor

@bpmctbpmctJun 1, 2022
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This resolved some warnings around unspecified inputs. Seehttps://www.mankier.com/1/shellcheck#-x andkoalaman/shellcheck#902

The error was only for `/etc/os-release` in the script
$makelint/shellcheckIninstall.shline424:./etc/os-release^-------------^SC1091:Notfollowing:/etc/os-releasewasnotspecifiedasinput(seeshellcheck-x).Ininstall.shline450:./etc/os-release^-------------^SC1091:Notfollowing:/etc/os-releasewasnotspecifiedasinput(seeshellcheck-x).

kylecarbs reacted with thumbs up emoji
```sh
coder server --dev
```

## docker-compose
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@khorne3 I feel like this section is a bit too long. Thoughts on stopping afterdocker-compose up?

Copy link
Contributor

@khorne3khorne3Jun 1, 2022
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think afterdocker-compose up say, "Follow the on-screen instructions" so people aren't left hanging and then omit the remainder

@bpmctbpmctforce-pushed thebpmct/installscript branch fromae88c6c toa16a04aCompareJune 1, 2022 14:44
@bpmctbpmctenabled auto-merge (squash)June 1, 2022 14:44
@bpmctbpmctdisabled auto-mergeJune 1, 2022 14:45
install.sh Outdated
Comment on lines 45 to 49
--prefix <dir>
Sets the prefix used by standalone release archives. Defaults to ~/.local
The release is unarchived into ~/.local/lib/coder-X.X.X
and the binary symlinked into ~/.local/bin/coder
To install system wide pass ---prefix=/usr/local
Copy link
MemberAuthor

@bpmctbpmctJun 1, 2022
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@kylecarbs actually, what do you think of defaulting to/usr/local/bin? code-server defaults to the home-directory one, but it's often not in PATH.helm's install script does this, so I wouldn't consider it too invasive.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

done in6879752

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

re-requested review on6879752 and8cba04c

@bpmctbpmct requested a review fromkylecarbsJune 1, 2022 17:50
@bpmctbpmct merged commit46ffb67 intomainJun 1, 2022
@bpmctbpmct deleted the bpmct/installscript branchJune 1, 2022 19:15
kylecarbs pushed a commit that referenced this pull requestJun 10, 2022
* feat: one-line install script* remove homebrew support* remove arch linux* use proper filename for packages* fix variable format* fix systemd instructions* fixes to standalone script* fix missing var bugs* fix standalone install* fix for MacOS* format* fix armv7 assets and zips* remove windows* update install docs* support external sources with shellcheck* shfmt* add external sources to GitHub action & unfold* change wording* first template docs* default to /usr/local instead* add option for binary name
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@khorne3khorne3khorne3 approved these changes

@jsjoeiojsjoeioAwaiting requested review from jsjoeio

@kylecarbskylecarbsAwaiting requested review from kylecarbs

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Feat: one-linecurl ... | sh install script
3 participants
@bpmct@kylecarbs@khorne3

[8]ページ先頭

©2009-2025 Movatter.jp