Skip to content

Commit 9edf274

Browse files
committed
Add development usage section for Docker (under production usage), with instructions to build and run solid using the Dockerfile at the root of the repository
1 parent 0ff1937 commit 9edf274

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,45 @@ See the [documentation to run Solid using docker and docker-compose](https://git
235235

236236
We have automatic builds set up, so commits to master will trigger a build of https://hub.docker.com/r/nodesolidserver/node-solid-server.
237237

238+
### Development usage
239+
240+
If you want to use Docker in development, then you can build it locally with:
241+
242+
```bash
243+
git clone https://github.com/solid/node-solid-server
244+
cd node-solid-server
245+
docker build -t node-solid-server .
246+
```
247+
248+
Run with:
249+
```bash
250+
docker run -p 8443:8443 --name solid node-solid-server
251+
```
252+
253+
This will enable you to login to solid on https://localhost:8443 and then create a new account
254+
but not yet use that account. After a new account is made you will need to create an entry for
255+
it in your local (/etc/)hosts file in line with the account and subdomain, i.e. --
256+
257+
```pre
258+
127.0.0.1 newsoliduser.localhost
259+
```
260+
261+
You can modify the config within the docker container as follows:
262+
263+
- Copy the `config.json` to the current directory with:
264+
```bash
265+
docker cp solid:/usr/src/app/config.json .
266+
```
267+
- Edit the `config.json` file
268+
- Copy the file back with
269+
```bash
270+
docker cp config.json solid:/usr/src/app/
271+
```
272+
- Restart the server with
273+
```bash
274+
docker restart solid
275+
```
276+
238277
## Library Usage
239278

240279
### Install Dependencies

0 commit comments

Comments
 (0)