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: www/doc/2.0/docker.html
+40-18Lines changed: 40 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -48,10 +48,11 @@ <h2>Installing Herbie via Docker</h2>
48
48
49
49
<pre>docker run -it uwplse/herbie shell</pre>
50
50
51
-
<p>This will read input from the standard input.</p>
51
+
<p>This will download the Herbie image and then run
52
+
its <ahref="options.html">shell tool</a>.</p>
52
53
53
-
<p>Note that Herbie in Docker is more limited; for example, it will
54
-
not recognize plugins installed outside the Docker container.</p>
54
+
<p>Herbie in Docker is more limited; for example, it will not
55
+
recognize plugins installed outside the Docker container.</p>
55
56
56
57
<h2>Running the web interface</h2>
57
58
@@ -113,30 +114,51 @@ <h2>Generating files and reports</h2>
113
114
have the correct permissions set.
114
115
</p>
115
116
116
-
<h2>For developers: updating the Docker image + Dockerfile</h2>
117
+
<h2>Building the Docker image</h2>
118
+
119
+
<p>This section is primarily of interest for the Herbie developers.</p>
117
120
118
121
<p>
119
-
For building and testing, first clone the repo and confirm that Herbie builds correctly with <code>make install</code>.
122
+
Clone the repo and confirm that Herbie builds correctly
123
+
with <code>make install</code>.
120
124
</p>
125
+
121
126
<p>
122
-
Next, examine the Dockerfile and Makefile together. The Dockerfile should follow a process exactly like the Makefile, except a clean initial environment is assumed. The build may be split into 2 or more stages to limit the size of the resulting image. Each stage consists of a <code>FROM</code> command and a series of further commands to build up the desired environment, and later stages can refer to earlier stages by name--for example, <code>COPY --from=earlier-stage ...</code> can copy files compiled in earlier images. You may need to do things like bumping the version of Rust used for binary compilation or the version of Racket used in production, or adjusting paths to match the newest version of the repo.
0 commit comments