Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2b5971

Browse files
authored
Bumping version (#75)
* more docker readme changes * bumping version
1 parent 29c67ab commit a2b5971

2 files changed

Lines changed: 18 additions & 20 deletions

File tree

docker/README.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ OpenFermion (or any of its plugins) using the standard installation.
2424

2525
You first need to install [Docker](https://www.docker.com/).
2626
Once Docker is installed, open a command line terminal and check the list
27-
of running virtual machines with `docker-machine ls`
28-
Assuming this is the firt time Docker has been run, the list should be empty.
27+
of running virtual machines with `docker-machine ls`.
28+
Assuming this is the first time Docker has been run, the list should be empty.
2929
Create a virtual machine by running:
3030
```
3131
docker-machine create --driver virtualbox default
@@ -57,9 +57,9 @@ Dockerfile for building the OpenFermion image (docker/dockerfile) and run
5757
docker build -t openfermion_docker .
5858
```
5959

60-
where "openfermion_docker" is just an arbitrary name for our docker container.
60+
where "openfermion_docker" is just an arbitrary name for our docker image.
6161
What the Dockerfile does is to start from a base image of Ubuntu and install
62-
OpenFermion, its plugins and the necessary applications needed for running these
62+
OpenFermion, its plugins, and the necessary applications needed for running these
6363
programs. This is a fairly involved installation and will take some time
6464
(perhaps up to thiry minutes depending on the computer). Once installation has
6565
completed, run the image with
@@ -69,15 +69,16 @@ docker run -it openfermion_docker
6969
```
7070

7171
With this command the terminal enters a new environment which emulates Ubuntu with
72-
OpenFermion and accessories installed. The freshly built image is ready to run any program that uses
73-
OpenFermion. To transfer files from somewhere on the disk to the Docker
72+
OpenFermion and accessories installed. To transfer files from somewhere on the disk to the Docker
7473
container, first run `docker ps` in a seperate terminal from the one running
75-
docker. This returns a list of running containers, e.g.:
74+
Docker. This returns a list of running containers, e.g.:
7675

76+
```
7777
+CONTAINER ID IMAGE COMMAND CREATED
7878
+STATUS PORTS NAMES
79-
+3cc87ed4205b 5a67a4d66d05 "/bin/bash" 5 seconds ago
80-
+Up 5 seconds competent_feynman
79+
+3cc87ed4205b 5a67a4d66d05 "/bin/bash" 2 hours ago
80+
+Up 2 hours competent_feynman
81+
```
8182

8283
In this example, the container name is "competent_feynman" (the name is
8384
random and generated automatically). Using this name, one can then copy
@@ -95,18 +96,16 @@ remotely into the Docker container.
9596

9697
## Running Jupyter notebook with Docker backend
9798

98-
To run Jupyter notebook in a browser with a Docker container running as a
99-
backend, first check the ip address of the virtual machine by running
99+
To run Jupyter notebooks (such as our demos) in a browser with a Docker container
100+
running as a backend, first check the ip address of the virtual machine by running
100101

101102
```
102103
docker-machine ip default
103104
```
104105

105106
where "default" can be replaced by the name of whichever virtual machine whose
106-
ip address you want to check.
107-
108-
Assuming the Docker image for OpenFermion is already built and is called
109-
openfermion_docker, run the container with an additional -p flag:
107+
ip address you want to check. Assuming the Docker image for OpenFermion is
108+
already built and is called openfermion_docker, run the container with an additional -p flag:
110109

111110

112111
```
@@ -115,9 +114,8 @@ docker run -it -p 8888:8888 openfermion_docker
115114

116115
Here the numbers 8888 simply specifies the port number through which the Docker
117116
container communicates with the browser. If for some reason this port is not
118-
available, any other number in 8000-9000 will do.
119-
120-
When the terminal enters the Docker container, run Jupyter notebook by
117+
available, any other number in 8000-9000 will do. When the terminal enters the Docker container,
118+
run a Jupyter notebook with:
121119

122120
```
123121
jupyter-notebook --allow-root --no-browser --port 8888 --ip=0.0.0.0
@@ -142,5 +140,5 @@ Open a browser and type in the address line
142140
where [virtual machine ip] is extracted from `docker-machine ip` and 8888 is the port
143141
number (or any other port number that one specifies previously). A webpage
144142
asking for token string should appear. Use the token string obtained from before to
145-
enter Jupyter Notebook. If logged in successfully, you should be able to freely
143+
enter Jupyter notebook. If logged in successfully, you should be able to freely
146144
navigate through the entire Docker image and launch any Jupyter notebook in the image.

src/openfermion/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
# limitations under the License.
1212

1313
"""Define version number here and read it from setup.py automatically"""
14-
__version__ = "0.1a4"
14+
__version__ = "0.1a5"

0 commit comments

Comments
 (0)