Skip to content

Commit

Permalink
fix(VER-2691): Fix dfx install (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
fxgst authored Mar 2, 2024
1 parent 957915c commit c7bd9ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"name": "ICP Hello World Motoko",
"image": "ghcr.io/dfinity/icp-dev-env:3",
"forwardPorts": [4943, 8080],
"image": "ghcr.io/dfinity/icp-dev-env:4",
"forwardPorts": [
4943,
8080
],
"portsAttributes": {
"4943": {
"label": "dfx",
Expand All @@ -23,4 +26,4 @@
]
}
}
}
}
8 changes: 5 additions & 3 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
tasks:
- before: |
export PATH="$HOME/bin:$PATH"
- before: |
export DFX_VERSION=0.17.0
export POCKET_IC_PYTHON_VERSION=2.1.0
export POCKET_IC_SERVER_VERSION=3.0.1
export DFXVM_INIT_YES=true
export PATH="$HOME/bin:$PATH"
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
sudo apt-get install -q -y libunwind-dev
sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"
source "$HOME/.local/share/dfx/env"
curl -Ls https://github.com/dfinity/pocketic/releases/download/${POCKET_IC_SERVER_VERSION}/pocket-ic-x86_64-linux.gz -o pocket-ic.gz
gzip -d pocket-ic.gz
chmod +x pocket-ic
pip3 install pocket-ic==${POCKET_IC_PYTHON_VERSION}
pip3 install pocket-ic==${POCKET_IC_PYTHON_VERSION}
npm install &
dfx start --background --clean
open README.md
Expand Down

0 comments on commit c7bd9ba

Please sign in to comment.