-
Notifications
You must be signed in to change notification settings - Fork 153
Introduce Benchkit Backend #1175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
5325cf5
Introduce Benchkit Backend
bigmontz c1922c2
Adjust implementation to reflect new documentation
bigmontz 821e4e7
Adjust return codes
bigmontz cc7044b
Ajudjust workload.routing values
bigmontz b44255f
Change default scheme to neo4j
bigmontz e001d04
Fix express init
bigmontz 0373ce3
Adjust request examples
bigmontz cd0ba1e
Add healthcheck endpoint
bigmontz 1e93cde
Ready Router
bigmontz e431e21
add wget
bigmontz 9ca1ca0
Addressing comments in the PR
bigmontz 51a009a
Apply suggestions from code review
bigmontz e12c1a3
Address comments in the PR
bigmontz 30fc464
Apply suggestions from code review
bigmontz d71cccd
Improve validation
bigmontz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,60 @@ | ||
FROM ubuntu:20.04 | ||
|
||
ARG NODE_VERSION=16 | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV NODE_OPTIONS --max_old_space_size=4096 --use-openssl-ca | ||
|
||
# Configuring NodeJS version | ||
RUN apt-get clean | ||
|
||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y curl | ||
|
||
RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION:=10}.x | sh | ||
|
||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y \ | ||
git \ | ||
curl \ | ||
python3 \ | ||
nodejs \ | ||
firefox \ | ||
wget \ | ||
nodejs \ | ||
unzip \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN /bin/bash -c "hash -d npm" | ||
|
||
# Enable tls v1.0 | ||
RUN echo "openssl_conf = openssl_configuration\n"|cat - /etc/ssl/openssl.cnf > /tmp/openssl_conf.cnf \ | ||
&& mv /tmp/openssl_conf.cnf /etc/ssl/openssl.cnf | ||
RUN echo "[openssl_configuration]\n\ | ||
ssl_conf = ssl_configuration\n\ | ||
[ssl_configuration]\n\ | ||
system_default = tls_system_default\n\ | ||
[tls_system_default]\n\ | ||
CipherString = DEFAULT:@SECLEVEL=1" >> /etc/ssl/openssl.cnf | ||
|
||
RUN update-ca-certificates --verbose | ||
|
||
RUN useradd -m driver && echo "driver:driver" | chpasswd && adduser driver sudo | ||
VOLUME /driver | ||
RUN chown -Rh driver:driver /home/driver | ||
|
||
USER driver | ||
WORKDIR /home/driver | ||
CMD /bin/bash | ||
RUN mkdir /home/driver/.npm_global | ||
RUN npm config set prefix /home/driver/.npm_global | ||
|
||
# Build stuff | ||
ADD --chown=driver:driver . /home/driver | ||
|
||
RUN ls -lf .. | ||
RUN npm ci | ||
RUN npm run build | ||
|
||
CMD ["npm", "run", "start-benchkit-backend"] |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.