Merge pull request #6 from codecrafters-io/sync

This commit is contained in:
Paul Kuruvilla 2022-02-08 01:16:37 +00:00 committed by GitHub
commit c8ed0999e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,20 @@ we'll learn about [chroot](https://en.wikipedia.org/wiki/Chroot),
**Note**: If you're viewing this repo on GitHub, head over to **Note**: If you're viewing this repo on GitHub, head over to
[codecrafters.io](https://codecrafters.io) to signup for early access. [codecrafters.io](https://codecrafters.io) to signup for early access.
# Usage # Passing the first stage
The entry point for your Docker implementation is in `src/main.rs`. Study and
uncomment the relevant code, and push your changes to pass the first stage:
```sh
git add .
git commit -m "pass the first stage"
git push origin master
```
That's all!
# Setup for stages 2 & beyond
1. Ensure you have [Docker](https://www.docker.com/) installed locally. 1. Ensure you have [Docker](https://www.docker.com/) installed locally.
1. Follow the details below ("Running your program locally") to run your Docker 1. Follow the details below ("Running your program locally") to run your Docker
@ -45,24 +58,3 @@ mydocker run ubuntu:latest /usr/local/bin/docker-explorer echo hey
This command compiles your Rust project, so it might be slow the first time you This command compiles your Rust project, so it might be slow the first time you
run it. Subsequent runs will be fast. run it. Subsequent runs will be fast.
# Passing the first stage
CodeCrafters runs tests when you do a `git push`. Make an empty commit and push
your solution to see the first stage fail.
```sh
git commit --allow-empty -m "Running tests"
git push origin master
```
Go to `src/main.rs` and uncomment the implementation. Commit and push your
changes to pass the first stage:
```sh
git add .
git commit -m "pass the first stage"
git push origin master
```
Time to move on to the next stage!