Archived
2
0
This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
neko-custom/.docker/README.md

41 lines
1.5 KiB
Markdown
Raw Normal View History

2021-04-02 10:18:50 +13:00
# How to contribute to neko
2021-04-02 10:23:08 +13:00
If you want to contribute, but do not want to install anything on your host system, we got you covered. You only need docker. Technically, it could be done using vs code development in container, but this is more fun:).
2021-04-02 10:18:50 +13:00
You need to copy `.env.development` to `.env` and customize values.
## Step 1: Building server
- `./build` - You can use this command to build your specified `SERVER_TAG` along with base image.
If you want, you can build other tags. `base` tag needs to be build first:
- `./build base`
- `./build firefox`
- `./build chromium`
2021-06-08 06:00:55 +12:00
- `./build google-chrome`
2021-04-02 10:18:50 +13:00
- etc...
## Step 2: Starting server
- `./start-server` - Starting server image you specified in `.env`.
- `./start-server -r` - Shortcut for rebuilding server binary and then starting.
2021-04-02 10:23:08 +13:00
If you are changing something in the server code, you do not want to rebuild container each time. You can just rebuild your binary:
2021-04-02 10:18:50 +13:00
- `./rebuild-server` - Rebuild only server binary.
2021-04-02 10:23:08 +13:00
- `./rebuild-server -f` - Force to rebuild whole Golang environment (you should do this only of you change some dependencies).
2021-04-02 10:18:50 +13:00
2021-04-02 10:23:08 +13:00
## Step 3: Serving client
2021-04-02 10:18:50 +13:00
- `./serve-client` - Serving vue.js client.
2021-04-02 10:23:08 +13:00
- `./serve-client -i` - Install all dependencies.
2021-04-02 10:18:50 +13:00
## Debug
You can navigate to `CLIENT_PORT` and see live client there. It will be connected to your local server on `SERVER_PORT`.
If you are leaving client as is and not changing it, you don't need to start `./serve-client` and you can access server's GUI directly on `SERVER_PORT`.
Feel free to open new PR.