Skip to content

Commit a400e45

Browse files
committed
Revert accidental push to master
1 parent 9585ac6 commit a400e45

File tree

2 files changed

+5
-22
lines changed

2 files changed

+5
-22
lines changed

Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
6060
git \
6161
libmagic1 \
6262
docker.io \
63-
ca-certificates \
64-
build-essential \
65-
gcc \
66-
pkg-config
63+
ca-certificates
6764

6865
RUN mkdir -p /opt/docsrs/prefix
6966

@@ -74,4 +71,4 @@ COPY docker-entrypoint.sh /opt/docsrs/entrypoint.sh
7471

7572
WORKDIR /opt/docsrs
7673
ENTRYPOINT ["/opt/docsrs/entrypoint.sh"]
77-
CMD ["start-web-server"]
74+
CMD ["daemon", "--foreground"]

README.md

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ Example badges for `mio` crate:
4949

5050
## Development
5151

52-
We strongly recommend using [docker-compose](https://docs.docker.com/compose/),
53-
which will make it easier to get started without adding new users and packages
54-
to your host machine.
52+
We strongly recommend using docker-compose, which will make it easier to get started
53+
without adding new users and packages to your host machine.
5554

5655
### Getting started
5756

@@ -61,20 +60,7 @@ Make sure you have docker-compose and are able to download ~10GB data on the fir
6160
git clone https://github.com/rust-lang/docs.rs.git docs.rs
6261
cd docs.rs
6362
cp .env.sample .env
64-
65-
docker-compose build # This builds the docs.rs binary
66-
67-
# Build a sample crate to make sure it works
68-
# This sets up the docs.rs build environment, including installing the nightly
69-
# Rust toolchain. This will take a while the first time but will be cached afterwards.
70-
docker-compose run web build crate regex 1.3.1
71-
72-
# This starts the web server but does not build any crates.
73-
# If you want to build crates, see below under `build` subcommand
74-
docker-compose up
75-
76-
# As soon as you see `cratesfyi "$@"`
77-
# you should be able to navigate to http://localhost:3000
63+
docker-compose up # This may take a half hour or more on the first run
7864
```
7965

8066
If you need to store big files in the repository's directory it's recommended to

0 commit comments

Comments
 (0)