Skip to content

Commit ad43814

Browse files
authored
impl: Fix DevContainer on ARM (#1573)
Netlify 23.15.1 on ARM fails to install a working version of deno, so launching netlify then fails. This installs the latest version of deno which works on ARM. Also expand a bit the documentation on using the DevContainer. FYI, here is the error (which I did report) on running `netlify dev -c 'bundle exec jekyll serve --livereload --incremental'`: ``` ✖ Setting up the Edge Functions environment. This may take a couple of minutes. › Error: Netlify CLI has terminated unexpectedly This is a problem with the Netlify CLI, not with your application. If you recently updated the CLI, consider reverting to an older version by running: npm install -g netlify-cli@VERSION You can use any version from https://ntl.fyi/cli-versions. Please report this problem at https://ntl.fyi/cli-error including the error details below. Error: Failed to set up Deno for Edge Functions. Error: Command failed with exit code 255: /root/.config/netlify/deno-cli/deno --version qemu-x86_64-static: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory Downloaded to: /root/.config/netlify/deno-cli/deno Platform: linux/arm64 ``` --------- Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
1 parent 2a1445e commit ad43814

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.devcontainer/post-create.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,10 @@ bundle install
1414
# Install the Netlify CLI globally using npm
1515
npm install -g netlify-cli
1616

17+
# Netlify 23.15.1 on ARM fails to install a working version of deno,
18+
# so install the latest one directly.
19+
# Note: this should not be necessary once netlify is fixed
20+
npm install -g deno
21+
1722
# Return to the previous directory
1823
cd ..

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ If you prefer to work locally, you can use VS Code with the DevContainers extens
7878

7979
VS Code will build the container and configure the development environment automatically. **The initial setup may take a few minutes as the container is built.**
8080

81+
Once done, you can open a Terminal and launch the development server in the DevContainer with the following command:
82+
83+
```shell
84+
cd docs
85+
netlify dev -c 'bundle exec jekyll serve --livereload --incremental'
86+
```
87+
8188
### Deploying the site locally
8289

8390
SLSA.dev is hosted on [Netlify](https://www.netlify.com/), and you can run a local development server using the Netlify CLI.

0 commit comments

Comments
 (0)