Skip to content

Commit

Permalink
Add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tmob03 committed Apr 15, 2023
1 parent e4162dd commit 90a0642
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
12 changes: 12 additions & 0 deletions PrimeSquirrel/solution_1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM ubuntu:22.04

RUN apt-get update -qq \

Check notice on line 3 in PrimeSquirrel/solution_1/Dockerfile

View workflow job for this annotation

GitHub Actions / build (PrimeSquirrel/solution_1)

Delete the apt-get lists after installing something
&& apt-get install -y squirrel3 \
&& mkdir -p ./squirrel


WORKDIR ./squirrel

Check failure on line 8 in PrimeSquirrel/solution_1/Dockerfile

View workflow job for this annotation

GitHub Actions / build (PrimeSquirrel/solution_1)

Use absolute WORKDIR

ADD prime.nut run.sh ./

Check failure on line 10 in PrimeSquirrel/solution_1/Dockerfile

View workflow job for this annotation

GitHub Actions / build (PrimeSquirrel/solution_1)

Use COPY instead of ADD for files and folders

ENTRYPOINT ["./run.sh"]
3 changes: 3 additions & 0 deletions PrimeSquirrel/solution_1/prime.nut
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ function main () {

sieve.writeResults(progEnd, passes);
}


main();
6 changes: 3 additions & 3 deletions PrimeSquirrel/solution_1/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ Based on Python solution_1

## Run instructions

Download [Going Nuts Compiler](https://forum.goingnuts.net/ReleaseBundle.zip)
`apt-get install -y squirrel3`

`gonuts.exe prime.nut`
`squirrel ./prime.nut`

## Output

Ryzen 9 5900x
`Tmob;117;5.083;1;algorithm=base,faithful=yes`
`Tmob;179;5.31056;1;algorithm=base,faithful=yes`
3 changes: 3 additions & 0 deletions PrimeSquirrel/solution_1/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

squirrel ./prime.nut

0 comments on commit 90a0642

Please sign in to comment.