... | ... | @@ -8,13 +8,13 @@ Below are some system specific notes. |
|
|
|
|
|
On Ubuntu 20, you need to install couple packages first:
|
|
|
|
|
|
```
|
|
|
```console
|
|
|
$ sudo apt install rake docker docker-compose python3-sphinx-rtd-theme openjdk-11-jre-headless
|
|
|
```
|
|
|
|
|
|
Get the stork sources, then:
|
|
|
```
|
|
|
$ rake docker_up
|
|
|
```console
|
|
|
$ rake demo:up
|
|
|
```
|
|
|
This is by far the simplest method. However, it requires the docker environment and Java to be up and running.
|
|
|
|
... | ... | @@ -22,7 +22,7 @@ This is by far the simplest method. However, it requires the docker environment |
|
|
|
|
|
1. Make sure that postgresql is installed:
|
|
|
|
|
|
```
|
|
|
```console
|
|
|
$ sudo apt install postgresql postgresql-client
|
|
|
$ sudo systemctl start postgresql
|
|
|
```
|
... | ... | @@ -36,7 +36,7 @@ host all all ::1/128 password |
|
|
```
|
|
|
|
|
|
3. Create the database, stork user and assign necessary permissions:
|
|
|
```
|
|
|
```console
|
|
|
# su - postgres
|
|
|
postgres@ubuntu:~$ psql postgres
|
|
|
psql (10.10 (Ubuntu 10.10-0ubuntu0.18.04.1))
|
... | ... | @@ -56,20 +56,18 @@ postgres=# \q |
|
|
|
|
|
4. Install Rake: `sudo apt install rake`
|
|
|
5. Build the code:
|
|
|
```
|
|
|
rake build_agent build_backend build_migrations build_server build_ui
|
|
|
```console
|
|
|
rake build
|
|
|
```
|
|
|
6. Initialize the db:
|
|
|
```
|
|
|
```console
|
|
|
$ backend/cmd/stork-db-migrate/stork-db-migrate init
|
|
|
$ backend/cmd/stork-db-migrate/stork-db-migrate up
|
|
|
```
|
|
|
|
|
|
7. Run server in one console: `rake run_server`
|
|
|
|
|
|
8. Run the UI in another console: `rake serve_ui`
|
|
|
7. Run server in one console: `rake run:server`
|
|
|
|
|
|
9. Run the agent in the third console: `rake run_agent`
|
|
|
9. Run the agent in another console: `rake run:agent`
|
|
|
|
|
|
You can now connect to http://localhost:4200, log in and connect your machine available at localhost:8888.
|
|
|
|
... | ... | @@ -101,17 +99,16 @@ CREATE EXTENSION |
|
|
```
|
|
|
4. (optional) Temporarily store the password in STORK_DATABASE_PASSWORD. Otherwise many of the following steps will ask about it: ```export STORK_DATABASE_PASSWORD=stork```
|
|
|
5. Initialize the DB:
|
|
|
```
|
|
|
```console
|
|
|
$ backend/cmd/stork-db-migrate/stork-db-migrate init
|
|
|
```
|
|
|
6. Upgrade the database:
|
|
|
```
|
|
|
```console
|
|
|
$ backend/cmd/stork-db-migrate/stork-db-migrate up
|
|
|
```
|
|
|
|
|
|
7. Run the server: ```rake run_server```
|
|
|
8. (in another console) Run the UI frontend: ```rake serve_ui```
|
|
|
9. (in another console) Run the agent: ```rake run_agent```
|
|
|
7. Run the server: ```rake run:server```
|
|
|
9. (in another console) Run the agent: ```rake run:agent```
|
|
|
10. Click add new machine, use localhost:8888. This will at the agent you ran in the step 9 above.
|
|
|
|
|
|
## FreeBSD
|
... | ... | @@ -125,4 +122,4 @@ The following commands can be used to install Stork agent on FreeBSD. This proce |
|
|
1. mkdir -p tools/3.11.2/bin
|
|
|
1. cd tools/3.11.2/bin
|
|
|
1. ln -s `which protoc`
|
|
|
1. rake build_agent |
|
|
1. rake build:agent |