Skip to content

Commit 0cc3b64

Browse files
authored
Merge pull request #1352 from herbie-fp/release-2.2
Release Herbie 2.2
2 parents c1b7ae6 + 402d4f3 commit 0cc3b64

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,22 @@
44

55
# Build image
66
# Builds output under /herbie/egg-herbie
7-
FROM --platform=linux/amd64 rust:1.61.0 AS egg-herbie-builder
7+
FROM rust:1.88.0 AS egg-herbie-builder
88
WORKDIR /herbie
99
COPY egg-herbie egg-herbie
1010
RUN cargo build --release --manifest-path=egg-herbie/Cargo.toml
11+
RUN cargo install --locked --git https://github.com/egraphs-good/egglog.git --rev 052a330de22d40e9eded19e7f0891c921f7f458c
1112

1213
# Production image
13-
FROM --platform=linux/amd64 racket/racket:8.13-full AS production
14+
FROM racket/racket:8.17-full AS production
1415
LABEL maintainer="Pavel Panchekha <[email protected]>"
1516
COPY --from=egg-herbie-builder /herbie/egg-herbie /src/egg-herbie
16-
RUN raco pkg install /src/egg-herbie
17+
RUN raco pkg install --no-docs /src/egg-herbie
18+
COPY --from=egg-herbie-builder /usr/local/cargo/bin/egglog /usr/local/bin/egglog
1719
COPY src /src/herbie
18-
RUN raco pkg install --auto /src/herbie
20+
RUN raco pkg install --no-docs --auto /src/herbie
1921
ENTRYPOINT ["racket", "/src/herbie/main.rkt"]
2022
EXPOSE 80
2123
# NOTE --public allows the Docker host to interact with the demo,
2224
# typical users shouldn't need to use it.
23-
CMD ["web", "--public", "--port", "80", "--quiet", "--demo"]
25+
CMD ["web", "--public", "--port", "80", "--quiet", "--demo", "--threads", "2"]

www/doc/2.2/docker.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ <h2>Running the web interface</h2>
6464
default; this command uses the <code>-p 8000:80</code> option to
6565
expose that container port as the host's port 8000.)</p>
6666

67+
<p>If you want to pass custom flags to the Herbie web server, make
68+
sure to also pass the <code>--public</code>
69+
and <code>--port=80</code> flags to enable the Dockerized Herbie to
70+
talk to your computer. Make sure to access the server using HTTP,
71+
not HTTPS.</p>
72+
6773
<p>If you are using the <code>--log</code>
6874
or <code>--save-session</code> flags for the web shell, you will
6975
also need to mount the relevant directories into the Docker

www/doc/latest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1
1+
2.2

www/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ <h3>Contribute</h3>
7979

8080
<h2>Herbie Project News</h2>
8181
<ol id="news">
82+
<li><time>4 Aug</time><a href="doc/2.2/release-notes.html">Herbie 2.2</a> is out today! The star of this release is a new <a href="doc/2.2/platforms.html">platform API</a> for pluggable compilation targets. Try it out!</li>
83+
<hr class="yearmark" />
8284
<li><time>17 Jul</time>Today we are releasing <a href="doc/2.1/release-notes.html">Herbie 2.1</a>! This release makes Herbie's generated code&mdash;and Herbie itself&mdash;faster. Try it out!</li>
8385
<hr class="yearmark" />
8486
<li><time>30 Jun</time>We are proud to release <a href="doc/2.0/release-notes.html">Herbie 2.0</a>! This release teaches Herbie to optimize for both accuracy and speed, and includes a complete redesign of Herbie's reports and metrics. Try it out!</li>

0 commit comments

Comments
 (0)