diff options
| author | hachem <im@hachem.wtf> | 2025-12-06 18:29:49 +0100 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-12-06 18:29:49 +0100 |
| commit | 2806ed7d55266ececb197196af2fb84ae8c3cb35 (patch) | |
| tree | 7ba5dbdfb637b9f337cdc0f68c16b18c535122f2 /README.md | |
| parent | c6d077bfbf36012c66cd34bf8c97af791212b858 (diff) | |
[add]: Docker and prepare day4
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 40 |
1 files changed, 20 insertions, 20 deletions
@@ -1,37 +1,37 @@ # Advent of Code - 2025
-yes, i started late.
-yes, i wrote it in x86_64 assembly.
-no, there is no absolutely no good reason for this.
-no, i'm not okay.
+Yes, I started late.
+Yes, I wrote it in x86_64 assembly.
+No, there is no absolutely no good reason for this.
+No, I'm not okay.
### Why assembly?
-because i was really bored and i wanted more of an excuse to procrastinate.
+Because I was really bored and I wanted more of an excuse to procrastinate.
also: **aura**.
-## Building
-```sh
-$ make day[1-12]
-# example:
-$ make day1
-$ make day2
-```
-
-## Running
+## Building & Running
```sh
$ make run-day[1-12]
# example:
$ make run-day1
$ make run-day2
```
-or manually, after building
+If you just want to build the binaries without running them do `make day[1-12]`.
+## Docker
+If you do not have `nasm`/`ld` locally, build the container:
+```sh
+$ docker build -t aoc-2025 .
+```
+Run a specific puzzle directly
+```sh
+$ docker run aoc-2025 day4
+$ docker run aoc-2025 day5
+```
+Running with no arguments (`docker run aoc-2025`) will list the available targets. If you only want to build a binary, use `build-day[1-12]`.
+When you're done, delete the image:
```sh
-$ ./build/day[1-12]
-# example
-$ ./build/day1
-$ ./build/day2
-$ ./build/day3
+$ docker rmi aoc-2025
```
## License
|
