Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
iseriohn committed Jul 17, 2023
1 parent e6298ee commit af5d1f1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions dapps/phase2-registration/src/routes/docker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { addEphemeralKeyMsg, generateSignature, httpCall, downloadScript } from
import nacl from 'tweetnacl';

const dockerFile =
"cargo build --release\ncargo run --realse -p client";
"git clone https://github.com/MystenLabs/ts-coordinator.git \ncd ts-coordinator \ncargo build --release \nCOMMAND=\"cargo run --release -p client $ADDR $ATTESTATION_KEY $OPTION\"for i in ${!ENTROPY[@]}; do \n COMMAND+=\" ${ENTROPY[$i]}\" \ndone \n$COMMAND";

export async function contributeViaDocker(repo, currentAccount, signMessage, setUserState) {
var addr = currentAccount.address;
Expand Down Expand Up @@ -31,15 +31,16 @@ export async function contributeViaDocker(repo, currentAccount, signMessage, set
http.onreadystatechange = (e) => {
if (http.readyState === 4 && http.status === 200) {
alert(http.responseText);
var text = "ATTESTATION_KEY=" + btoa(String.fromCharCode.apply(null, ephemeralKey.secretKey));
var text = "ADDR=" + addr;
text = text + "\nATTESTATION_KEY=" + btoa(String.fromCharCode.apply(null, ephemeralKey.secretKey));
text = text + "\nOPTION=" + repo;
text = text + "\nENTROPY=[";
text = text + "\nENTROPY=(";
var responseText = JSON.parse(http.responseText);
for (var i = 1; i <= responseText.result.num_circuits; ++i) {
let entropy = prompt("Please enter any text to add entropy in contribution to circuit #" + i.toString(), "");
text = text + '"' + entropy + '",';
text = text + '"' + entropy + '" ';
}
text = text + "]\n" + dockerFile;
text = text + ")\n" + dockerFile;
downloadScript("Dockerfile", text);
setUserState(null);
}
Expand Down

0 comments on commit af5d1f1

Please sign in to comment.