Skip to content
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

fix(VER-2691): Fix dfx install #6

Merged
merged 3 commits into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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