Skip to content

Commit e1ca7ab

Browse files
author
Murilo Marinho
committed
[devcontainer] Setup seems to be working, site not showing for some reason on host yet.
1 parent d95ee2d commit e1ca7ab

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"forwardPorts": [3000],
1313

1414
// Use 'postCreateCommand' to run commands after the container is created.
15-
"postCreateCommand": "chmod +x .devcontainer/postCreateCommand.sh && .devcontainer/postCreateCommand.sh",
15+
// "postCreateCommand": "export DEBIAN_FRONTEND=noninteractive && chmod +x .devcontainer/postCreateCommand.sh && .devcontainer/postCreateCommand.sh",
1616

1717
// Configure tool-specific properties.
1818
"customizations" : {

.devcontainer/postCreateCommand.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
#!/bin/bash
22
set -e
33

4-
export DEBIAN_FRONTEND=noninteractive
4+
dpkg-reconfigure debconf --frontend=noninteractive
55

66
apt-get update
77
apt-get install -y sudo
8-
sudo apt-get install -y git python3 python3-pip curl
8+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y git python3 python3-pip curl
99

1010
# This is expected to be run at the root of the repository
1111
pwd
1212
export PIP_BREAK_SYSTEM_PACKAGES=1
1313
python3 -m pip install jupyter-book --pre
1414

1515
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
16-
export NVM_DIR="/.jbdevcontainer/config/nvm"
16+
NVM_DIR="/.jbdevcontainer/config/nvm"
17+
export NVM_DIR="$NVM_DIR"
1718
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
1819
nvm install 22.17
1920

0 commit comments

Comments
 (0)