You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/docs/Developers_and_Administrators/Codabench-Installation.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,9 @@ cd codabench
23
23
cp .env_sample .env
24
24
```
25
25
26
-
Then edit the necessary settings inside. The most important are the database, storage, and Caddy/SSL settings. For a quick local setup, you should not need to edit this file.
26
+
Then edit the necessary settings inside. The most important are the database, storage, and Caddy/SSL settings. For a quick **local** setup, you should not need to edit this file. For a [public server deployment](How-to-deploy-Codabench-on-your-server.md), you will have to modify some settings.
27
+
28
+
!!! warning "It is important to change the default passwords if you intend for the instance to be public"
27
29
28
30
If you are using `AWS_S3_ENDPOINT_URL=http://minio:9000/` in your `.env`, edit your `/etc/hosts` file by adding this line `127.0.0.1 minio`
29
31
@@ -79,6 +81,8 @@ To enable SSL:
79
81
80
82
- If you already have a DNS for your server that is appropriate, in the `.env` simply set `DOMAIN_NAME` to your DNS. Remove any port designation like `:80`. This will have Caddy serve both HTTP and HTTPS.
81
83
84
+
!!! warning "For a public instance, HTTPS is strongly recomended"
85
+
82
86
### Validate user account on local instance
83
87
84
88
When deploying a local instance, the email server is not configured by default, so you won't receive the confirmation email during signup.
@@ -135,6 +139,12 @@ To set up remote compute workers, you can follow the steps described in our
135
139
136
140
## Troubleshooting
137
141
138
-
Read the following guide for troubleshooting: [How to deploy Codabench](How-to-deploy-Codabench-on-your-server.md).
142
+
Read the following guide for troubleshooting: [How to deploy Codabench](How-to-deploy-Codabench-on-your-server.md#frequently-asked-questions-faqs).
143
+
144
+
Also, adding `DEBUG=True` to the `.env` file can help with troubleshooting the deployment.
145
+
146
+
Open a [Github issue](https://github.com/codalab/codabench/issues) to find help with your installation
147
+
148
+
## Online Deployement
139
149
140
-
Also, adding `DEBUG=True` to the `.env` file can help with troubleshooting the deployment.
150
+
For information about online deployment of Codabench, go to the [following page](How-to-deploy-Codabench-on-your-server.md)
1. Install docker and docker-compose (see [instructions](Codabench-Installation.md#pre-requisites))
12
9
13
-
## Installing docker and common docker commands
10
+
2. Clone Codabench repository:
11
+
12
+
```sh
13
+
git clone https://github.com/codalab/codabench
14
+
```
14
15
15
-
- Install the [official](https://docs.docker.com/engine/install/ubuntu/) version of docker (preferably not the `snap` version)
16
16
17
17
## Modify .env file configuration
18
18
19
-
- Go to the folder where codabench is located then run the following command to generate an `.env` file to set the environment variables required by the service
19
+
Then you need to modify the `.env` file with the relevant settings. This step is critical to have a working and secure deployment.
20
+
21
+
- Go to the folder where codabench is located (`cd codabench`)
20
22
```bash
21
23
cp .env_sample .env
22
24
```
23
25
24
26
25
-
In the `.env` file, edit the following variables.
27
+
Then edit the variables inside the `.env` file.
26
28
27
-
a) For a local deployment it looks like this:
29
+
### Submissions endpoint
30
+
For an online deployment, you'll need to fill in the IP address or domain name in some environment variables.
!!! tip "If you are deploying on an azure machine, then AWS_S3_ENDPOINT_URL needs to be set to an IP address that is accessible on the external network"
0 commit comments