Skip to content

Commit

Permalink
Remove the unnecessary sudo commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunnini committed Dec 10, 2021
1 parent 7cbb775 commit 88fb6fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"serve": "http-server --address 0.0.0.0 --port 8080 --proxy http://localhost:8080? ./prod",
"dev": "cross-env NODE_ENV=development webpack-dev-server",
"dev:analyzer": "cross-env NODE_ENV=development ANALYZER=true webpack",
"test": "sudo jest --passWithNoTests --runInBand",
"test": "jest --passWithNoTests --runInBand",
"test:rand-pools": "cross-env TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' ts-node ./src/stores/rand-pools.ts",
"lint-test": "eslint \"src/**/*\" webpack.config.js && prettier --check \"src/**/*\" webpack.config.js",
"lint-fix": "eslint --fix \"src/**/*\" webpack.config.js && prettier --write \"src/**/*\" webpack.config.js",
"localnet": "sh ./scripts/run-localnet.sh",
"localnet:stop": "sudo docker rm --force osmosis_localnet",
"localnet:stop": "docker rm --force osmosis_localnet",
"build:css": "tailwindcss build src/styles/tailwind.scss -o src/styles/index.scss",
"prettify": "prettier --write './**/*.{js,jsx,ts,tsx,scss,md,json,html}' --config ./.prettierrc"
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

sudo docker build --tag osmosis/frontend -f "$DIR"/../deploy/Dockerfile "$DIR"/..
docker build --tag osmosis/frontend -f "$DIR"/../deploy/Dockerfile "$DIR"/..
6 changes: 3 additions & 3 deletions scripts/run-localnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

# Build the docker image first.
sudo docker build --tag osmosis/localnet "$DIR"/../localnet
docker build --tag osmosis/localnet "$DIR"/../localnet

# Make sure that previous container not exist.
sudo docker rm --force osmosis_localnet
docker rm --force osmosis_localnet

# Start container as daemon with some ports opening.
sudo docker run -d -p 1317:1317 -p 26657:26657 -p 9090:9090 --name osmosis_localnet osmosis/localnet
docker run -d -p 1317:1317 -p 26657:26657 -p 9090:9090 --name osmosis_localnet osmosis/localnet

echo "Validator mnemonic: high gain deposit chuckle hundred regular exist approve peanut enjoy comfort ride"
echo "Account1 mnemonic: health nest provide snow total tissue intact loyal cargo must credit wrist"
Expand Down

0 comments on commit 88fb6fa

Please sign in to comment.