Instructions for installing/using Docker
This commit is contained in:
parent
36a177b7b3
commit
531058d51c
@ -19,6 +19,8 @@ A.I. Duet is composed of two parts, the front-end which is in the 'static' folde
|
|||||||
|
|
||||||
## DOCKER
|
## DOCKER
|
||||||
|
|
||||||
|
[Docker](https://www.docker.com/) is an open-source containerization software which simplifies installation across various OSes. It is the simplest method to build and install both the front-end and back-end components. Once you have Docker installed, you can just run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo docker build -t ai-duet .
|
$ sudo docker build -t ai-duet .
|
||||||
$ sudo docker run -t -p 8080:8080 ai-duet
|
$ sudo docker run -t -p 8080:8080 ai-duet
|
||||||
@ -28,7 +30,7 @@ You can now play with A.I. Duet at [localhost:8080](http://localhost:8080).
|
|||||||
|
|
||||||
## FRONT END
|
## FRONT END
|
||||||
|
|
||||||
To build the client-side javascript, first install [node](https://nodejs.org) and [webpack](https://webpack.github.io/). Then you can install of the dependencies of the project by typing the following in the terminal:
|
If you installed with Docker, the front-end has already been built. To build the client-side javascript outside of Docker, first install [node](https://nodejs.org) and [webpack](https://webpack.github.io/). Then you can install of the dependencies of the project by typing the following in the terminal:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd static
|
cd static
|
||||||
@ -43,6 +45,8 @@ webpack -p
|
|||||||
|
|
||||||
### BACK END
|
### BACK END
|
||||||
|
|
||||||
|
If you installed with Docker, the these dependencies have already been installed. To build the back-end separately, follow these instructions:
|
||||||
|
|
||||||
The back-end consists of a [Flask](http://flask.pocoo.org/) server, [TensorFlow](https://www.tensorflow.org/) and [Magenta](https://github.com/tensorflow/magenta).
|
The back-end consists of a [Flask](http://flask.pocoo.org/) server, [TensorFlow](https://www.tensorflow.org/) and [Magenta](https://github.com/tensorflow/magenta).
|
||||||
|
|
||||||
First install [TensorFlow](https://www.tensorflow.org/versions/master/get_started/os_setup.html) and [Magenta](https://github.com/tensorflow/magenta#installation).
|
First install [TensorFlow](https://www.tensorflow.org/versions/master/get_started/os_setup.html) and [Magenta](https://github.com/tensorflow/magenta#installation).
|
||||||
|
Loading…
Reference in New Issue
Block a user