-
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.
Merge branch 'main' of https://github.com/prosyslab/dude
- Loading branch information
Showing
4 changed files
with
13 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FROM prosyslab/dude:contain-test | ||
FROM prosyslab/dude:latest | ||
COPY entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
ENTRYPOINT ["/entrypoint.sh"] |
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,8 @@ | ||
FROM prosyslab/classroom | ||
|
||
RUN echo "1234" | sudo -S apt update | ||
RUN echo "1234" | sudo -S apt install -y libssl-dev | ||
RUN opam install -y cohttp-lwt-unix lwt_ssl | ||
RUN git clone https://github.com/prosyslab/dude.git | ||
WORKDIR dude | ||
RUN eval $(opam env); dune build dup_scan.exe |
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 |
---|---|---|
@@ -1,18 +1,4 @@ | ||
#!/bin/bash -l | ||
#!/bin/bash | ||
|
||
# Initializing | ||
env CAML_LD_LIBRARY_PATH=/root/.opam/default/lib/stublibs:/root/.opam/default/lib/ocaml/stublibs:/root/.opam/default/lib/ocaml > /dev/null | ||
env OCAML_TOPLEVEL_PATH=/root/.opam/default/lib/toplevel > /dev/null | ||
env PKG_CONFIG_PATH=/root/.opam/default/lib/pkgconfig > /dev/null | ||
env HOSTNAME=32638fc6e417 > /dev/null | ||
env PWD=/ > /dev/null | ||
env MANPATH=:/root/.opam/default/man > /dev/null | ||
env OPAM_SWITCH_PREFIX=/root/.opam/default > /dev/null | ||
env HOME=/root > /dev/null | ||
# env LESSCLOSE=/usr/bin/lesspipe %s %s > /dev/null | ||
env TERM=xterm > /dev/null | ||
env LESSOPEN=| /usr/bin/lesspipe %s > /dev/null | ||
env OLDPWD=/roote > /dev/null | ||
PATH=/root/.opam/default/bin:$PATH > /dev/null | ||
|
||
dune exec ./dup_scan.exe $1 "contents:$2" $3 $4 "$5" "$6" # $1: issue_num, $2: issue_contents, $3: repository_path_name, $4: rapid_key, $5: repo_key, $6: threshold | ||
# $1: issue_num, $2: issue_contents, $3: repository_path_name, $4: rapid_key, $5: repo_key, $6: threshold | ||
/home/student/dude/_build/default/dup_scan.exe $1 "contents:$2" $3 $4 "$5" "$6" |