Syncing with codecrafters-io/languages
Created by https://github.com/codecrafters-io/languages
This commit is contained in:
parent
3d24c6283d
commit
ef462e32a5
36
README.md
36
README.md
@ -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!
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user