Commit graph

92 commits

Author SHA1 Message Date
Mikhail Kopylov
51a86b0cc8
fix: improve Docker container existence detection in install_server.sh 2023-09-28 16:28:50 -04:00
Amir Omidi
6ea0c1d084
Add icanhazip.com as IP source (#1207)
Add icanhazip.com as an alternative. Both ipinfo and checkip are sometimes inaccessible from certain areas.
2022-10-24 15:37:55 -05:00
Vinicius Fortuna
27931733d5
feat(manager): upgrade DigitalOcean image (#1148)
* Upgrade DO image to Ubuntu 20
* Install droplet agent for web console after server is ready
2022-08-22 15:00:16 -04:00
Vinicius Fortuna
19ddaa2b15
Merge pull request #1134 from Jigsaw-Code/fortuna-key
feat(server): increase TLS key size
2022-08-03 12:45:56 -04:00
Vinicius Fortuna
3d6752c048 Increase size of TLS key 2022-08-02 21:45:41 +00:00
Vinicius Fortuna
e8d19a1a73
Fix lint 2022-03-15 17:01:17 -04:00
Vinicius Fortuna
0b6c42ca12
Tweak wording 2022-03-15 16:58:20 -04:00
Nial McCallister
a215562040
Update install_server.sh 2022-03-15 20:51:12 +00:00
Nial McCallister
afd5b6de42
Update install_server.sh 2022-03-15 20:45:50 +00:00
Nial McCallister
467f0b3600
Merge branch 'Jigsaw-Code:master' into patch-1 2022-03-15 20:41:03 +00:00
Vinicius Fortuna
7389ce724f Migrate to eslint 2022-03-10 01:50:59 +00:00
Nial McCallister
8ec1892395
Exit the script if using an unsupported processor
Exit the script if using an unsupported ARM based processor
2022-03-02 13:59:01 +00:00
ValdikSS
59f4321f35
Update src/server_manager/install_scripts/install_server.sh
Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
2022-01-06 21:17:03 +03:00
ValdikSS
1a1db66bbe
Fix docker keyring permissions due to custom umask
Due to `umask 0007` set in `install_shadowbox` function, official docker installation script creates
`/usr/share/keyrings/docker-archive-keyring.gpg` file without read-other permission, which later
leads to permanent apt-update failure.

```
# sudo bash -c "$(cat install_server.sh)"
> Verifying that Docker is installed .......... NOT INSTALLED
> Would you like to install Docker? This will run 'curl https://get.docker.com/ | sh'. [Y/n] y
> Installing Docker ........................... OK
> Verifying Docker installation ............... 
Last error: # Executing docker install script, commit: 93d2499759296ac1f9c510605fef85052a2c32be
+ sh -c apt-get update -qq >/dev/null
W: GPG error: https://download.docker.com/linux/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
E: The repository 'https://download.docker.com/linux/ubuntu focal InRelease' is not signed.

Sorry! Something went wrong. If you can't figure this out, please copy and paste all this output into the Outline Manager screen, and send it to us, to see if we can help you.
Full log: /tmp/outline_log8Bv
```

Fix this issue by reverting the custom umask to a default one and manually fix
the existing file permissions, if any.
2021-12-20 05:03:15 +03:00
Daniel LaCosse
1b0563d92f
Remove deprecated buffer constructor (#1011)
* Remove deprecated buffer call

* use proper electron bin

* switch to electron in PATH

* fix indent
2021-11-16 10:11:33 -05:00
Laurent Barbe
dbee093052 Add quotes for CONTAINER_NAME 2021-10-18 17:48:30 +02:00
Laurent Barbe
5edb9da782 Remove the "docker start", it's already handled below 2021-10-18 16:24:04 +02:00
Laurent Barbe
18b014e56c
Change SHADOWBOX_NAME to CONTAINER_NAME 2021-10-15 14:46:40 +02:00
Laurent Barbe
fc1e3a58dc Allow custom shadow docker name to allow multiple instances 2021-10-05 17:07:12 +02:00
Ben Schwartz
c3a9c8c735 Install Docker on GCP using the Ubuntu dpkg method
This cuts the GCP server setup time approximately in half, likely
because it avoids multiple calls to "apt update", which
synchronizes all known package repositories.

This PR also updates the underlying Ubuntu image to the latest LTS
release.
2021-08-11 12:57:07 -04:00
Benjamin M. Schwartz
92d1ae2a52
Merge pull request #940 from Jigsaw-Code/bemasc-progress
Display a real progress bar for server installs
2021-07-29 12:16:15 -04:00
Ben Schwartz
fbc62f43b6 Rename states and listener pattern 2021-07-20 15:54:31 -04:00
Ben Schwartz
b4e5981aa5 Display a real progress bar for server installs
This change replaces the fake progress bar with a real one, reflecting
incremental installation progress.  It also updates the text to avoid
claiming that installation takes less than two minutes.  (It takes about
five minutes on GCP.)

Additionally, this change converts outline-server-progress-step.js to
Typescript.
2021-07-16 11:24:28 -04:00
qtong
ad1b4928f7
Update install_server.sh
in BSD tr dont have the option --delete but have -d
2021-06-26 21:23:55 +08:00
mpmcroy
b7cda5c7ae
Adds GCP create server flow (#864)
* gitignore

* Adds GCP token to CloudAccounts

* Checkpoint

* Checkpoint

* Refactors cloud accounts

* Addresses comments

* Auto-formatting

* Reverts gallery webpack GCP local server

* Reverts webpack config change

* Minor cleanup

* Removes unused class

* Reverts initial feature flag implementation

* Removes unneeded logging

* Adds credentials getters to CloudAccounts and updates tests

* Auto-format

* Adds FakeCloudAccounts

* Removes credentialsGetter from CloudAccounts

* Removes account factories from CloudAccounts

* Addresses review comments

* Addresses review commetns

* Auto-formatting

* Adds GcpAccount implementation

* Auto-format

* Auto-format

* Replace OAuth config client id

* Adds method to fetch OpenID userinfo

* Adds method to fetch OpenID userinfo

* Checkpoint

* Auto-format

* Adds method to refresh GCP access token

* Uncommenting

* Checkpoint

Auto-formatting

Updates intro step with gcp account

Auto-format

typo

* Add comment

* fetch refactor

* Auto-format

* Remove account from CloudAccounts

* Refactors refresh token exchange

* Auto-format

* Auto-format

* Initial GCP create server UI

* Auto-format

* Addresses review comments

* URL encoding

* Encode URL

* Adds GCP strings

* Addresses review comments

* Addresses review comments

* Addresses review comments

* Adds GCP create server app to gallery; Addresses review comments;

* Auto-formatting

* Addresses review comments

* Auto-format

* Addresses review comments

* Auto-format

* Addresses review comments

* Addresses review comments

* Auto-format

* Addresses review comment

* Auto-format

* Addresses review comments

* Minor fix

* Removes comments

* Addresses review comments

* Auto-format

* Addresses review comments
2021-04-09 14:15:00 -04:00
Benjamin M. Schwartz
dc05c8db90
Merge pull request #834 from Jigsaw-Code/bemasc-shellcheck
Add a fallback IP check URL
2021-03-01 13:05:16 -05:00
Jonathan Cohen
96f23cee97
s/cohenjon/JonathanDCohen/ (#835) 2021-03-01 12:35:56 -05:00
Ben Schwartz
7f65fb7f43 Add a fallback IP check URL
Fixes #776
2021-02-26 13:54:20 -05:00
Ben Schwartz
42ba3ae25b Minor tweaks 2021-02-17 13:14:28 -05:00
Ben Schwartz
7d1fe0205c Require scripts to be shellcheck-compliant 2021-02-17 11:57:32 -05:00
Ben Schwartz
d41833b65a Slightly nontrivial shell cleanup
These are slightly nontrivial shell cleanups discovered in the course of
attempting shellcheck compliance.
2021-02-16 21:17:47 -05:00
Ben Schwartz
f6bbab5378 Improved error handling in the install script 2021-02-12 17:33:55 -05:00
Benjamin M. Schwartz
f583c5ee81
Merge pull request #818 from Jigsaw-Code/bemasc-pre-shellcheck
Substantive shell script cleanups
2021-02-12 16:21:32 -05:00
Ben Schwartz
db3a6f3ff7 Revert "Get rid of tr"
This reverts commit c2ae78d4db.
2021-02-12 14:57:45 -05:00
Ben Schwartz
c2ae78d4db Get rid of tr 2021-02-12 14:18:16 -05:00
Ben Schwartz
4710a15536 Use --quiet instead of -q 2021-02-12 14:08:23 -05:00
Ben Schwartz
abc4ae8772 Substantive shell script cleanups
Running "shellcheck", and attempting to comply with the shell script
style guide, required hundreds of trivial changes, and a small number of
nontrivial ones.  For ease of review, this PR includes only the
nontrivial changes.
2021-02-12 11:48:18 -05:00
Ben Schwartz
fc6d447ccc Standardize curl usage 2021-02-11 14:40:28 -05:00
Ben Schwartz
8fd61a3fc3 Print a warning if the hostname or IP is invalid
See #776
2021-02-11 14:22:53 -05:00
Ben Schwartz
d54b916484 Switch STDOUT and STDERR 2021-02-10 11:02:43 -05:00
Ben Schwartz
64d4c9e1cf Reorganize output logging 2021-02-09 12:20:33 -05:00
Ben Schwartz
e7745aafdf Adjust logging strategy 2021-02-08 17:18:10 -05:00
Ben Schwartz
326131d371 Provide more detailed logs if setup fails
This should help us to debug mysterious installation failures.
2021-02-08 17:18:10 -05:00
Tanel Puhu
8f90acfe40
Set watchtower to update/watch only shadowbox container (#540) 2020-01-31 15:46:27 -05:00
Roland Warmerdam
9791f4dbc5
Update the watchtower image name (#431) 2020-01-31 14:32:53 -05:00
alalamav
4b95dbd23f
Fix formatting in shadowbox config (#562) 2020-01-23 18:18:41 -05:00
Jonathan Cohen
46b7ee0e33
Use the server config instead of env variables for the API port and the server hostname (#488)
* Get public hostname from config file

* Tidy up

* Respond to Review Comments

At some point down the line I royally screwed up my git history and
reverted a bunch of changes.  I'm not sure what or when, so I `git reset --hard 1cd28e4` and tried to redo my
past responses to comments from there.

* Export SB_PUBLIC_IP in cmd.sh

* respond to review comments

* Review response
2019-11-18 18:16:24 -05:00
John Richter
83cd9b64f3 Upgrade to the new version of Digital Ocean's Metrics agent (#529) 2019-10-30 19:04:15 -04:00
Jonathan Cohen
6e93cdc3f2
Avoid declare -g for old bash installs (#462) 2019-07-30 17:24:24 -04:00
fortuna
6faa9e4ab4 Fix error handling 2019-04-08 18:51:05 -04:00