forked from TechEmpower/FrameworkBenchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
panagiotis georgakopoulos
committed
Aug 29, 2023
1 parent
3d1a355
commit 17ddf1b
Showing
8 changed files
with
81 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM julia:1.9.3 | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get update -yqq && apt-get install -y | ||
RUN apt-get update -yqq && apt-get install -y wget | ||
|
||
COPY ./Project.toml ./Manifest.toml ./ | ||
|
||
# This step takes a lot of time, let's aggressively cache it | ||
RUN julia --project=. -e 'import Pkg; Pkg.instantiate();' | ||
|
||
# Files | ||
COPY ./ ./ | ||
|
||
RUN chmod +x run.sh | ||
|
||
EXPOSE 8080 | ||
|
||
CMD julia --threads=auto --project=. oxygen.jl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Oxygen | ||
using Pkg | ||
using Dates | ||
using HTTP | ||
using LibPQ | ||
using JSON3 | ||
using StructTypes | ||
using ConcurrentUtilities: ConcurrentUtilities, Pools | ||
using HypertextLiteral: @htl | ||
|
||
include("Pool.jl") | ||
include("API.jl") | ||
|
||
|
||
@get "/plaintext" plaintext | ||
@get "/json" jsonSerialization | ||
@get "/db" singleQuery | ||
@get "/queries" multipleQueries | ||
@get "/updates" updates | ||
@get "/fortunes" fortunes | ||
|
||
serveparallel(queuesize = 2 << 14, access_log = nothing, host = "0.0.0.0", port = 8080) |