Skip to content

Commit fe502da

Browse files
author
nick
committed
misc: devcontainer docker setup fix
- Legacy-Id: 19479
1 parent 1e7b447 commit fe502da

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

.devcontainer/Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ RUN apt-get -qy upgrade
1313

1414
# Install the packages we need
1515
RUN apt-get install -qy \
16+
bash \
1617
build-essential \
1718
bzip2 \
1819
ca-certificates \
@@ -117,8 +118,9 @@ RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requ
117118
&& rm -rf /tmp/pip-tmp
118119

119120
COPY .devcontainer/init.sh /docker-init.sh
120-
RUN chmod +x /docker-init.sh
121-
ENTRYPOINT ["/docker-init.sh"]
121+
RUN sed -i 's/\r$//' /docker-init.sh && \
122+
chmod +x /docker-init.sh
123+
# ENTRYPOINT ["/usr/local/share/datatracker/.devcontainer/init.sh"]
122124
CMD ["sleep", "infinity"]
123125

124126
# [Optional] Uncomment this section to install additional OS packages.

.devcontainer/devcontainer.json

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"service": "app",
77
"workspaceFolder": "/usr/local/share/datatracker",
88
"shutdownAction": "stopCompose",
9+
"postCreateCommand": "/docker-init.sh",
910

1011
// Set *default* container specific settings.json values on container create.
1112
"settings": {

.vscode/tasks.json

+17
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,23 @@
4141
"clear": false
4242
},
4343
"problemMatcher": []
44+
},
45+
{
46+
"label": "Re-run Setup Project",
47+
"type": "shell",
48+
"command": "/bin/bash",
49+
"args": [
50+
"/docker-init.sh"
51+
],
52+
"presentation": {
53+
"echo": true,
54+
"reveal": "always",
55+
"focus": true,
56+
"panel": "new",
57+
"showReuseMessage": false,
58+
"clear": false
59+
},
60+
"problemMatcher": []
4461
}
4562
]
4663
}

0 commit comments

Comments
 (0)